Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 06-20-2005, 03:56 AM
nkt nkt is offline
 
Join Date: May 2005
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default ShoutBOX would be nice.

Simple one. No multi/l33t/edit permissions features. Just for registered users, only on forumhome, regular shoutbox that uses forum smilies.
:nervous:

Damn, wrong forum
Reply With Quote
  #2  
Old 06-20-2005, 11:38 AM
Sco Sco is offline
 
Join Date: Apr 2005
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah, thats what im looking for.
Reply With Quote
  #3  
Old 06-20-2005, 01:20 PM
Colin F's Avatar
Colin F Colin F is offline
 
Join Date: Jul 2004
Location: Switzerland
Posts: 1,551
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

moved.
Reply With Quote
  #4  
Old 06-21-2005, 02:11 AM
Jenta Jenta is offline
 
Join Date: Dec 2004
Posts: 377
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nkt
Simple one. No multi/l33t/edit permissions features. Just for registered users, only on forumhome, regular shoutbox that uses forum smilies.
exactly.....something really simple
Reply With Quote
  #5  
Old 06-21-2005, 04:38 AM
taffy056 taffy056 is offline
 
Join Date: Sep 2004
Location: In a house in Wales ;)
Posts: 254
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

This is a nice shoutbox by GeekyDesigns, it would be great if someone does it for vBulletin 3.50

https://vborg.vbsupport.ru/showthread.php?t=68861

taffy
Reply With Quote
  #6  
Old 06-21-2005, 10:34 AM
Jenta Jenta is offline
 
Join Date: Dec 2004
Posts: 377
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I would prefer something that just checked (if bbuserid) (include bb code parsing file) to allow smiles and URLs and bam post a shout!
Modify the forum home template with an iframe to show the shouts and your done.

It's only a shout and geeky's is nice if you want ultimate control over shouts but something really, really simple would be nicer IMO.

Unfortunately, I don't have the experience or I would probably spit one out in 10 minutes.
Reply With Quote
  #7  
Old 06-24-2005, 12:56 AM
Jenta Jenta is offline
 
Join Date: Dec 2004
Posts: 377
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have started to attempt to do this with my limited knowledge. I realize this looks more like 3.0 code. No problem converting it once the basics are in place.
I get it to insert the correct values into the database.

I just need to figure out how to get it displayed now :nervous:

If anyone wants to chime in...


CREATE TABLE QUERY
[sql]
CREATE TABLE `shouts` (
`shoutid` bigint(255) unsigned NOT NULL auto_increment,
`shout` text,
`username` varchar(50) default '0',
PRIMARY KEY (`shoutid`)
) TYPE=MyISAM AUTO_INCREMENT=1 ;
[/sql]



SHOUTBOX.PHP
PHP Code:
<?php

// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);

// #################### DEFINE IMPORTANT CONSTANTS #######################
define('NO_REGISTER_GLOBALS'1);
define('THIS_SCRIPT''shoutbox');


// ################### PRE-CACHE TEMPLATES AND DATA ######################
// pre-cache templates used by all actions
$globaltemplates = array(
    
'shoutbox'
);

// ######################### REQUIRE BACK-END ############################
require_once('./global.php');


// ########################### START ADD SHOUT ############################
if ($_POST['do'] == "addshout") {

        
$DB_site->query("INSERT INTO shouts (shoutid, shout, username) VALUES (NULL, '$_POST[shout]', '$bbuserinfo[username]')");
}





eval(
'print_output("' fetch_template('shoutbox') . '");'); 

?>
FORM ON FORUM HOME
HTML Code:
<form action="shoutbox.php" method="post">
<input type="hidden" name="do" value="addshout" />
<input type="text" name="shout" value="" size="60"  />
<input type="submit" class="button" value="Shout!" />
</form>

IFRAME SOURCE ON FORUMHOME
HTML Code:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title><phrase 1="$vboptions[bbtitle]">$vbphrase[x_powered_by_vbulletin]</phrase> ShoutBox IFrame</title>
<META HTTP-EQUIV="Refresh" CONTENT="90; URL=shoutbox.php?"> 


$headinclude


<style type="text/css">
<!--
body {
margin: 0px 0px 0px 0px;
background-color: #F5F5FF;
}
//-->
</style>

</head>
<body>
<table border="0" width="100%" align="center" class="alt1">
<tr>
	<td class="alt1" width="100%">
		<span class="smallfont">SHOUTS WOULD GO HERE</span>
	</td>
</tr>
</table>
</body>
</html>
Reply With Quote
  #8  
Old 06-24-2005, 06:44 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You should at least protect the INSERT statement against SQL-Insertions. The current code is a huge security risk.
Reply With Quote
  #9  
Old 06-24-2005, 07:00 AM
Jenta Jenta is offline
 
Join Date: Dec 2004
Posts: 377
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MarcoH64
You should at least protect the INSERT statement against SQL-Insertions. The current code is a huge security risk.
I only wish i knew how :/

----------------------------------------------------
I got this to pull shouts...
PHP Code:
$latestshouts "SELECT * FROM shouts ORDER BY id DESC LIMIT 20"
now I know theres a while loop that needs to go after that
will probably give up at this point
Reply With Quote
  #10  
Old 06-24-2005, 10:28 AM
Guest190829
Guest
 
Posts: n/a
Default

PHP Code:
while($result$db->fetch_array($varname))
{
 
//stuff here

^^ that should work correct me if I'm wrong...

Look here on how to ensure security Here
Reply With Quote
Reply


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 10:38 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.04493 seconds
  • Memory Usage 2,266KB
  • Queries Executed 11 (?)
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
  • (2)bbcode_html
  • (3)bbcode_php
  • (2)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
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (9)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