News:

Wondering if this will always be free?  See why free is better.

Main Menu

Ultimate Shoutbox

Started by Grudge, March 28, 2004, 09:11:20 AM

Previous topic - Next topic

[Unknown]

Find, Sources/shout.php:

function shout_display()
{
global $user_info, $db_prefix, $modSettings, $settings, $sourcedir, $scripturl, $txt, $context;


Add after:



$context['canDelete'] = allowedTo('delete_shout');


-[Unknown]

edi67

CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

dennis

Me too, that did the fix wonderfully.  Thank you so much Unknown, you are the best  :D

Dennis

andyat11

Guys I still need help can you guys whip up me my code for me or what to add for this heading?


Webby

That did the trick for me also, but I still get this error :

Quote
8: Undefined index: qstr
Bestand: /home/admin/domains/salesplaza.nl/public_html/forum/Themes/default/shout.template.php (eval?)
Regel: 110

What to do ?

edi67

Quote from: [Unknown] on January 01, 2005, 02:54:58 PM
Find, Sources/shout.php:

function shout_display()
{
global $user_info, $db_prefix, $modSettings, $settings, $sourcedir, $scripturl, $txt, $context;


Add after:



$context['canDelete'] = allowedTo('delete_shout');


-[Unknown]

read and apply the unknown istructions and you will solve.
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

Webby

Did that, and it still shows the error I mentioned. That's why I posted the problem.........

It shows now :


function shout_display()
{
global $user_info, $db_prefix, $modSettings, $settings, $sourcedir, $scripturl, $txt, $context;
$context['canDelete'] = allowedTo('delete_shout');

edi67

strange i had the same errors and making unknown suggestions i resolved.
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

Webby

It looks like it's because I use the "old" index.template.php ?!

It shows me this :


andyat11

OK goto EhDeals.com [nofollow] I have text that says the code I put it in boardindex.template.php and I dont know why it dont work plz help

Webby

I've moved


// Now do the printing...
loadTemplate('shout');
// Run the template!
template_shout_form();


to the top of the shoutbox, and that's why it goes wrong......

andyat11

actually I think its a database error visit EhDeals

Webby

No, it is when I move the above code to the top. So : how can I put the input box to the top of the shoutbox ?

andyat11

can someone tell me the code so I can make it an inline frame instead

Amacythe

I'm getting an internal server error when I try to set the shoutbox to ascending order.  Any ideas?

Amacythe

I'm also getting tons of errors in my error log:

One of these every time someone clicks a link:

8: Undefined variable: user_info
File: /home/mysite/forum/Themes/default/Errors.template.php (eval?)
Line: 102

And up to ten of these (depending on how many posts there are to the shoutbox):

8: Undefined index: canDelete
File: /home/mysite/forum/Themes/default/shout.template.php (eval?)
Line: 86

andyat11

CDan someone tel me what the url would be or the code to put it in an inline frame

Amacythe

#137
Quote from: Amacythe on January 02, 2005, 02:32:13 AM
I'm also getting tons of errors in my error log:

One of these every time someone clicks a link:

8: Undefined variable: user_info
File: /home/mysite/forum/Themes/default/Errors.template.php (eval?)
Line: 102

And up to ten of these (depending on how many posts there are to the shoutbox):

8: Undefined index: canDelete
File: /home/mysite/forum/Themes/default/shout.template.php (eval?)
Line: 86

found solution here: http://www.simplemachines.org/community/index.php?topic=8415.msg182625#msg182625

But ...
QuoteI'm getting an internal server error when I try to set the shoutbox to ascending order.  Any ideas?

Grudge

Sorry, I've been away for the New Year. I've uploaded a version 1.22 which should fix the canDelete stuff. The internal server error I expect may be because your server doesn't support temporary tables?

The other problems may come as a result of some of this. Please update the mod and then report back :)
I'm only a half geek really...

Bitwiz44

Thanks, 1.22 works fine. However, I noticed in posts at SMF you will see "Click Here" which is connect to a Http link so when you click , it takes you there.
Reason for asking... When you try a link in the shout box, it breaks the link and is non functional. So, I was thinking, "IF" everywhere in a post or the shout box, it saw Http, it would mask it with "Click here". Is this something that can be done? would be great for the shout box...( Unless I miss somewhere how This could be done)
Thanks.

Advertisement: