Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)

Reply
 
Thread Tools Display Modes
  #11  
Old 11-25-2002, 07:29 PM
Rufus69's Avatar
Rufus69 Rufus69 is offline
 
Join Date: Oct 2002
Posts: 307
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default



ok thanks

you guys rule!

I'm not good at modding/hacking forums, It's odd too, I can make a forum system but I can't hack one
Reply With Quote
  #12  
Old 11-25-2002, 09:15 PM
Brad Brad is offline
 
Join Date: Nov 2001
Posts: 4,765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by filburt1


You mean turn the Reply button into an Edit button if they made the last post in the thread?

Should be simple...I can release it if you want, or you can work on it
Yea thats about the size of it, i have it working on localhost but im ganna clean it up a bit and ad a redirect in there. something like.

"You may not double post on the $bbtitle forums, however we are redicrting you to the edit page for your last post"

I need to stress the fact that this will not work if you have Guest posting on.
Reply With Quote
  #13  
Old 11-25-2002, 09:21 PM
Rufus69's Avatar
Rufus69 Rufus69 is offline
 
Join Date: Oct 2002
Posts: 307
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I dont have guest posting

oh and thanks by the way

you guys rock at template modding
Reply With Quote
  #14  
Old 11-26-2002, 05:39 PM
Brad Brad is offline
 
Join Date: Nov 2001
Posts: 4,765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok i thru this toghter. Its really alpha and its not tested, tell me how it works (re installing mySQL, php and apache today and dont wanna test it on live board.)

In phpinclude add:

if (strpos($_SERVER['PHP_SELF'], 'showthread.php') != false)
{

// Lets query the database
$DB_site->query_first("SELECT postid,post.dateline FROM post,thread WHERE post.threadid=thread.threadid AND thread.threadid='$threadid' AND post.visible=1 AND thread.visible=1 ORDER BY post.dateline DESC LIMIT 1")) {

// getting everything set.
$lastreplyname = $thread[lastposter]

if ($bbuserinfo[username] == $lastreplyname) {
$editurl = <a href="/editpost.php?s=$session[sessionhash]&amp;action=editpost&amp;postid=$getlastpost[postid]\"><img src="/$replyclose\" border="/0\" alt="/Post A Reply\"></a>
} else {
$editurl = <a href="/newreply.php?s=$session[sessionhash]&amp;action=newreply&amp;threadid=$threadid\">< img src="/$replyclose\" border="/0\" alt="/Post A Reply\"></a>
}
}

In showthread replace this:

<a href="newreply.php?s=$session[sessionhash]&action=newreply&threadid=$threadid"><img src="$replyclose" border="0" alt="Post A Reply"></a>

With this:

$editurl
Reply With Quote
  #15  
Old 11-26-2002, 06:51 PM
Rufus69's Avatar
Rufus69 Rufus69 is offline
 
Join Date: Oct 2002
Posts: 307
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok I'll try it on one of my old styles I dont use anymore
Reply With Quote
  #16  
Old 11-26-2002, 07:00 PM
Rufus69's Avatar
Rufus69 Rufus69 is offline
 
Join Date: Oct 2002
Posts: 307
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I got this error


Parse error: parse error, unexpected ')' in C:\Paradox Network\vbulletin\global.php(185) : eval()'d code on line 47 Warning: Cannot add header information - headers already sent by (output started at C:\Paradox Network\vbulletin\global.php(185) : eval()'d code:47) in C:\Paradox Network\vbulletin\showthread.php on line 136


Reply With Quote
  #17  
Old 11-27-2002, 06:48 AM
Brad Brad is offline
 
Join Date: Nov 2001
Posts: 4,765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry try this in phpinclude:

if (strpos($_SERVER['PHP_SELF'], 'showthread.php') != false)
{

// Lets query the database
$DB_site->query_first("SELECT postid,post.dateline FROM post,thread WHERE post.threadid=thread.threadid AND thread.threadid='$threadid' AND post.visible=1 AND thread.visible=1 ORDER BY post.dateline DESC LIMIT 1")) {

// getting everything set.
$lastreplyname = $thread[lastposter]

if ($bbuserinfo[username] == $lastreplyname) {
$editurl = <a href="/editpost.php?s=$session[sessionhash]&action=editpost&postid=$getlastpost[postid]/"><img src="/$replyclose/" border="/0/" alt="/Post A Reply/"></a>
} else {
$editurl = <a href="/newreply.php?s=$session[sessionhash]&action=newreply&threadid=$threadid/"><img src="/$replyclose/" border="/0/" alt="/Post A Reply/"></a>
}
}
Reply With Quote
  #18  
Old 11-27-2002, 07:46 PM
Rufus69's Avatar
Rufus69 Rufus69 is offline
 
Join Date: Oct 2002
Posts: 307
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I still get

Parse error: parse error, unexpected ')' in /home/virtual/site22/fst/var/www/html/forums/global.php(185) : eval()'d code on line 58

Warning: Cannot add header information - headers already sent by (output started at /home/virtual/site22/fst/var/www/html/forums/global.php(185) : eval()'d code:58) in /home/virtual/site22/fst/var/www/html/forums/showthread.php on line 136
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:34 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04849 seconds
  • Memory Usage 2,232KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete