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

Reply
 
Thread Tools Display Modes
  #11  
Old 07-21-2002, 07:03 AM
TaP TaP is offline
 
Join Date: Nov 2001
Posts: 168
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ah never mind igot it... one more question... is there any way i can templateize what it says when i click aproved or not aproved?
?

liek givei t some tables or something?
Reply With Quote
  #12  
Old 07-21-2002, 07:05 AM
TaP TaP is offline
 
Join Date: Nov 2001
Posts: 168
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

eh sorry 1 more thing.. when you apove a thread it doesnt show the butons again soo i cant not aprove or aprove it agian.
Reply With Quote
  #13  
Old 07-21-2002, 07:12 AM
TaP TaP is offline
 
Join Date: Nov 2001
Posts: 168
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

also for the aprove button can you make it open the thread if it has already been closed?
Reply With Quote
  #14  
Old 07-21-2002, 03:42 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

oh boy not so much at one time

1. time and username are included as i know
2. templatization: (<- nice word ^^)
add eval("\$thread[aproving] = \"".gettemplate("aproving")."\";");
in showthread.php after
PHP Code:
if(trim($thread[aproving])=="" && ismoderator($thread['forumid'])) {
  eval(
"\$apbuttons = \"".gettemplate("apbuttons")."\";");
} else { 
then create a template aproving and put $thread[aproving] in it

3. "when you apove a thread it doesnt show the butons again soo i cant not aprove or aprove it agian."
yes this was planed
if you don't want this just remove the trim($thread[aproving])=="" && from the if clause
Reply With Quote
  #15  
Old 07-21-2002, 09:29 PM
TaP TaP is offline
 
Join Date: Nov 2001
Posts: 168
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

if i remove

if you don't want this just remove the trim($thread[aproving])=="" && from the if clause

i get a parse error
Reply With Quote
  #16  
Old 07-21-2002, 09:36 PM
TaP TaP is offline
 
Join Date: Nov 2001
Posts: 168
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok i got the above to work... but i was wondering if there was a way to get the time in the statment.. couse it only shows user name and date
Reply With Quote
  #17  
Old 07-21-2002, 09:39 PM
TaP TaP is offline
 
Join Date: Nov 2001
Posts: 168
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

btw for the templtate thing... i was talking about this

this thread has been NOT aproved by ".$bbuserinfo[username]." at ".vbdate($dateformat,time()

can that be templateized?
Reply With Quote
  #18  
Old 07-21-2002, 09:47 PM
TaP TaP is offline
 
Join Date: Nov 2001
Posts: 168
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ya.... i just tried what you told me in a few posts back and it didnt work for the tempplate
Reply With Quote
  #19  
Old 07-21-2002, 09:48 PM
TaP TaP is offline
 
Join Date: Nov 2001
Posts: 168
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

here is the template code i used

<td bgcolor="{tableheadbgcolor}" width="175" nowrap><smallfont color="{tableheadtextcolor}"><b><img src="{imagesfolder}/off.gif" alt="Aproved Status"> Status: </b></smallfont></td>
<td bgcolor="{tableheadbgcolor}" width="100%">

<table width="100%" border="0" cellpadding="0" cellspacing="0">
<td width="100%"><smallfont olor="{tableheadtextcolor}"><b>$thread[aproving]</b></smallfont></table>
Reply With Quote
  #20  
Old 07-22-2002, 03:49 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hmm, you can alter $dateformat to whatever you want, so you can add time yourself....

hmm, normaly you should be able to templateisize te aproving term:

add eval("\$apnoterm = \"".gettemplate("apnoterm")."\";");
just before
PHP Code:
$DB_site->query("UPDATE thread SET aproving='this thread has been NOT aproved by ".$bbuserinfo[username]." at ".vbdate($dateformat,time())."' WHERE threadid=".$threadid); 
and change the query to this:
PHP Code:
$DB_site->query("UPDATE thread SET aproving='".$apnoterm."' WHERE threadid=".$threadid); 
it should work then
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 12:25 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.04593 seconds
  • Memory Usage 2,264KB
  • Queries Executed 12 (?)
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
  • (3)bbcode_php
  • (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
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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_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