vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Mini Mods - [AJAX] Drop Down Message Display / Selector (https://vborg.vbsupport.ru/showthread.php?t=124955)

DPSR 08-26-2006 03:51 PM

Quote:

Originally Posted by acidburn0520
Make a new plugin in 'cache_templates' with this:
PHP Code:

$globaltemplates[]  = 'custom_messages'


Thanks buddy :)

harmor19 08-26-2006 07:01 PM

Sorry about the uncached template. It'll be fix in the next release.

therocks 08-26-2006 11:21 PM

Quote:

Originally Posted by Barakat
from where can i add messeges ?

i was wondering this too... i created the new hook (ajax_drop_menu_start) but it's not showing up in the dropdown...

harmor19 08-26-2006 11:58 PM

Quote:

Originally Posted by therocks
i was wondering this too... i created the new hook (ajax_drop_menu_start) but it's not showing up in the dropdown...

Can you explain what you've done?

therocks 08-27-2006 12:50 AM

Quote:

Originally Posted by harmor19
Can you explain what you've done?

i went into my plugin manager and added a plugin under ajax_drop_menu_start. i used the code from one of your examples to show the last 5 threads from a specific forum as the plugin PHP code and made sure that the plugin is set to active.. for the execution order i put 1, it was at 5 by default..

is that all you need to do to add something into the dropdown menu or am i missing something??

heres a screenshot..
http://img84.imageshack.us/img84/3808/1si7.png

harmor19 08-27-2006 12:56 AM

I can barely see it.
You don't need to [you] tag. It already has [username] which does the same thing.

therocks 08-27-2006 12:59 AM

Quote:

Originally Posted by harmor19
I can barely see it.
You don't need to [you] tag. It already has [username] which does the same thing.

Not sure what you're talking about... I just copied and pasted the code from your example.. changing only the forumid to pull the new threads from... nothing's showing up in the dropdown menu... just the "Select Message".. so is this the only step you need to take to make a new drop down menu selection or am I missing something?

this is the code from the screenshot:
PHP Code:

$getthreads $db->query_read("SELECT * FROM thread WHERE forumid='23' ORDER BY threadid DESC LIMIT 10");    
while(
$lt $db->fetch_array($getthreads))
{
   
$latestthreads .= "Title: <a href='showthread.php?t=$lt[threadid]'>".$lt['title']."</a> | Posted By: <a href='member.php?u=$lt[postuserid]'>".$lt['lastposter']."</a><br />";

}

$cm['text'] = str_replace("[latestthreads]"$latestthreads$cm['text']); 


harmor19 08-27-2006 01:03 AM

Quote:

Originally Posted by therocks
Not sure what you're talking about... I just copied and pasted the code from your example.. changing only the forumid to pull the new threads from... nothing's showing up in the dropdown menu... just the "Select Message".. so is this the only step you need to take to make a new drop down menu selection or am I missing something?

You posted up a screen shot where it looks like you were trying to use the the [you] tag.

Go to Admin CP --> Custom Messages --> [Add] or [Modify]
In the text area use [latestthreads]

therocks 08-27-2006 01:10 AM

Quote:

Originally Posted by harmor19
You posted up a screen shot where it looks like you were trying to use the the [you] tag.

Go to Admin CP --> Custom Messages --> [Add] or [Modify]
In the text area use [latestthreads]

ok i did that... it's now showing in the drop down menu.. however, when i select it i get this:

Code:

Database error in vBulletin 3.6.0:

Invalid SQL:
SELECT * FROM custom_messages WHERE display_order='1';

MySQL Error  : Table '*****.custom_messages' doesn't exist
Error Number : 1146
Date        : Saturday, August 26th 2006 @ 07:09:37 PM
Script      : http://******.com/boards/custom_messages.php?display_order=1
Referrer    :
IP Address  : *******
Username    : therocks
Classname    : vb_database


Kirk Y 08-27-2006 01:14 AM

You forgot to add table prefixes Harmor. ;)

I do that all the time too, lol. :p


All times are GMT. The time now is 04:45 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01260 seconds
  • Memory Usage 1,749KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (2)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete