The Arcive of vBulletin Modifications Site. |
|
Details »»
|
|||||||||||||||||||||||||
Hi all !
first sorry for my english ( i m french ... ) i am webmaster of a website which provide tutorials and articles. And i would like to have a system of comments for each tutorials. So i' d like to have a link : [ Review / Comments ] at the end of each of my tutorials which redirect the user to the thread corresponding to the tut's. My tutorials are all dynamic ( i mean PHP/MySQL ) so i should found a way to have a "dynamic link" for review/comments and a dynamic way to create the thread for the tutorial when i add it. Thx for ideas ![]() Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
Quote:
|
|
#3
|
|||
|
|||
|
dubucm,
I am in the middle of re-doing my site that allows this. I have achieved everything so far by just making template changes. You can see a sneak preview at test.BritishExpats.com. Click on the 'Articles' menu on the top left menu and you can see a few examples in there. Drill down until you see the article come up and there is a rating option, printable, send to friend etc, just like a normal thread. Like I said, this is all done with templates. The articles are stored as threads. The examples in there already don't allow comments, but the next category I'm working on will. |
|
#4
|
|||
|
|||
|
is that links script inLinks script ?
|
|
#5
|
|||
|
|||
|
Quote:
|
|
#6
|
|||
|
|||
|
Quote:
best of all license for indexu.com allows 2 installs |
|
#7
|
|||
|
|||
|
Quote:
|
|
#8
|
|||
|
|||
|
Quote:
|
|
#9
|
|||
|
|||
|
Assuming you have a script to put your tutorials in the database and you're using the same database for the vB and your tutorials, use this query where you are inserting your tutorial into the database (I assume you have a variable that holds the title of the tutorial - put that where you see $THREADTITLE, and put the forumid of the forum you want the thread in where you see FORUMIDHERE, and finally you'll need to put your USERID and USERNAME where you see those below):
Code:
mysql_query("INSERT INTO thread(threadid,title,lastpost,forumid,open,replycount,postusername,postuserid,lastposter,dateline,iconid,visible,attach) VALUES (NULL,'$THREADTITLE','".time()."','FORUMIDHERE','1','0','USERNAME','USERID','USERNAME','".time()."','1','1','0')");
Code:
$threadidresult = mysql_query("SELECT threadid FROM thread WHERE title='$THREADTITLE'");
Code:
$threadid = mysql_result($threadidresult,0,0);
mysql_query("INSERT INTO tutorialstablename (threadid) VALUES ($threadid)");
Code:
$threadidlink = mysql_query("SELECT threadid FROM tutorialstablename WHERE title='$threadtitle'");
$threadid = mysql_result($threadidlink,0,0);
$reviewslink = "[<a href=\"http://www.mysite.com/forums/showthread.php?threadid=$threadid\"> Review / Comments </a>]";
|
|
#10
|
|||
|
|||
|
I must have taken a while. A whole conversation went on while I was replying.
|
![]() |
|
|