PDA

View Full Version : Customisation



SkaterP
17-04-2012, 03:12 PM
hi, i want to customise my script in different ways:

1. how to list posts on main page from lastest posts, that is, the last gag i submit, appears on the top of the page.
2. i would like to replace the "tweet" button beside every posts by a facebook like button.
3. i like to know how to change http://site.com/gag1 to http://site.com/name-of-post
4. last thing, when i post the gag links on facebook, there are no thumbnails. i want it to display the posts thumbnail :)


Thanks.

SkaterP
20-04-2012, 02:26 AM
anyone else ? :/

SkaterP
20-04-2012, 04:36 PM
okay :s i'm still waiting huh ?

macmyapples
10-05-2012, 11:56 AM
3- Open the .htaccess and change the line 13 you see :

-----------------------------------------
RewriteRule ^gag/(.*) view.php?pid=$1
-----------------------------------------

change it with :

-----------------------------------------
RewriteRule ^name-of-post/(.*) view.php?pid=$1
-----------------------------------------

( ps : change just gag to the name-of-post )



Ive tried this, but it gives an error :( any ideas?

jcsantos
10-05-2012, 05:03 PM
Ive tried this, but it gives an error :( any ideas?

you need to customize the whole script if you want to change it this way.

macmyapples
11-05-2012, 03:18 PM
is it a lot?

jcsantos
11-05-2012, 05:09 PM
Yeah, It will take a lot, Or try if you can make it on htaccess file, use the rewrite rule.