Quote from: Eliana Tamerin on March 10, 2008, 11:22:35 PM
Interesting portal. Definitely a good start to one. I would suggest, though, the option to make a frontpage that's just an article or text, instead of including forum posts.
Quote from: Nahuel-1 on March 11, 2008, 03:26:01 AM
Mmm... look I need to focus centered, the portal tell me how I do please... see you & Great Tool I Like, but I need centered Thanks ;).-
Quote from: Nahuel-1 on March 11, 2008, 04:43:21 AM
Uhhh... Ok Ok I going to tray, because I use FrontPage... to editing this I have to do whit Dreamweaver or simil, Thanks I will to edit and later say you how is the final presentation... See You, & Thank You 8).-
Quote from: Eliana Tamerin on March 11, 2008, 10:01:37 PM
The second one lists those who are online. Probably something that could be worded better.
<file name="$languagedir/index.italian.php">
<operation>
<search position="end" />
<add><![CDATA[$txt['sp-forum'] = 'Forum';]]></add>
</operation>
</file>
<file name="$languagedir/index.italian.php">
<operation>
<search position="end" />
<add><![CDATA[$txt['sp-forum'] = 'Indice';]]></add>
</operation>
</file>
Quote from: [SiNaN] on March 12, 2008, 10:13:12 AM
Is the "Forum" correct for the Italian language?
Quote from: ivo2296 on March 12, 2008, 02:36:17 PM
I would like to give a try but my forum is in my domain root installed - Will that be a problem?
Quote from: maxdg on March 12, 2008, 02:52:09 PMQuote from: ivo2296 on March 12, 2008, 02:36:17 PM
I would like to give a try but my forum is in my domain root installed - Will that be a problem?
I think it's the best way you can use it.
My 2 cents
Quote from: ivo2296 on March 12, 2008, 05:34:45 PM
what about the uninstaller - is it work good? - my forum is 3 years old and i don't want to demolish everything. My opinion is talking now... :)
Quote from: maxdg on March 12, 2008, 09:24:16 PM
Just a little question to SiNaN:
How can I make the text flowing form right to left without blank space, in the Announce block?
Quote from: brianjw on March 12, 2008, 10:16:22 PM
I have to say it's very nice and very simple. I'd like to see the mod further coded and continued for custom blocks and even other ideas.
Quote from: [SiNaN] on March 13, 2008, 11:04:50 AM
You can use the html tag <marquee> in the texbox that you write the announcement.
Quote from: maxdg on March 12, 2008, 09:24:16 PM
How can I make the text flowing form right to left without blank space, in the Announce block?
<tr class="windowbg" align="center">
<tr class="windowbg">
Quote from: maxdg on March 13, 2008, 12:09:21 PM
The only thing I want is to have the "NEWS" text area filled at 100%, where there's the posts preview..
<div>
<a href="', $news['href'], '">', $news['icon'], '</a> <b>', $news['subject'], '</b>
<div class="smaller">', $news['time'], ' ', $txt[525], ' ', $news['poster']['link'], '</div>
<div class="post" style="padding: 2ex 0;">', $news['body'], '</div>
<div width="100%">
<a href="', $news['href'], '">', $news['icon'], '</a> <b>', $news['subject'], '</b>
<div class="smaller">', $news['time'], ' ', $txt[525], ' ', $news['poster']['link'], '</div>
<div class="post" style="padding: 2ex 0;" width="100%">', $news['body'], '</div>
Quote from: [SiNaN] on March 13, 2008, 12:20:04 PM
It should be I think. But if not, can you try this:
Quote from: NIBOGO on March 13, 2008, 07:45:53 PM
i cant install this mod in my forum
i make a manual edit and didnt work
<td colspan="2">
<hr style="margin: 2ex 0;" width="100%" />
<td', $modSettings['nshowavatar'] ? ' colspan="2"' : '', '>
<hr style="margin: 2ex 0;" width="100%" />
QuoteI've found the error. It appears only when avatars are disabled in the news.
Quote from: maxdg on March 15, 2008, 12:47:29 PMQuoteI've found the error. It appears only when avatars are disabled in the news.
Great, good job!
I disabled avatars because they overlaying the text.. but only if measures aren't standard.
The working theme you link to me has little avatars..
Quote from: [SiNaN
I think we can set the avatar width. If we can do that, will everything would be okay?
Unable to load the 'main' template
Quote from: maxdg on March 16, 2008, 10:52:31 AM
I think it would be GREAT!
;)
I taked a look around and didn't noticed anything else, except for a little bridging issue with Joomla when I'm on Admin -> Option and Settings page and try to save.
Everything's OK when I'm on www.mysite/forum (directly in SMF with no template integration) but if I'm in the wrapped view I can't save settings because of a :Code SelectUnable to load the 'main' template
error..
Quote from: [SiNaN] on March 17, 2008, 06:58:15 AM
Try adding the text strings to the utf-8 language files also.
Quote from: jusplay77 on March 17, 2008, 07:44:55 AM
Is it possible to add a recently purchased items block to the simple portal?
The original mod that shows it in the shop is located here:
http://www.daniel15.com/forum/index.php/topic,1219.0.html
However the creator is not around anymore to my knowledge. The code is there just the same to look at and modify to include with the SimplePortal though I would assume.
Quote from: Lil Puppy on March 17, 2008, 08:11:25 AMQuote from: [SiNaN] on March 17, 2008, 06:58:15 AM
Try adding the text strings to the utf-8 language files also.
Thank you very much :)
I added the language file additions to the appropriate utf8 files and copied the SPortal.english.php file as SPortal.english-utf8.php and it works great now.
Suggestions for future versions:
* utf8 support ;)
* Better Avatar display coding. (have it check the avatar max size setting instead of hard coding it)
* Ability to turn on or off each of the items in the blocks on the left side. (like Karma, IP address, etc.)
if($modSettings['nshowavatar'])
// $modSettings['avatar_max_width_external'] a setting to set the width by.
// the code below simply adds 10 to the width setting so the <td> will be large enough for the avatar and have some padding.
$avatar_max_table_width=$modSettings['avatar_max_width_external'] + 10;
echo'
<td width="', $avatar_max_table_width, 'px">', $news['avatar']['image'], '</td>';
echo '
<td>
QuoteI have added it to the mod page as SimplePortal_Shop.
http://custom.simplemachines.org/mods/index.php?mod=1104
QuoteSoon comes the SMF Gallery Random Picture Block.
Quote from: Lil Puppy on March 17, 2008, 10:46:51 AM
This is what I have it set at in the SPortal.template.php
Quote from: maxdg on March 18, 2008, 10:55:09 AM
Good, but you have the option "show hide avatar in News" disabled, this way.. or better, it doesn't work..
if($modSettings['nshowavatar'])
echo'
<td width="80px">', $news['avatar']['image'], '</td>';
if($modSettings['nshowavatar'])
{
$avatar_max_table_width=$modSettings['avatar_max_width_external'] + 10;
echo'
<td width="', $avatar_max_table_width, 'px">', $news['avatar']['image'], '</td>';
}
Quote
Warning: SimpleXMLElement::__construct() [function.SimpleXMLElement---construct]: Entity: line 50: parser error : Input is not proper UTF-8, indicate encoding ! Bytes: 0xFD 0x20 0x65 0x74 in /home/sleepy1/public_html/PackageParser/index.php on line 472
Warning: SimpleXMLElement::__construct() [function.SimpleXMLElement---construct]: <search position="before"><![CDATA[$txt['who_enabled'] = 'Kimler Online\'� et in /home/sleepy1/public_html/PackageParser/index.php on line 472
Warning: SimpleXMLElement::__construct() [function.SimpleXMLElement---construct]: ^ in /home/sleepy1/public_html/PackageParser/index.php on line 472
Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /home/sleepy1/public_html/PackageParser/index.php:472 Stack trace: #0 /home/sleepy1/public_html/PackageParser/index.php(472): SimpleXMLElement->__construct('<?xml version="...') #1 /home/sleepy1/public_html/PackageParser/index.php(441): parseModificationXML('/home/sleepy1/b...', Object(SimpleXMLElement), 'theme') #2 /home/sleepy1/public_html/PackageParser/index.php(96): parsePackageInfoXML('/home/sleepy1/b...', 'install', 'theme') #3 /home/sleepy1/public_html/PackageParser/index.php(782): parseArchive('/tmp/phpRoKUzT', 'install', 'theme') #4 {main} thrown in /home/sleepy1/public_html/PackageParser/index.php on line 472
Quote from: denzil69 on March 20, 2008, 10:13:47 AM
I can install manually and transfer files etc, but it worries me that errors shown when installed via admin, will cause problems when i upload them manually?
Quote from: Geoff Mendicino on March 20, 2008, 07:23:34 PM
Hey, [SiNaN]. My website's forum is here:
http://freezecracker.com/forum/index.php
The actual board news content in the middle is cut off when I remove avatars; I'd like for it to use the entire space.
When I put avatars, the avatar cuts off part of the actual post. Could you fix both/either of these? Thanks a lot man, I love your work.
Quote5. Execute Modification ./Sources/ModSettings.php Test failed
6. Execute Modification ./Themes/default/index.template.php Test failed
Still..
Am I supposed to install it first, or fix it before install?
Quote from: Kender on March 21, 2008, 06:58:48 AM
one thing i would like to see implemented is...
if a section is members only (arcade, chess, profiles, mlist) then its not clickable..
maybe a smalltext saying login to view
Quote from: [●ριмρєя12●] on March 21, 2008, 10:53:30 AMI think, Sinan is waiting for a RC version or Final 2.0 :)
any chance of upgrading to SMF 2?
Quote from: [●ριмρєя12●] on March 21, 2008, 10:53:30 AM
any chance of upgrading to SMF 2?
Quote from: eline on March 21, 2008, 11:46:04 AM
Its a post attachment ? or it is a avatar ?
Its loks on forst post like avatar of user who posted ;)
If its a attachment its great ;)
Quote from: [SiNaN] on March 21, 2008, 01:10:35 PMQuote from: [●ριмρєя12●] on March 21, 2008, 10:53:30 AM
any chance of upgrading to SMF 2?
*[SiNaN] just whistles.Quote from: eline on March 21, 2008, 11:46:04 AM
Its a post attachment ? or it is a avatar ?
Its loks on forst post like avatar of user who posted ;)
If its a attachment its great ;)
It sounds a bit challenging, but I'll try.
Quote from: [●ριмρєя12●] on March 21, 2008, 01:20:58 PMQuote from: [SiNaN] on March 21, 2008, 01:10:35 PMQuote from: [●ριмρєя12●] on March 21, 2008, 10:53:30 AM
any chance of upgrading to SMF 2?
*[SiNaN] just whistles.Quote from: eline on March 21, 2008, 11:46:04 AM
Its a post attachment ? or it is a avatar ?
Its loks on forst post like avatar of user who posted ;)
If its a attachment its great ;)
It sounds a bit challenging, but I'll try.
/me wants you to upgrade or he will get mad
Quote from: Eliana Tamerin on March 21, 2008, 01:27:43 PMQuote from: [●ριмρєя12●] on March 21, 2008, 01:20:58 PMQuote from: [SiNaN] on March 21, 2008, 01:10:35 PMQuote from: [●ριмρєя12●] on March 21, 2008, 10:53:30 AM
any chance of upgrading to SMF 2?
*[SiNaN] just whistles.Quote from: eline on March 21, 2008, 11:46:04 AM
Its a post attachment ? or it is a avatar ?
Its loks on forst post like avatar of user who posted ;)
If its a attachment its great ;)
It sounds a bit challenging, but I'll try.
/me wants you to upgrade or he will get mad
Excuse you? [SiNaN] is providing this mod for free, at no cost to you or anyone but himself. If you have a problem with how SimplePortal currently works, feel free to share it here. But you have no right to demand or threaten for any upgrades or improvements on the mod. It is [SiNaN]'s prerogative to upgrade or change the mod in any way.
Quote from: Eliana Tamerin on March 21, 2008, 01:35:57 PMWow, snide remarks on a mod package thread, now I've seen everything.
Yeah, looked like a joke, alright. Do try to give some indication of that, a smiley, a hint, anything.
Quote from: [SiNaN] on March 21, 2008, 04:49:33 AMI did do it manually BEFORE I install it so to see if it says successful but it never did. I didn't install the package that you uploaded to the attachment to use on mod parser.
Kender, custom blocks feature is finished. Now working on the article module. After that only a new panel will be needed.
Good idea justplay77.
JoshieDaMan, I gave that package for the mod parser. It works with the mod parser, but the orijinal not. Make the changes manually by using the mod parser.
Quote from: Kender on March 21, 2008, 06:58:48 AMbumpQuote from: [SiNaN] on March 21, 2008, 07:35:53 AMexampleQuote from: Kender on March 21, 2008, 06:58:48 AM
one thing i would like to see implemented is...
if a section is members only (arcade, chess, profiles, mlist) then its not clickable..
maybe a smalltext saying login to view
What is not clickable?
i am a guest on your forum, i see that you have arcade block, so i click on "random game"
i get brought to login page saying you must be logged in to do this, i would rather see that i cannot do it before i click the link... smalltext saying.. "you must login to do this" instead of a link to the action
Quote from: [SiNaN] on March 22, 2008, 05:24:18 AM
Sakacoco, check the language files. There is a change in ModSettings.english.php and in you forum I think that's ModSettings.french.php. I'd be glad if you send me the translation by pm.
Quote from: [SiNaN] on March 22, 2008, 05:39:28 AMI mean, if a visitor cannot access an action or feature, than do not let them click a link to go there, instead tell them to login to view
You mean block permissions?
Quote from: Kender on March 22, 2008, 06:56:09 AM
I mean, if a visitor cannot access an action or feature, than do not let them click a link to go there, instead tell them to login to view
Quote from: Sakacoco on March 22, 2008, 07:09:02 AM
Yeah ! It works ! Thx !
But now, another question how can i put a module in the other side ?
Thanks for your usefull help !
if($modSettings['showboardstats'])
{
echo '
<!-- Board Stats Block -->
<div class="tborder">
..................
...................
<td><img src="' . $settings['images_url'] . '/dot.gif" alt="Dot" /></td>
<td>', $txt['sp-statboard'], '</td>
<td>:</td>
<td>', $totals['boards'], '</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<br />';
}
Quote from: Sakacoco on March 22, 2008, 01:48:15 PM
Marvelous ! It's super ! Thx a lot !
Quote from: ssdt on March 22, 2008, 07:30:15 PM
I can't install it, I see a message saying "modification Error". What do I have to modify to install it?
Please tell me the steps.
QuoteWarning: SimpleXMLElement::__construct() [function.SimpleXMLElement---construct]: Entity: line 50: parser error : Input is not proper UTF-8, indicate encoding ! Bytes: 0xFD 0x20 0x65 0x74 in /home/sleepy1/public_html/PackageParser/index.php on line 472
Warning: SimpleXMLElement::__construct() [function.SimpleXMLElement---construct]: <search position="before"><![CDATA[$txt['who_enabled'] = 'Kimler Online\'� et in /home/sleepy1/public_html/PackageParser/index.php on line 472
Warning: SimpleXMLElement::__construct() [function.SimpleXMLElement---construct]: ^ in /home/sleepy1/public_html/PackageParser/index.php on line 472
Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /home/sleepy1/public_html/PackageParser/index.php:472 Stack trace: #0 /home/sleepy1/public_html/PackageParser/index.php(472): SimpleXMLElement->__construct('<?xml version="...') #1 /home/sleepy1/public_html/PackageParser/index.php(441): parseModificationXML('/home/sleepy1/b...', Object(SimpleXMLElement), 'all') #2 /home/sleepy1/public_html/PackageParser/index.php(96): parsePackageInfoXML('/home/sleepy1/b...', 'install', 'all') #3 /home/sleepy1/public_html/PackageParser/index.php(784): parseArchive('/tmp/phpu1qPl6', 'install', 'all') #4 {main} thrown in /home/sleepy1/public_html/PackageParser/index.php on line 472
Quote from: Mr Blah Man on March 25, 2008, 04:01:04 AM
Very Nice, but I'd like to ask... My Link tree is:
The Shadowed Legion Forums » Forum » Main Category » Rules & Announcements
^ Links to Portal ^ ^Links^
to Forum
How do I get rid of the The Shadowed Legion Forums Part?
Quote from: denzil69 on March 25, 2008, 06:49:25 AM
i used the manual install parser, getting more error messages than an install via the admin panel.
im running 1.1.4
using default set up.
any ideas please?
Quote from: [SiNaN] on March 25, 2008, 09:18:49 AMQuote from: Mr Blah Man on March 25, 2008, 04:01:04 AM
Very Nice, but I'd like to ask... My Link tree is:
The Shadowed Legion Forums » Forum » Main Category » Rules & Announcements
^ Links to Portal ^ ^Links^
to Forum
How do I get rid of the The Shadowed Legion Forums Part?
I'll give the codes.
Quote from: Mr Blah Man on March 26, 2008, 02:48:51 AM
What are they, or where should I look? :O
Quote from: TosTos on March 26, 2008, 05:43:35 AM
It is very nice mod. Are you going to update it to work with smf2.0?
Quote
Apply Filter: Only show the errors with the same message
8: Undefined index: showtoppoll
File: /home/bdm721/public_html/forum/Themes/default/SPortal.template.php (main sub template - eval?)
Line: 428
Quote
Apply Filter: Only show the errors with the same message
8: Undefined index: showboardnews
File: /home/bdm721/public_html/forum/Themes/default/SPortal.template.php (main sub template - eval?)
Line: 291
Line 291 if($modSettings['showboardnews'])
Line 428 if($modSettings['showtoppoll'])
QuoteMod Name Version
1. Users Online Today Mod 1.4.0 [ Uninstall ]
2. AutoSig 1.2 [ Uninstall ]
3. Board Viewers Mod 1.1 [ Uninstall ]
4. MessagePreviewOnHover 1.4 [ Uninstall ]
5. SMF 1.1.1 Update Package 1.1.1 [ Uninstall ]
6. URL Popup 1.0 [ Uninstall ]
7. View Single Post 1.1 [ Uninstall ]
8. MySpace Field 2.4 [ Uninstall ]
9. Automatically Remove Inbox Label Mod 1.0 [ Uninstall ]
10. Profile User Action 1.0 [ Uninstall ]
11. Who Voted What? 1.1.1 [ Uninstall ]
12. Line Numbers Mod 1.01 [ Uninstall ]
13. SMF 1.1.2 Update Package 1.1.2 [ Uninstall ]
14. Wrap Text Around Image 1.0 [ Uninstall ]
15. FontandSizeDropdown1.1 1.1 [ Uninstall ]
16. Streaming 3 4.2.2b [ Uninstall ]
17. SMF Gallery Lite 1.8 [ Uninstall ]
18. Ad Managment 2.3 [ Uninstall ]
19. Signature Dropdown Choices 1.0 [ Uninstall ]
20. RSS Feed Icon 1.1 [ Uninstall ]
21. SMF 1.0.11 / 1.1.3 Update 1.1 [ Uninstall ]
22. Buy Me A Beer 1.1 [ Uninstall ]
23. SMF 1.0.12 / 1.1.4 / 2.0 b1.1 Update 1.0 [ Uninstall ]
24. Auto Embed Video Clips 1.2 [ Uninstall ]
25. Spiders Don't Increase Topic Views 1.1 [ Uninstall ]
26. Sorted Package Manager Listing 0.1 [ Uninstall ]
27. Electric Guitar Avatars 1.0 [ Uninstall ]
28. Show all edits in messages 1.0 [ Uninstall ]
29. Favicon 1.0 [ Uninstall ]
30. FlashChat Integration 1.0 [ Uninstall ]
31. Internal Links Use Same Window 1.1 [ Uninstall ]
32. Ellow yellow christmas edition smiley set 1.1 [ Uninstall ]
33. Advanced Recent-Posts 1.1 [ Uninstall ]
34. Admin member list registration date 1.0 [ Uninstall ]
35. delete inactive users 1.0.3 [ Uninstall ]
36. Add Sitepreviews 1.31 [ Uninstall ]
37. Top 10 Posters Today And This Week Stats 1.1
Quote from: [SiNaN] on March 26, 2008, 09:47:58 AMVery Good. I think it might be a strong competitor for tp.Quote from: Mr Blah Man on March 26, 2008, 02:48:51 AM
What are they, or where should I look? :O
I don't have the file with me now. It's in the Load.php. But I'll write them, when I'll have time.Quote from: TosTos on March 26, 2008, 05:43:35 AM
It is very nice mod. Are you going to update it to work with smf2.0?
I even didn't install the 2.0 Beta 3. Now having lack of time. Keep it secret; that's in my plan. :P
Quoteeverything was fine last night, yet today when i log on, boxes have half borders on them - some have gone very small - and the details inside them is out of sync (eg, the member name has moved from edge of box to right next to post topic.)
Quote from: [SiNaN] on March 31, 2008, 03:06:00 AM
Because of some problems in my life I'll will not be that much online. I'm planning to update the mod after the end of April. I hope It will be ready on around 15th of May.
Quote from: Eliana Tamerin on March 31, 2008, 07:52:45 AMQuote from: [SiNaN] on March 31, 2008, 03:06:00 AM
Because of some problems in my life I'll will not be that much online. I'm planning to update the mod after the end of April. I hope It will be ready on around 15th of May.
I wish you well, [SiNaN]. Good luck in sorting out your problems. Take care!
Quote from: Poreman on April 01, 2008, 11:02:55 PM
will this work on the 2.0 Beta 3 Public version?
Quote from: cumcatano on March 26, 2008, 11:53:52 AM
Hi!
Nice portal man!
I need to place a new block on the right side to show Google AdSense block.
Can you help me, please?
Thks!
Quote from: [SiNaN] on April 02, 2008, 02:58:55 AM
Unfortunately, no.
Quote from: NIBOGO on April 04, 2008, 06:24:12 PMQuote from: [SiNaN] on April 02, 2008, 02:58:55 AM
Unfortunately, no.
but you can do somethinng to have this portal in smf 2.0 ??
Quote from: Eliana Tamerin on April 04, 2008, 07:17:39 PM
Not at the moment. 2.0 isn't even in RC form, so I wouldn't expect a lot of mods to actually be compliant with it. Not to mention that SiNaN has already said he'll code a 2.0 version when 2.0 comes out as a final release.
Quote from: Eliana Tamerin on April 06, 2008, 01:23:58 PM
How long are you going to be gone? Or is this for good?
Quote from: robbie93 on April 08, 2008, 03:49:36 AM
nope the manual install didnt work :(
<img src="' . $settings['images_url'] . '/arrow.gif" alt="Arrow" /> <a href="'.$scripturl.'?action=profile">
Quote from: elmenio on April 09, 2008, 01:27:28 AM
hi everyone!!
First of all great mod [SiNaN] congrats!!
Well I'm trying to install the mod on the Enterprise theme and I'm having some problems, probably I'm doing something wrong, but I don't know.
When I click on the index button nothing shows up, it seems that the simple portal is not loading, here's a picture
http://www.fileden.com/files/2007/10/6/1488620/forum_index.JPG
And I'm not able to save the changes on ADMIN>Features and Options>Portal Settings
anyone knows why this is happening...
greetings from Mexico
Quote from: joomlamz on April 09, 2008, 03:45:29 AMYes, I did, and I tried several times..
did try to install manual
Quote from: [SiNaN] on April 10, 2008, 06:04:08 AM
Can you attach the files need editing here? I'll make the changes for you.
Quote from: eline on March 21, 2008, 11:34:35 AM
hi
Could You made a teaser for fron page with photo from attachment ?
I want use something like You have now bout not with avatar but attachment thumb.
Great job ;)
Quote from: [SiNaN] on April 13, 2008, 10:59:46 AM
Please go to the first message for recent news about the mod.
http://www.simplemachines.org/community/index.php?topic=227599.msg1461454#msg1461454
array('text', 'aannouncetext'),
array('large_text', 'aannouncetext'),
Quote from: footypro on April 14, 2008, 02:44:22 AM
I love this portal, thanks for making it <3. The only problem I'm having is that when I installed it, the dots and arrows on the left hand side are not appearing and instead are replaced with red X's. How can I fix this.
if (!empty($memberContext[$top_poster_id]['avatar']['href']))
echo '<table>
<tr>
<td>' . $member['list'] . '-</td>
<td><img src="'.$memberContext[$top_poster_id]['avatar']['href'].'" alt="" width="35" /></td><td> </td>
<td>' . $member['link'] . '<br />' . $member['posts'] . $txt['sp-tposterpost'] . '</td>
</tr>
</table>';
else
Quote8: Undefined variable: score_poss
File: /is/htdocs/.../.../.../Themes/default/languages/Stats.english.php (eval?)
Line: 719
QuoteARSENIUM Official Forum > Forum > ARSENIUM > Latest NewsARSENIUM Official Forum = Portal
QuoteARSENIUM Official Forum > ARSENIUM > Latest News
Quote from: [SiNaN] on March 10, 2008, 11:16:07 PM
http://bizmuhacirler.com/test/index.php?theme=1;language=english;
http://bizmuhacirler.com/test/index.php?theme=5;language=english;
http://bizmuhacirler.com/test/index.php?theme=6;language=english;
http://bizmuhacirler.com/test/index.php?theme=7;language=english;
http://bizmuhacirler.com/test/index.php?theme=9;language=english;
http://bizmuhacirler.com/test/index.php?theme=10;language=english;
http://bizmuhacirler.com/test/index.php?theme=11;language=english;
Quote from: Fat_Man on April 17, 2008, 10:28:31 PMQuote from: [SiNaN] on March 10, 2008, 11:16:07 PM
http://bizmuhacirler.com/test/index.php?theme=1;language=english;
http://bizmuhacirler.com/test/index.php?theme=5;language=english;
http://bizmuhacirler.com/test/index.php?theme=6;language=english;
http://bizmuhacirler.com/test/index.php?theme=7;language=english;
http://bizmuhacirler.com/test/index.php?theme=9;language=english;
http://bizmuhacirler.com/test/index.php?theme=10;language=english;
http://bizmuhacirler.com/test/index.php?theme=11;language=english;
SiNaN,
None of these links work.
I was looking for forums with this mod applied already.
Thanks
_______
Fat_Man
Quote from: Drover on April 18, 2008, 02:53:58 PM
Hello, I'm just starting to learn about SMF so forgive my ignorance. Does this portal take on the appearance of the theme of the forum you're using?
Quote from: Manu0372 on April 16, 2008, 08:41:59 AM
Thanks a lot, I will wait for the package. ;)
Hi it's me again.
I have installed the mod to my forum, not test forum, everything works perfect, but
now I get an error message:Quote8: Undefined variable: score_poss
File: /is/htdocs/.../.../.../Themes/default/languages/Stats.english.php (eval?)
Line: 719
I checked the Stats.english.php, but there isn't a "Line: 719".
Can you help me please?
Quote from: Manu0372 on April 17, 2008, 07:27:11 PM
Sorry for posting again. :-\
After the install of this great mod I have some questions. :-\
First question is about the link tree.
Our link tree looks now in this wayQuoteARSENIUM Official Forum > Forum > ARSENIUM > Latest NewsARSENIUM Official Forum = Portal
Forum = Boardindex
ARSENIUM = Category
Latest News = Board
Isn't it possible to make "ARSENIUM Official Forum + Forum" in 1?
Or the Portal is only available in the Links upper the link tree?
In this moment the link tree will look like thisQuoteARSENIUM Official Forum > ARSENIUM > Latest News
When now someone is watching the Boardindex, in "Who is online" you can read
"Unknown Action", is the member in the Portal, than you can read "Is watching the Boardindex of...." is there a way to change it?
Sorry for all the questions I have. :'(
// Set the top level linktree up.
array_unshift($context['linktree'], array(
'url' => &$scripturl,
'name' => &$context['forum_name']
));
/* Set the top level linktree up.
array_unshift($context['linktree'], array(
'url' => &$scripturl,
'name' => &$context['forum_name']
));*/
$txt['who_index'] = 'Viewing the board index of <a href="' . $scripturl . '">' . $context['forum_name'] . '</a>.';
$txt['who_index'] = 'Viewing the portal of <a href="' . $scripturl . '">' . $context['forum_name'] . '</a>.';
$txt['who_forum'] = 'Viewing the board index of <a href="' . $scripturl . '?action=forum">' . $context['forum_name'] . '</a>.';
Quote from: joomlamz on April 17, 2008, 11:43:06 PM
thank update....
translate portuguese Update V1.1
Quote from: vinod41 on April 18, 2008, 01:48:03 PM
Hi,
nice portal.
unable to install it via package install
getting this error
8. Execute Modification ./Themes/default/index.template.php Test failed
rest of it seems to be fine... BUT BUT i'm using back-n-black theme
and the package installer is pointing to default ?
i tried manual installation as well, but got some errors, like board not displaying
any suggest how to do that manual install with Back-n-Black theme
---edit --
about database queries (while manual install)
DELETE IGNORE FROM {$db_prefix}settings WHERE variable='showtoppoll' LIMIT 1
{$db_prefix}settings <-- is it to be replaced with -->mydb_settings ?
in every query ?
thanks and regards
Quote from: NIBOGO on April 19, 2008, 10:31:54 AM
with simpleportal is possible create my own codes with php????
// How about the [home] button?
echo '<ul><li', $current_action == 'home' ? ' id="active"' : '', '><a href="', $scripturl, '"><span>'.$txt[103].'</span></a></li>';
// How about the [arcade] button?
echo '<li', $current_action == 'arcade' ? ' id="active"' : '', '><a href="', $scripturl, '?action=arcade"><span>', $txt[arcade] , '</span></a></li>';
// How about the [arcade] button?
echo '<li', $current_action == 'gallery' ? ' id="active"' : '', '><a href="', $scripturl, '?action=gallery"><span>', $txt[smfgallery_menu] , '</span></a></li>';
// How about the [help] button?
echo '<li', $current_action == 'help' ? ' id="active"' : '', '><a href="', $scripturl, '?action=help" ><span>', $txt[119], '</span></a></li>';
// How about the [search] button?
if ($context['allow_search'])
echo '<li', $current_action == 'search' ? ' id="active"' : '', '><a href="', $scripturl, '?action=search"><span>', $txt[182] , '</span></a></li>';
Quote from: NIBOGO on April 19, 2008, 11:44:18 AM
yes i need to create my own block is possible?
Quote from: Drover on April 19, 2008, 12:13:55 PM
Thanks for the response Sinan, but your Demos appear to be down. I'd love to see it in action...
// How about the [home] button?
echo '<ul><li', $current_action == 'home' ? ' id="active"' : '', '><a href="', $scripturl, '"><span>'.$txt[103].'</span></a></li>';
// The [forum] button?
echo '<ul><li', $current_action == 'forum' ? ' id="active"' : '', '><a href="', $scripturl, '?action=forum"><span>'.$txt['sp-forum'].'</span></a></li>';
Quote from: Manu0372 on April 19, 2008, 03:24:06 PM
@[SiNaN]
Thx a lot for your help!!! :D
The code for the linktree works perfect, but not the code for the "Who's online".
I changed the code, now I can see "Is showing the portal...." but is a user watching
the Boardindex I still get "Unknown Action" :'(
I used the Arcade block, cause we have Arcade installed. I switched off the option to
show the Arcade block in the portal.
$txt['who_index'] = 'Viewing the board index of <a href="' . $scripturl . '">' . $context['forum_name'] . '</a>.';
$txt['who_index'] = 'Viewing <a href="' . $scripturl . '">Portal</a>.';
$txt['whoall_forum'] = 'Viewing <a href="' . $scripturl . '?action=forum">Forum</a>.';
$txt['who_index'] = 'Viewing the portal of <a href="' . $scripturl . '">' . $context['forum_name'] . '</a>.';
$txt['whoall_forum'] = 'Viewing the board index of <a href="' . $scripturl . '?action=forum">' . $context['forum_name'] . '</a>.';
Quote from: [SiNaN] on April 19, 2008, 04:07:42 PM
I can make it for you if would tell me the content.
Quote from: NIBOGO on April 19, 2008, 08:52:32 PM
mmm i think of an option to create blocks with html/javascript/php can be a very nice feature for simpleportal , maybe you can include that feature in the next version.
Quote from: vinod41 on April 20, 2008, 01:41:47 AM
Hello Sinan,
yes its charset=UTF-8, forum button is not displaying text as well
��<�?�p�h�p� � �/�/� �V�e�r�s�i�o�n�:� �1�.�0� �;� �S�P�o�r�t�a�l� � � � �/�/�U�s�e�r� �B�l�o�c�k� � �$�t�x�t�[�'�s�p�-�u�s�e�r�'�]� �=� �'�U�s�e�r�'�;� � �$�t�x�t�[�'�s�p�-�u�s�e�r�p�o�s�t�'�]� �=� �'�P�o�s�t�s�'�;� � �$�t�x�t�[�'�s�p�-�u�s�e�r�k�a�r�m�a�'�]� �=� �'�K�a�r�m�a�'�;� � �$�t�x�t�[�'�s�p�-�u�s�e�r�i�p�'�]� �=�
Quote from: vinod41 on April 20, 2008, 06:01:45 AM
YUP this file worked ... Now things are looking cooool.
Thanks for support
Quote from: [●ριмρєя12●] on April 20, 2008, 06:22:05 AM
Just waiting patiently for SMF 2 beta 3 release :P
It looks good [and sorry bloc]:
better than TP
Quote from: Manu0372 on April 20, 2008, 09:02:32 AM
@[SiNaN]
I can wait as long as it is for need. ;)
Btw, don't know if it is an error of my forum, but when I click at the board index
at "Mark as read", I end up in the portal and not in the board index. :-\
$_SESSION['ID_MSG_LAST_VISIT'] = $modSettings['maxMsgID'];
if (!empty($_SESSION['old_url']) && strpos($_SESSION['old_url'], 'action=unread') !== false)
redirectexit('action=unread');
if (isset($_SESSION['topicseen_cache']))
$_SESSION['topicseen_cache'] = array();
redirectexit();
$_SESSION['ID_MSG_LAST_VISIT'] = $modSettings['maxMsgID'];
if (!empty($_SESSION['old_url']) && strpos($_SESSION['old_url'], 'action=unread') !== false)
redirectexit('action=unread');
if (isset($_SESSION['topicseen_cache']))
$_SESSION['topicseen_cache'] = array();
redirectexit(action=forum);
QuoteParse error: syntax error, unexpected '=' in
/is/htdocs/.../.../.../.../Sources/Subs-Boards.php on line 230
redirectexit(action=forum);
}
elseif (isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'unreadreplies')
Quote from: Manu0372 on April 20, 2008, 12:56:52 PM
I changed the code and checked it.
I clicked at "Mark as read" and got this error messageQuoteParse error: syntax error, unexpected '=' in
/is/htdocs/.../.../.../.../Sources/Subs-Boards.php on line 230
Line 228 - 230:Code Selectredirectexit(action=forum);
}
elseif (isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'unreadreplies')
$_SESSION['ID_MSG_LAST_VISIT'] = $modSettings['maxMsgID'];
if (!empty($_SESSION['old_url']) && strpos($_SESSION['old_url'], 'action=unread') !== false)
redirectexit('action=unread');
if (isset($_SESSION['topicseen_cache']))
$_SESSION['topicseen_cache'] = array();
redirectexit();
$_SESSION['ID_MSG_LAST_VISIT'] = $modSettings['maxMsgID'];
if (!empty($_SESSION['old_url']) && strpos($_SESSION['old_url'], 'action=unread') !== false)
redirectexit('action=unread');
if (isset($_SESSION['topicseen_cache']))
$_SESSION['topicseen_cache'] = array();
redirectexit('action=forum');
Quote from: NIBOGO on April 20, 2008, 06:22:30 PM
[SiNaN] is possible to do something to make the DB changes in manual edit , the problem is of i upload the file for modifications and execute in my site but didnt work , you can do something??
And i think of you can add more blocks to insert php and HTML codes because maybe i and other people can need more of 2 blocks :)
http://nqpipes-drums.cp72.org/forum/index.php
function sp_topPoster($topNumber = 5)
{
global $db_prefix, $scripturl, $memberContext, $txt, $top_posters, $top_poster_id, $list_no;
if ($topNumber === null)
$topNumber = isset($_GET['limit']) ? (int) $_GET['limit'] : 5;
$list_no=1;
// Find the latest poster.
$request = db_query("
SELECT ID_MEMBER, realName, posts
FROM {$db_prefix}members
ORDER BY posts DESC
LIMIT $topNumber", __FILE__, __LINE__);
$top_posters = array();
while ($row = mysql_fetch_assoc($request))
$top_posters[] = array(
'list' => $list_no++,
'id' => $row['ID_MEMBER'],
'name' => $row['realName'],
'href' => $scripturl . '?action=profile;u=' . $row['ID_MEMBER'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '">' . $row['realName'] . '</a>',
'posts' => $row['posts']
);
mysql_free_result($request);
$top_poster_id = $top_posters[0]['id'];
loadMemberData($top_poster_id);
loadMemberContext($top_poster_id);
}
function sp_topPoster($topNumber = 5)
{
global $db_prefix, $scripturl, $memberContext, $txt, $settings, $modSettings, $top_posters, $top_poster_id, $list_no;
if ($topNumber === null)
$topNumber = isset($_GET['limit']) ? (int) $_GET['limit'] : 5;
$list_no=1;
// Find the latest poster.
$request = db_query("
SELECT m.ID_MEMBER, m.realName, m.posts, m.avatar, a.ID_ATTACH, a.attachmentType, a.filename
FROM ({$db_prefix}members as m)
LEFT JOIN {$db_prefix}attachments AS a ON (a.ID_MEMBER = m.ID_MEMBER)
ORDER BY posts DESC
LIMIT $topNumber", __FILE__, __LINE__);
$top_posters = array();
while ($row = mysql_fetch_assoc($request)) {
if (stristr($row['avatar'], 'http://') && !empty($modSettings['avatar_check_size']))
{
$sizes = url_image_size($row['avatar']);
// Does your avatar still fit the maximum size?
if ($modSettings['avatar_action_too_large'] == 'option_refuse' && is_array($sizes) && (($sizes[0] > $modSettings['avatar_max_width_external'] && !empty($modSettings['avatar_max_width_external'])) || ($sizes[1] > $modSettings['avatar_max_height_external'] && !empty($modSettings['avatar_max_height_external']))))
{
// Fix it permanently!
$row['avatar'] = '';
updateMemberData($row['ID_MEMBER'], array('avatar' => '\'\''));
}
}
$top_posters[] = array(
'list' => $list_no++,
'id' => $row['ID_MEMBER'],
'name' => $row['realName'],
'href' => $scripturl . '?action=profile;u=' . $row['ID_MEMBER'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '">' . $row['realName'] . '</a>',
'posts' => $row['posts'],
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['ID_ATTACH'] > 0 ? '<img src="' . (empty($row['attachmentType']) ? $scripturl . '?action=dlattach;attach=' . $row['ID_ATTACH'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '" alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['ID_ATTACH'] > 0 ? (empty($row['attachmentType']) ? $scripturl . '?action=dlattach;attach=' . $row['ID_ATTACH'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
)
);
}
mysql_free_result($request);
}
sp_topPoster($modSettings['tppcount']);
$list_no = $list_no - 1;
foreach ($top_posters as $member)
{
if ($member['list'] == 1)
{
if (!empty($memberContext[$top_poster_id]['avatar']['href']))
echo '<table>
<tr>
<td>' . $member['list'] . '-</td>
<td><img src="'.$memberContext[$top_poster_id]['avatar']['href'].'" alt="" width="35" /></td><td> </td>
<td>' . $member['link'] . '<br />' . $member['posts'] . $txt['sp-tposterpost'] . '</td>
</tr>
</table>';
else
echo '<table>
<tr>
<td>' . $member['list'] . '-</td>
<td>' . $member['link'] . '</td>
<td> </td>
<td>' . $member['posts'] . $txt['sp-tposterpost'] . '</td>
</tr>
</table>';
}
elseif ($member['list'] == 2)
{
if ($member['list'] == $list_no)
echo '<table>
<tr>
<td>' . $member['list'] . '-</td>
<td>' . $member['link'] . '</td>
<td> </td>
<td>' . $member['posts'] . $txt['sp-tposterpost'] . '</td>
</tr>
</table>';
else
echo '<table>
<tr>
<td>' . $member['list'] . '-</td>
<td>' . $member['link'] . '</td>
<td> </td>
<td>' . $member['posts'] . $txt['sp-tposterpost'] . '</td>
</tr>';
}
elseif ($member['list'] == $list_no)
echo ' <tr>
<td>' . $member['list'] . '-</td>
<td>' . $member['link'] . '</td>
<td> </td>
<td>' . $member['posts'] . $txt['sp-tposterpost'] . '</td>
</tr>
</table>';
else
echo ' <tr>
<td>' . $member['list'] . '-</td>
<td>' . $member['link'] . '</td>
<td> </td>
<td>' . $member['posts'] . $txt['sp-tposterpost'] . '</td>
</tr>';
}
sp_topPoster($modSettings['tppcount']);
echo '<table>';
foreach ($top_posters as $member)
{
if (!empty($member['avatar']['href']))
echo ' <tr>
<td>' . $member['list'] . '-</td>
<td><img src="' . $member['avatar']['href'] . '" alt="" width="35" /></td><td> </td>
<td>' . $member['link'] . '<br />' . $member['posts'] . $txt['sp-tposterpost'] . '</td>
</tr>';
else
echo ' <tr>
<td>' . $member['list'] . '-</td>
<td> </td><td> </td>
<td>' . $member['link'] . '<br />' . $member['posts'] . $txt['sp-tposterpost'] . '</td>
</tr>';
}
echo '</table>';
Quote from: MTF95 on April 21, 2008, 10:54:40 AM
As all your mods, this is great!
But, sorry, I'll ceep using TP, only becouse of the Downloadsfunction. :-\
Quote from: cleanfiles on April 21, 2008, 10:58:10 AM
Thanks for the reply.
I don't know what the board id is or where to find it.
Any ideas on why I only have blocks on the left side?
Quote from: [SiNaN] on April 21, 2008, 11:06:09 AM
You can use the Dowloads mod with this. :D
I also say that TinyPortal is very very detailed mod considered to this. Even we can not compare them. This is just simple. :)
Quote from: [SiNaNIn version 1.1, you have 2 blocks that you can write php and html codes in them. In the version 2.0, you will be able to add new blocks and change the positions and properties of blocks.
QuoteDot : 118
Dot : 186
Dot : 33
Dot : 4
Dot : 5
Quote from: [SiNaN] on March 17, 2008, 06:58:15 AM
Try adding the text strings to the utf-8 language files also.
Quote from: MTF95 on April 21, 2008, 10:54:40 AM
As all your mods, this is great!
But, sorry, I'll ceep using TP, only becouse of the Downloadsfunction. :-\
global $db_prefix, $scripturl;
$request = db_query("SELECT f.ID_FILE, f.ID_MEMBER, f.date, f.ID_CAT, f.title AS ftitle, f.totaldownloads,
c.title, m.realName, m.ID_MEMBER AS mID_MEMBER
FROM {$db_prefix}down_file AS f, {$db_prefix}down_cat AS c, {$db_prefix}members AS m
WHERE f.ID_CAT = c.ID_CAT
AND f.approved = '1'
AND f.ID_MEMBER = m.ID_MEMBER
ORDER BY f.ID_FILE DESC
LIMIT 5",__FILE__,__LINE__);
while($row = mysql_fetch_assoc($request)) {
echo '<table width="100%" cellpadding="2" cellspacing="0">
<tr>
<td valign="top" class="smalltext"> <a href="',$scripturl,'?action=view;id=',$row['ID_FILE'],'">',$row['ftitle'],'</a></td>
<td valign="top" class="smalltext" align="right">',$row['totaldownloads'],'</td>
</tr>
</table>';
}
Quote from: NIBOGO on April 21, 2008, 10:47:45 PM
You can check this mods:
Quote from: [SiNaN] on April 22, 2008, 02:32:08 AM
Bancherd, did you change it from the Admin CP to show as views?
echo '
<table class="ssi_table">
<tr>
<th align="left">', $txt['sp-ttopicname'], '</th>
<th align="left">', $modSettings['tttype'] ? $txt[301] : $txt[110], '</th>
</tr>';
foreach ($topics as $topic)
echo '
<tr>
<td align="left">
', $topic['link'], '
</td>
<td align="right">', $topic['num_replies'], '</td>
</tr>';
Quotejust curious; what's "m8"?
Quote from: [SiNaN] on April 22, 2008, 02:32:08 AM
MTF95, I don't think I will code a downloads module. But I can create a built-in block for random or latest downloads working with a mod. Also I can modify the mods you say if the author doesn't likely to do it. ;)
Quote from: [SiNaN] on April 22, 2008, 07:40:25 AM
http://www.simplemachines.org/community/index.php?topic=227599.msg1512194#msg1512194
Quote from: babylon on April 22, 2008, 07:43:35 AM
ok i see...
But will it effect any urls that are already in google ?
Quote from: MTF95 on April 22, 2008, 07:49:08 AM
I didn't ment you to create a downloads module, but a downloads mod, outside the portal.
Quote from: [SiNaN] on April 22, 2008, 08:12:24 AM
Hımmm, I don't think I would. Because there are many alternatives. :)
Quote from: [SiNaNDrover, ...And for the problem you are having; I guess you are using utf-8 encoding. I attached the file that you should use. Just install this package after you install the SimplePortal v1.1.
Quote from: [●ριмρєя12●] on April 22, 2008, 12:25:54 PM
Cant wait for the smf 2 release of this :D
More people would use SP as TP havent upgraded yet :o
Quote from: Manu0372 on April 16, 2008, 08:41:59 AM
Thanks a lot, I will wait for the package. ;)
Hi it's me again.
I have installed the mod to my forum, not test forum, everything works perfect, but
now I get an error message:Quote8: Undefined variable: score_poss
File: /is/htdocs/.../.../.../Themes/default/languages/Stats.english.php (eval?)
Line: 719
I checked the Stats.english.php, but there isn't a "Line: 719".
Can you help me please?
// Make sure guests can see this board.
$request = db_query("
SELECT ID_BOARD
FROM {$db_prefix}boards
WHERE " . ($board === null ? '' : "ID_BOARD = $board
AND ") . "FIND_IN_SET(-1, memberGroups)
LIMIT 1", __FILE__, __LINE__);
if (mysql_num_rows($request) == 0)
{
die($txt['smf_news_error2']);
}
list ($board) = mysql_fetch_row($request);
mysql_free_result($request);
foreach ($best_players as $players)
$score_poss = 0;
'href' => $scripturl . '#' . $row['ID_CAT'],
'link' => '<a href="' . $scripturl . '#' . $row['ID_CAT'] . '">' . $row['cname'] . '</a>'
'href' => $scripturl . '?action=forum#' . $row['ID_CAT'],
'link' => '<a href="' . $scripturl . '?action=forum#' . $row['ID_CAT'] . '">' . $row['cname'] . '</a>'
Quote from: [SiNaN] on April 25, 2008, 03:09:53 AM
For the Arcade Block error;
../Themes/default/SPortal.template.php
Find:Code Selectforeach ($best_players as $players)
Add before:Code Select$score_poss = 0;
Quote from: scubaru on April 25, 2008, 10:21:41 AMQuote from: [SiNaN] on April 25, 2008, 03:09:53 AM
For the Arcade Block error;
../Themes/default/SPortal.template.php
Find:Code Selectforeach ($best_players as $players)
Add before:Code Select$score_poss = 0;
Thanks so very much that worked perfectly.
Quote from: Drover on April 25, 2008, 09:26:14 AM
Here it is. I wasn't sure if you needed the regular one or the utf-8 one.
Thanks for taking a look.
Quote from: Manu0372 on April 25, 2008, 05:16:23 PM
@[SiNaN]
Both codes working perfect. Thanks for your help!
Be sure I will let you know when I or my 2nd Admin will find again an error. ;D
Quote from: Manu0372 on April 26, 2008, 12:13:06 PM
Maybe I can answer for scubaru, cause I have the same problem.
If you want you can take a look at our arcade block.
URL: http://forum.arseniums.com (Our arcade block is named "Games" 8) )
There aren't any error logs.
Another problem was coming up after I activated the Gallery block.
The portal was loading and loading, I couldn't enter the portal. Some minutes
later I could enter the portal and I could see an error message in the Gallery
block. I forgot to copy the error message, cause I went back to the portal settings
and switched off the Gallery block. Later this day I will activate the Gallery block
again to see what will happen than. :-\
Quote from: scubaru on April 26, 2008, 12:35:52 PMQuote from: Manu0372 on April 26, 2008, 12:13:06 PM
Maybe I can answer for scubaru, cause I have the same problem.
If you want you can take a look at our arcade block.
URL: http://forum.arseniums.com (http://forum.arseniums.com) (Our arcade block is named "Games" 8) )
There aren't any error logs.
Another problem was coming up after I activated the Gallery block.
The portal was loading and loading, I couldn't enter the portal. Some minutes
later I could enter the portal and I could see an error message in the Gallery
block. I forgot to copy the error message, cause I went back to the portal settings
and switched off the Gallery block. Later this day I will activate the Gallery block
again to see what will happen than. :-\
I Would like to add that yes I have the number of people to display in the block set at 5. Tried 10 with no difference.
Also there re no errors present in the log.
Manu0372 I noticed on your site that you get multiple people listed in the block but all have the number 1 listed in front of them. I on the other hand am only seeing 1 person listed.
check out for your self if you like
URL: http://www.scubaru.selfip.com (http://www.scubaru.selfip.com)
thanks again
Quote from: Manu0372 on April 26, 2008, 12:45:24 PMQuote from: scubaru on April 26, 2008, 12:35:52 PMQuote from: Manu0372 on April 26, 2008, 12:13:06 PM
Maybe I can answer for scubaru, cause I have the same problem.
If you want you can take a look at our arcade block.
URL: http://forum.arseniums.com (http://forum.arseniums.com) (Our arcade block is named "Games" 8) )
There aren't any error logs.
Another problem was coming up after I activated the Gallery block.
The portal was loading and loading, I couldn't enter the portal. Some minutes
later I could enter the portal and I could see an error message in the Gallery
block. I forgot to copy the error message, cause I went back to the portal settings
and switched off the Gallery block. Later this day I will activate the Gallery block
again to see what will happen than. :-\
I Would like to add that yes I have the number of people to display in the block set at 5. Tried 10 with no difference.
Also there re no errors present in the log.
Manu0372 I noticed on your site that you get multiple people listed in the block but all have the number 1 listed in front of them. I on the other hand am only seeing 1 person listed.
check out for your self if you like
URL: http://www.scubaru.selfip.com (http://www.scubaru.selfip.com)
thanks again
Before I changed the code the numbers was counting correct, but I got a lot of
error messages in the log. The errors are gone, but the counting isn't correct,
but with that I can handle perfect.
How many high scores are in your arcade? How many members in your forum
have played a game? Maybe you was the only one till now who has played a game? :)
Quote from: scubaru on April 26, 2008, 01:09:00 PM
OK it's official, I am a twit...
Figured out it was my fault.
I added the line of code After the find code not before it. ???
Works perfectly now as it should have with such great advice sorry for the troubles.
Humbly Yours, Scubaru
<?php
/**********************************************************************************
* ModSettings.php *
***********************************************************************************
* SMF: Simple Machines Forum *
* Open-Source Project Inspired by Zef Hemel ([email protected]) *
* =============================================================================== *
* Software Version: SMF 1.1 *
* Software by: Simple Machines (http://www.simplemachines.org) *
* Copyright 2006 by: Simple Machines LLC (http://www.simplemachines.org) *
* 2001-2006 by: Lewis Media (http://www.lewismedia.com) *
* Support, News, Updates at: http://www.simplemachines.org *
***********************************************************************************
* This program is free software; you may redistribute it and/or modify it under *
* the terms of the provided license as published by Simple Machines LLC. *
* *
* This program is distributed in the hope that it is and will be useful, but *
* WITHOUT ANY WARRANTIES; without even any implied warranty of MERCHANTABILITY *
* or FITNESS FOR A PARTICULAR PURPOSE. *
* *
* See the "license.txt" file for details of the Simple Machines license. *
* The latest version can always be found at http://www.simplemachines.org. *
**********************************************************************************/
if (!defined('SMF'))
die('Hacking attempt...');
/* This file is here to make it easier for installed mods to have settings
and options. It uses the following functions:
void ModifyFeatureSettings()
// !!!
void ModifyFeatureSettings2()
// !!!
void ModifyBasicSettings()
// !!!
void ModifyLayoutSettings()
// !!!
void ModifyKarmaSettings()
// !!!
Adding new settings to the $modSettings array:
---------------------------------------------------------------------------
// !!!
*/
/* Adding options to one of the setting screens isn't hard. The basic format for a checkbox is:
array('check', 'nameInModSettingsAndSQL'),
And for a text box:
array('text', 'nameInModSettingsAndSQL')
(NOTE: You have to add an entry for this at the bottom!)
In these cases, it will look for $txt['nameInModSettingsAndSQL'] as the description,
and $helptxt['nameInModSettingsAndSQL'] as the help popup description.
Here's a quick explanation of how to add a new item:
* A text input box. For textual values.
ie. array('text', 'nameInModSettingsAndSQL', 'OptionalInputBoxWidth',
&$txt['OptionalDescriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),
* A text input box. For numerical values.
ie. array('int', 'nameInModSettingsAndSQL', 'OptionalInputBoxWidth',
&$txt['OptionalDescriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),
* A text input box. For floating point values.
ie. array('float', 'nameInModSettingsAndSQL', 'OptionalInputBoxWidth',
&$txt['OptionalDescriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),
* A large text input box. Used for textual values spanning multiple lines.
ie. array('large_text', 'nameInModSettingsAndSQL', 'OptionalNumberOfRows',
&$txt['OptionalDescriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),
* A check box. Either one or zero. (boolean)
ie. array('check', 'nameInModSettingsAndSQL', null, &$txt['descriptionOfTheOption'],
'OptionalReferenceToHelpAdmin'),
* A selection box. Used for the selection of something from a list.
ie. array('select', 'nameInModSettingsAndSQL', array('valueForSQL' => &$txt['displayedValue']),
&$txt['descriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),
Note that just saying array('first', 'second') will put 0 in the SQL for 'first'.
* A password input box. Used for passwords, no less!
ie. array('password', 'nameInModSettingsAndSQL', 'OptionalInputBoxWidth',
&$txt['descriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),
For each option:
type (see above), variable name, size/possible values, description, helptext.
OR make type 'rule' for an empty string for a horizontal rule.
OR make type 'heading' with a string for a titled section. */
// This function passes control through to the relevant tab.
function ModifyFeatureSettings()
{
global $context, $txt, $scripturl, $modSettings, $sourcedir;
// You need to be an admin to edit settings!
isAllowedTo('admin_forum');
// All the admin bar, to make it right.
adminIndex('edit_mods_settings');
loadLanguage('Help');
loadLanguage('HidePost');
loadLanguage('ModSettings');
// Will need the utility functions from here.
require_once($sourcedir . '/ManageServer.php');
$context['page_title'] = $txt['modSettings_title'];
$context['sub_template'] = 'show_settings';
$subActions = array(
'rog' => 'rantonguestsSettings',
'invite' => 'ModifyInviteSettings',
'custombbc' => 'ModifyCustomBBCodeSettings',
'aeiou' => 'ModifyAeiouSettings', 'actions' => 'ModifyActionSettings',
'basic' => 'ModifyBasicSettings',
'layout' => 'ModifyLayoutSettings',
'sportal' => 'ModifySPortalSettings',
'MemberColorLinks' => 'ModifyMemberColorLinksSettings',
'karma' => 'ModifyKarmaSettings',
// --- Begin modification - SMFBlog ---
'usercp' => 'ModifyUserCPSettings',
// --- End modification ---
'profile' => 'ModifyProfileSettings',
'chatroomButton' => 'ModifyChatroomButtonSettings',
'websiteButton' => 'ModifyWebsiteButtonSettings',
);
// By default do the basic settings.
$_REQUEST['sa'] = isset($_REQUEST['sa']) && isset($subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : 'basic';
$context['sub_action'] = $_REQUEST['sa'];
loadLanguage('CustomProfile');
// Load up all the tabs...
$context['admin_tabs'] = array(
'title' => &$txt['modSettings_title'],
'help' => 'modsettings',
'description' => $txt['smf3'],
'tabs' => array(
'basic' => array(
'title' => $txt['mods_cat_features'],
'href' => $scripturl . '?action=featuresettings;sa=basic;sesc=' . $context['session_id'],
),
'actions' => array(
'title' => 'Custom Actions',
'href' => $scripturl . '?action=featuresettings;sa=actions;sesc=' . $context['session_id'],
),
'layout' => array(
'title' => $txt['mods_cat_layout'],
'href' => $scripturl . '?action=featuresettings;sa=layout;sesc=' . $context['session_id'],
),
'sportal' => array(
'title' => $txt['mods_cat_sportal'],
'href' => $scripturl . '?action=featuresettings;sa=sportal;sesc=' . $context['session_id'],
),
'rog' => array(
'title' => $txt['rog_settings'],
'href' => $scripturl . '?action=featuresettings;sa=rog;sesc=' . $context['session_id'],
),
'invite' => array(
'title' => $txt['invite_title'],
'href' => $scripturl . '?action=featuresettings;sa=invite;sesc=' . $context['session_id'],
),
'MemberColorLinks' => array(
'title' => $txt['MemberColorLinkHeadline'],
'href' => $scripturl . '?action=featuresettings;sa=MemberColorLinks;sesc=' . $context['session_id'],
),
'custombbc' => array(
'title' => $txt['customBBCode_tabtitle'],
'href' => $scripturl . '?action=featuresettings;sa=custombbc;sesc=' . $context['session_id'],
),
'profile' => array(
'title' => $txt['cp_cpfields'],
'href' => $scripturl . '?action=featuresettings;sa=profile;sesc=' . $context['session_id'],
),
// --- Begin modification - UserCP ---
'usercp' => array(
'title' => $txt['usercp'],
'href' => $scripturl . '?action=featuresettings;sa=usercp;sesc=' . $context['session_id'],
),
// --- End modification ---
'chatroomButton' => array(
'title' => $txt['chatroomButton_title'],
'href' => $scripturl . '?action=featuresettings;sa=chatroomButton;sesc=' . $context['session_id'],
),
'websiteButton' => array(
'title' => $txt['websiteButton_title'],
'href' => $scripturl . '?action=featuresettings;sa=websiteButton;sesc=' . $context['session_id'],
),
'karma' => array(
'title' => $txt['smf293'],
'href' => $scripturl . '?action=featuresettings;sa=karma;sesc=' . $context['session_id'],
),
'aeiou' => array(
'title' => $txt['aeiou'],
'href' => $scripturl . '?action=featuresettings;sa=aeiou;sesc=' . $context['session_id'],
'is_last' => true,
),
),
);
// Select the right tab based on the sub action.
if (isset($context['admin_tabs']['tabs'][$context['sub_action']]))
$context['admin_tabs']['tabs'][$context['sub_action']]['is_selected'] = true;
// Call the right function for this sub-acton.
$subActions[$_REQUEST['sa']]();
}
// This function basically just redirects to the right save function.
function ModifyFeatureSettings2()
{
global $context, $txt, $scripturl, $modSettings, $sourcedir;
isAllowedTo('admin_forum');
loadLanguage('ModSettings');
// Quick session check...
checkSession();
require_once($sourcedir . '/ManageServer.php');
$subActions = array(
'rog' => 'rantonguestsSettings',
'invite' => 'ModifyInviteSettings',
'custombbc' => 'ModifyCustomBBCodeSettings',
'aeiou' => 'ModifyAeiouSettings', 'actions' => 'ModifyActionSettings',
'basic' => 'ModifyBasicSettings',
'layout' => 'ModifyLayoutSettings',
'MemberColorLinks' => 'ModifyMemberColorLinksSettings',
'karma' => 'ModifyKarmaSettings',
// --- Begin modification - UserCP ---
'usercp' => 'ModifyUserCPSettings',
// --- End modification ---
'profile' => 'ModifyProfileSettings',
'chatroomButton' => 'ModifyChatroomButtonSettings',
'websiteButton' => 'ModifyWebsiteButtonSettings',
);
// Default to core (I assume)
$_REQUEST['sa'] = isset($_REQUEST['sa']) && isset($subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : 'basic';
// Actually call the saving function.
$subActions[$_REQUEST['sa']]();
}
function ModifyBasicSettings()
{
global $txt, $scripturl, $context, $settings, $sc, $modSettings;
$config_vars = array(
// Big Options... polls, sticky, bbc....
array('select', 'pollMode', array(&$txt['smf34'], &$txt['smf32'], &$txt['smf33'])),
'',
// Basic stuff, user languages, titles, flash, permissions...
array('check', 'allow_guestAccess'),
array('check', 'userLanguage'),
array('check', 'allow_editDisplayName'),
array('check', 'allow_hideOnline'),
array('check', 'allow_hideEmail'),
array('check', 'guest_hideContacts'),
array('check', 'titlesEnable'),
array('check', 'enable_buddylist'),
array('text', 'color_buddylist'),
array('text', 'default_personalText'),
array('int', 'max_signatureLength'),
array('int', 'award_max_width'),
array('int', 'award_max_height'),
'',
// MCLegendII
array('text', 'arrange_mclegend'),
'',
// MCLegendII
array('text', 'arrange_mclegend'),
'',
// Stats, compression, cookies.... server type stuff.
array('text', 'time_format'),
array('select', 'number_format', array('1234.00' => '1234.00', '1,234.00' => '1,234.00', '1.234,00' => '1.234,00', '1 234,00' => '1 234,00', '1234,00' => '1234,00')),
array('float', 'time_offset'),
array('int', 'failed_login_threshold'),
array('int', 'lastActive'),
array('check', 'trackStats'),
array('check', 'hitStats'),
array('check', 'enableErrorLogging'),
array('check', 'securityDisable'),
'',
// Related Topics
array('check', 'relatedTopicsEnabled'),
array('int', 'relatedTopicsCount'),
array('select', 'relatedMethod', array('fulltext' => &$txt['relatedFulltext'], 'custom' => &$txt['relatedCustom'])),
'',
// Reactive on email, and approve on delete
array('check', 'send_validation_onChange'),
array('check', 'approveAccountDeletion'),
'',
// Option-ish things... miscellaneous sorta.
array('check', 'allow_disableAnnounce'),
array('check', 'disallow_sendBody'),
array('check', 'modlog_enabled'),
array('check', 'queryless_urls'),
'',
array('check', 'sitemap_xml'),
array('int', 'sitemap_topic_count'),
array('check', 'sitemap_collapsible'),
'',
// Width/Height image reduction.
array('int', 'max_image_width'),
array('int', 'max_image_height'),
'',
// Show NNTP Syndicate Options
array('check', 'nntp_syndicate_enable'),
array('text', 'nntp_syndicate_server'),
array('text', 'nntp_syndicate_port'),
array('check', 'nntp_syndicate_authentication'),
array('text', 'nntp_syndicate_username'),
array('text', 'nntp_syndicate_password'),
'',
// No Reply Email??
array('check', 'enableNoReply'),
array('text', 'NoReplyEmail'),
array('text', 'NoReplyMessage'),
'',
// Hide post or not? ;).
array('check', 'allow_hiddenPost'),
array('check', 'show_hiddenMessage'),
array('int', 'max_hiddenValue'),
array('text', 'show_hiddenColor'),
'',
// Reporting of personal messages?
array('check', 'enableSinglePM'),
array('check', 'enableReportPM'),
array('check', 'SaveAllPMsEnabled'),
);
// Saving?
if (isset($_GET['save']))
{
// Fix PM settings.
$_POST['pm_spam_settings'] = (int) $_POST['max_pm_recipients'] . ',' . (int) $_POST['pm_posts_verification'] . ',' . (int) $_POST['pm_posts_per_hour'];
$save_vars = $config_vars;
$save_vars[] = array('text', 'pm_spam_settings');
saveDBSettings($save_vars);
writeLog();
redirectexit('action=featuresettings;sa=basic');
}
// Hack for PM spam settings.
list ($modSettings['max_pm_recipients'], $modSettings['pm_posts_verification'], $modSettings['pm_posts_per_hour']) = explode(',', $modSettings['pm_spam_settings']);
$config_vars[] = array('int', 'max_pm_recipients');
$config_vars[] = array('int', 'pm_posts_verification');
$config_vars[] = array('int', 'pm_posts_per_hour');
$context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=basic';
$context['settings_title'] = $txt['mods_cat_features'];
prepareDBSettingContext($config_vars);
}
function ModifyLayoutSettings()
{
global $txt, $scripturl, $context, $settings, $sc;
$config_vars = array(
// Compact pages?
array('check', 'compactTopicPagesEnable'),
array('int', 'compactTopicPagesContiguous', null, $txt['smf235'] . '<div class="smalltext">' . str_replace(' ', ' ', '"3" ' . $txt['smf236'] . ': <b>1 ... 4 [5] 6 ... 9</b>') . '<br />' . str_replace(' ', ' ', '"5" ' . $txt['smf236'] . ': <b>1 ... 3 4 [5] 6 7 ... 9</b>') . '</div>'),
'',
// Stuff that just is everywhere - today, search, online, etc.
array('select', 'todayMod', array(&$txt['smf290'], &$txt['smf291'], &$txt['smf292'])),
array('check', 'topbottomEnable'),
array('check', 'onlineEnable'),
array('check', 'enableVBStyleLogin'),
'',
// Pagination stuff.
array('int', 'defaultMaxMembers'),
'',
// This is like debugging sorta.
array('check', 'timeLoadPageEnable'),
array('check', 'disableHostnameLookup'),
'',
// Who's online.
array('check', 'who_enabled'),
'',
// Board Viewers By HarzeM
array('check', 'enable_board_viewers'),
array('check', 'boardViewersGuestsMembers'),
array('check', 'boardViewersClickable'),
array('check', 'countChildPosts'), '',
// Recent topics ?
array('check', 'recent_topics',null, &$txt['recent_topics']),
);
// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=layout');
loadUserSettings();
writeLog();
}
$context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=layout';
$context['settings_title'] = $txt['mods_cat_layout'];
prepareDBSettingContext($config_vars);
}
function ModifySPortalSettings()
{
global $txt, $scripturl, $context, $settings, $sc;
$config_vars = array(
// What does it look like? [smite]?
array('check', 'lshowdetails'),
array('check', 'aspecificannounce'),
array('check', 'nshowavatar'),
array('select', 'tttype', array(&$txt[110], &$txt[301])),
array('select', 'gallerytype', array(&$txt['galleryrandom'], &$txt['gallerylatest'])),
'',
array('text', 'aannouncetext'),
array('int', 'nnewsboard'),
array('int', 'nnewscount'),
array('int', 'nnewslength'),
array('int', 'rppostcount'),
array('int', 'rttopiccount'),
array('int', 'ppollid'),
array('int', 'tppcount'),
array('int', 'tbbcount'),
array('int', 'tttcount'),
array('int', 'arcadebpcount'),
'',
array('check', 'showleft'),
array('check', 'showright'),
array('int', 'leftwidth'),
array('int', 'rightwidth'),
'',
array('check', 'showuser'),
array('check', 'showusersonline'),
array('check', 'showboardstats'),
array('check', 'showlatestmember'),
array('check', 'showquicksearch'),
array('check', 'showannouncements'),
array('check', 'showboardnews'),
array('check', 'showrecentposts'),
array('check', 'showrecenttopics'),
array('check', 'showtoppoll'),
array('check', 'showtopposters'),
array('check', 'showtopboards'),
array('check', 'showtoptopics'),
array('check', 'showrecentpurchase'),
array('check', 'showgallery'),
array('check', 'showarcade'),
'',
array('check', 'advertiselefton'),
array('select', 'advertiselefttype', array(&$txt['advertisehtml'], &$txt['advertisephp'])),
array('large_text', 'advertiseleft'),
array('check', 'advertiserighton'),
array('select', 'advertiserighttype', array(&$txt['advertisehtml'], &$txt['advertisephp'])),
array('large_text', 'advertiseright'),
);
// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=sportal');
}
$context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=sportal';
$context['settings_title'] = $txt['sportalsettings'];
prepareDBSettingContext($config_vars);
}
function ModifyProfileSettings()
{
global $sourcedir;
require_once($sourcedir . '/CustomProfile.php');
CustomFieldSettings();
}
function ModifyChatroomButtonSettings()
{
global $txt, $scripturl, $context, $settings, $sc;
// WebsiteButton 1.0 Settings
$config_vars = array(
array('select', 'chatroomButton_ga', array(
0 => &$txt['chatroom_disabled'],
1 => &$txt['chatroom_enabled'],
)),
array('text', 'chatroomButton_url'),
);
// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=chatroomButton');
}
$context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=chatroomButton';
$context['settings_title'] = isset($txt['chatroomButton_title']) ? $txt['chatroomButton_title'] : 'Chatroom';
prepareDBSettingContext($config_vars);
}
function ModifyWebsiteButtonSettings()
{
global $txt, $scripturl, $context, $settings, $sc;
// WebsiteButton 1.0 Settings
$config_vars = array(
array('text', 'websiteButton_url'),
);
// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=websiteButton');
}
$context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=websiteButton';
$context['settings_title'] = isset($txt['websiteButton_title']) ? $txt['websiteButton_title'] : 'Website';
prepareDBSettingContext($config_vars);
}
// Invite MOD
function ModifyInviteSettings()
{
global $sourcedir;
require_once($sourcedir . '/Invite.php');
InviteSettings();
}
function rantonguestsSettings()
{
global $txt, $scripturl, $context, $settings, $sc;
$config_vars = array(
//Rant on Guests mod rog mod
array('text', 'rog_title'),
array('text', 'rog_post'),
);
// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=rog');
}
$context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=rog';
$context['settings_title'] = $txt['rog_settings'];
prepareDBSettingContext($config_vars);
}
function ModifyKarmaSettings()
{
global $txt, $scripturl, $context, $settings, $sc;
$config_vars = array(
// Karma - On or off?
array('select', 'karmaMode', explode('|', $txt['smf64'])),
'',
// Who can do it.... and who is restricted by time limits?
array('int', 'karmaMinPosts'),
array('float', 'karmaWaitTime'),
array('check', 'karmaTimeRestrictAdmins'),
'',
// What does it look like? [smite]?
array('text', 'karmaLabel'),
array('text', 'karmaApplaudLabel'),
array('text', 'karmaSmiteLabel'),
);
// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=karma');
}
$context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=karma';
$context['settings_title'] = $txt['smf293'];
prepareDBSettingContext($config_vars);
}
function ModifyMemberColorLinksSettings()
{
global $txt, $scripturl, $context, $settings, $sc;
$config_vars = array(
// Standard Membercolor?
array('check', 'MemberColorLink'),
'',
//Some Stat Settings
array('check', 'MemberColorLatestMember'),
array('check', 'MemberColorStats'),
array('check', 'MemberColorWhoIsOnline'),
'',
//Thread and Boardsettings
array('check', 'MemberColorThreadOwner'),
array('check', 'MemberColorThreadLastPost'),
array('check', 'MemberColorThreadChild'),
'',
//Birthday and Calendar
array('check', 'MemberColorBoardindex'),
array('check', 'MemberColorBirthday'),
'',
//Some Recent Things
array('check', 'MemberColorRecentOwner'),
array('check', 'MemberColorRecentLastPost'),
'',
// PM Colors
array('check', 'MemberColorInbox'),
array('check', 'MemberColorOutbox'),
'',
//Guest Color
array('text', 'MemberColorGuests'),
//Banned User Color
array('text', 'MemberColorBanned'),
);
// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=MemberColorLinks');
}
$context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=MemberColorLinks';
$context['settings_title'] = $txt['MemberColorLinkHeadline'];
prepareDBSettingContext($config_vars);
}
function ModifyActionSettings()
{
global $sourcedir;
require_once($sourcedir . '/CustomAction.php');
CustomActionSettings();
}
// --- Begin modification - UserCP ---
function ModifyUserCPSettings()
{
global $txt, $scripturl, $context, $settings, $sc;
$config_vars = array(
array('check', 'usercp_enable'),
array ('check', 'usercp_enablecontactadmin'),
array('check', 'usercp_switchview'),
array('check', 'usercp_usepm'),
array('int', 'usercp_adminid'),
'',
array('text', 'usercp_field1image'),
array('text', 'usercp_field1url'),
array('text', 'usercp_field1maintext'),
array('text', 'usercp_field1summary'),
array('check', 'usercp_field1enable'),
'',
array('text', 'usercp_field2image'),
array('text', 'usercp_field2url'),
array('text', 'usercp_field2maintext'),
array('text', 'usercp_field2summary'),
array('check', 'usercp_field2enable'),
'',
array('text', 'usercp_field3image'),
array('text', 'usercp_field3url'),
array('text', 'usercp_field3maintext'),
array('text', 'usercp_field3summary'),
array('check', 'usercp_field3enable'),
'',
array('text', 'usercp_field4image'),
array('text', 'usercp_field4url'),
array('text', 'usercp_field4maintext'),
array('text', 'usercp_field4summary'),
array('check', 'usercp_field4enable'),
'',
);
// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=usercp');
}
$context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=usercp';
$context['settings_title'] = $txt['usercp'];
prepareDBSettingContext($config_vars);
}
// --- End modification ---
function ModifyAeiouSettings()
{
global $txt, $scripturl, $context, $settings, $sc, $db_prefix, $modSettings;
// If the mod is enabled and we're not saving, query for mod status information
if (!isset($_GET['save']) && $modSettings['aeiou_enable'])
{
// Current time
$time = time();
// Get the delete band
$request = db_query("
SELECT count(*)
FROM {$db_prefix}members
WHERE lastLogin < ". ($time - 1814400) ."
AND aeiou_email < ". ($time - 1814400) ."
AND aeiou_count > 1
AND posts <= ". (int) $modSettings['aeiou_underposts']. "
", __FILE__, __LINE__);
list($deletion) = mysql_fetch_row($request);
// Create an array for the bands, with default values of 0
$temp = array(0 => 0, 1 => 0, 2 => (int) $deletion);
// Tidy up
unset($deletion);
mysql_free_result($request);
// Get the email bands
$request = db_query("
SELECT count(*) as no, aeiou_count
FROM {$db_prefix}members
WHERE lastLogin < ". ($time - 1814400) ."
AND aeiou_email < ". ($time - 1814400) ."
AND aeiou_count < 2
AND is_activated < 10
AND is_activated != 0
AND is_activated != 4
GROUP BY aeiou_count
ORDER BY aeiou_count ASC
", __FILE__, __LINE__);
// No further emails, if not set already, stop the mod until tomorrow
if(mysql_num_rows($request) == 0)
{
// If not already, tell the mod to stop
if(!empty($modSettings['aeiou_stop']))
aeiou_update(array('stop' => 1));
// Change the variable for the remainder of this page
$modSettings['aeiou_stop'] = 1;
}
else
{
// Store the bands in the array created earlier
while($row = mysql_fetch_assoc($request))
$temp[$row['aeiou_count']] = $row['no'];
// Tidy up
unset($row);
// The mod is set as stopped, but we discovered some emails, so re-activate us
if(!empty($modSettings['aeiou_stop']))
{
aeiou_update(array('stop' => 0));
// Change the variable for the remainder of this page
$modSettings['aeiou_stop'] = 0;
$reactivated = 1;
}
}
// Prepare rows for the stats table
$items = array();
// Last ran
$items['aeiou_last_ran'] = ($modSettings['aeiou_locktimestamp'] == 0) ? $txt['aeiou_never'] : timeformat($modSettings['aeiou_locktimestamp'], true) ;
$again = ($modSettings['aeiou_locktimestamp'] == 0) ? $time : $modSettings['aeiou_locktimestamp'];
// But if reached daily limit or is stopped we will start/check again tomorrow
if($modSettings['aeiou_day_max'] <= $modSettings['aeiou_day_sent'] || $modSettings['aeiou_stop'] == 1)
{
$date = explode('-', date('Y-m-d', $again));
$tomorrow = mktime(0, 0, 0, $date[1], $date[2], $date[0]) + (60*60*24);
$items['aeiou_starts_again'] = timeformat($tomorrow, true);
unset($date, $tomorrow);
}
elseif($modSettings['aeiou_hour_max'] <= $modSettings['aeiou_hour_sent'])
{
// Or reached hourly limit we will start/check again next hour
$date = explode('-', date('Y-m-d-h', $again));
$nexthour = mktime($date[3], 0, 0, $date[1], $date[2], $date[0]) + (60*60);
$items['aeiou_starts_again'] = timeformat($nexthour, true);
unset($date, $nexthour);
}
else
// Else Can start again from previous + 5mins
$items['aeiou_starts_again'] = timeformat($again + 300, true) ;
// Emailed today with max in parenthesis
$items['aeiou_sent_day'] = $modSettings['aeiou_day_sent']
.' <span style="font-weight:normal;font-style:italic">('.$txt['aeiou_max'].': '.$modSettings['aeiou_day_max'].')</span>';
// Emailed this hour with max in parenthesis
$items['aeiou_sent_hour'] = $modSettings['aeiou_hour_sent']
.' <span style="font-weight:normal;font-style:italic">('.$txt['aeiou_max'].': '.$modSettings['aeiou_hour_max'].')</span>';
// Now setup the stats about no.s of email etc
$items['aeiou_awaiting_total'] = $temp[0] + $temp[1];
$items['aeiou_awaiting_initial_email'] = $temp[0];
$items['aeiou_awaiting_final_email'] = $temp[1];
$items['aeiou_awaiting_deletion'] = $temp[2] . (empty($modSettings['aeiou_delete']) ? ' <span style="color:red">'.$txt['aeiou_disabled'].'</span>' : '' ) ;
// Reasons for inactive
if(!empty($modSettings['aeiou_stop']))
$status = $txt['aeiou_nofurtheremails'];
elseif($modSettings['aeiou_day_max'] <= $modSettings['aeiou_day_sent'])
$status = $txt['aeiou_reacheddailylimit'];
elseif($modSettings['aeiou_hour_max'] <= $modSettings['aeiou_hour_sent'])
$status = $txt['aeiou_reachedhourlylimit'];
// Is the mod Active? (even if enabled, it might not be active)
// If the mod was stopped, but on loading this page, we discovered more emails, show as re-activated
if(!empty($reactivated))
$status = '<span style="color:darkgreen">'.$txt['aeiou_reactivated'].'</span>';
elseif(empty($status))
$status = '<span style="color:darkgreen">'.$txt['aeiou_active'].'</span>';
else
// Inactive
$status = '<span style="color:maroon">'.$txt['aeiou_stopped'].'</span> - '. $status;
// Header of the stats chunk and status
$chunk = '<table cellpadding="1" cellspacing="0" border="0" width="100%" class="tborder">
<tr class="titlebg"><td colspan="2">'.$txt['aeiou_status'].': '.$status.'</td></tr>';
// Now build the chunk of html of our stats
foreach($items as $string => $value)
{
// Less emphasis on the sub-totals
$italic = ($string == 'aeiou_awaiting_initial_email' || $string == 'aeiou_awaiting_final_email') ? 1 : 0 ;
// Add more rows to the existing chunk
$chunk .= '<tr class="windowbg"><td'.($italic ? ' style="font-weight:normal;font-style:italic"' : '').' >'.$txt[$string].':</td><td'.($italic ? ' style="font-weight:normal;font-style:italic"' : '').'>'.$value.'</td></tr>';
}
$chunk .= '</table><br />';
// Now for the last 10 people emailed
$request = db_query("
SELECT ID_MEMBER, memberName, aeiou_email, aeiou_count
FROM {$db_prefix}members
WHERE aeiou_email != 0
ORDER BY aeiou_email DESC
LIMIT 10
", __FILE__, __LINE__);
$chunk2 = '<table cellpadding="1" cellspacing="0" border="0" width="100%" class="tborder">
<tr class="titlebg"><td colspan="3">'.$txt['aeiou_last10emailed'].'</td></tr>';
if(mysql_num_rows($request) == 0)
$chunk2 .= '<tr class="windowbg"><td colspan="3">'.$txt['aeiou_never'].'</td></tr>';
else
{
// Add each user as a row in the table
while($row = mysql_fetch_assoc($request))
$chunk2 .= '<tr class="windowbg"><td><a href="'.$scripturl.'?action=profile;u='.$row['ID_MEMBER'].'">'.$row['memberName'].'</a></td><td style="font-weight:normal;">'.timeformat($row['aeiou_email'], true).'</td><td style="font-weight:normal;">'. $txt['aeiou_'.( ($row['aeiou_count'] == 1) ? 'initial' : 'final' )].'</td></tr>';
}
$chunk2 .= '</table><br />';
}
else
// If the mod is not enabled, don't show either as chunks. use a space to prevent it being shown as a delimiter
$chunk = $chunk2 = ' ';
// Compile/Build some language strings/add to
// Avoids using html in the language files
$temp = array('initial_subject' => 'subject', 'initial_message' => 'message', 'final_subject' => 'subject', 'final_message' => 'message');
$add = '<div class="smalltext">'.$txt['aeiou_email_desc1'].'<br />'.$txt['aeiou_email_desc2'].'<br />'.$txt['aeiou_email_desc3'].'</div>';
foreach($temp as $a => $b)
{
// Add the descriptions to the txt string
$txt['aeiou_'.$a] .= $add;
// Use the default message if we don't have a custom one saved
if(empty($modSettings['aeiou_'.$a]))
$modSettings['aeiou_'.$a] = !empty($txt['aeiou_default_'.$b]) ? $txt['aeiou_default_'.$b] : '' ;
}
// Tidy up
unset($temp, $add, $a);
// More descriptions to add with html
$temp = array('delete', 'underposts', 'hour_max', 'day_max', 'chunksize');
foreach($temp as $a)
$txt['aeiou_'.$a] .= '<div class="smalltext">'.$txt['aeiou_'.$a.'_desc'] .'</div>';
// Now the warning chunk. Comprises of 4 parts.
$txt['aeiou_warning'] .= '<div class="smalltext">'. $txt['aeiou_warning2'] .'<br />'.$txt['aeiou_warning3'].'<br />'.$txt['aeiou_warning4'].'</div>';
// The important array
$config_vars = array(
$chunk,
array('check', 'aeiou_enable'),
array('text', 'aeiou_initial_subject', '30" style="width:95%'),
array('large_text', 'aeiou_initial_message', '5" style="width:95%'),
array('text', 'aeiou_final_subject', '30" style="width:95%'),
array('large_text', 'aeiou_final_message', '5" style="width:95%'),
'',
array('check', 'aeiou_delete'),
array('int', 'aeiou_underposts'),
'',
$txt['aeiou_warning'],
array('int', 'aeiou_hour_max'),
array('int', 'aeiou_day_max'),
array('int', 'aeiou_chunksize'),
$chunk2,
);
// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=aeiou');
}
$context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=aeiou';
$context['settings_title'] = $txt['aeiou_title'];
prepareDBSettingContext($config_vars);
}
function ModifyCustomBBCodeSettings()
{
global $sourcedir;
require_once $sourcedir . '/CustomBBCode.php';
if (!empty($_GET['tag']))
EditCustomTag($_GET['tag']);
else
BrowseCustomTags();
}
?>
Quote from: [SiNaN] on April 25, 2008, 03:09:53 AM
Felic, for the first question;
../Sources/SPortal.php
Find and Delete:Code Select// Make sure guests can see this board.
...
Quote from: [SiNaN] on April 25, 2008, 03:09:53 AM
Drover, can you attach your ModSettings.php file so that I can check the issue?
Quote from: [SiNaN] on April 25, 2008, 03:09:53 AM
[●ριмρєя12●], I hope so. I finished the block functions also. But I'm thinking of adding some new blocks. I hope it will be ready in a week. This version would be like a 2.0 Beta 3 Public version of SimplePortal v1.1 but also some changes made for the further versions.
.
.
.
And lastly for all of you; apologizes for the delay but I'm a poor university student who doesn't even has his own computer and fighting with the exams these days.
Quote from: cleanfiles on April 28, 2008, 06:46:12 AMI tried duplicating the advertise block and that works fine, but I need to be able to edit the content....At the moment I just duplicates the content of the original block.
Hello again [SiNaN], I was wondering if it was possible to add blocks to the portal. Like add a txt block that i can use either html or php in or just plain txt. And have the ability to add as many of these blocks as required.
Thanks.
array('check', 'advertiserighton'),
array('select', 'advertiserighttype', array(&$txt['advertisehtml'], &$txt['advertisephp'])),
array('large_text', 'advertiseright'),
array('check', 'customblock1on'),
array('select', 'customblock1type', array(&$txt['advertisehtml'], &$txt['advertisephp'])),
array('large_text', 'customblock1content'),
?>
$txt['customblock1on'] = 'Show custom block 1:';
$txt['customblock1type'] = 'Custom block 1 coding type:';
$txt['customblock1content'] = 'Custom block 1 content:';
?>
$txt['sp-customblock1'] = 'Custom Block 1 Name';
if($modSettings['customblock1on'])
{
echo '
<!-- Custom Block -->
<div class="tborder">
<table class="bordercolor" width="100%">
<tr class="catbg">
<td style="padding: 5px;">', $txt['sp-customblock1'], '</td>
</tr>
<tr class="windowbg">
<td>';
if ($modSettings['customblock1type'] == 0)
echo $modSettings['customblock1content'];
else
eval ($modSettings['customblock1content']);
echo ' </td>
</tr>
</table>
</div>
<br />';
}
Quote from: Drover on April 29, 2008, 09:33:44 AM
Awesome, Sinan!
If SP doesn't quickly become the most downloaded mod, I don't know why.
Quote from: [SiNaN] on April 29, 2008, 09:37:44 AMQuote from: Drover on April 29, 2008, 09:33:44 AM
Awesome, Sinan!
If SP doesn't quickly become the most downloaded mod, I don't know why.
Woow, another great comment Drover. :D
Wait for the SimplePortal 2.0. It would be compatible with the 2.0 Beta versions also I hope. 8)
Quote from: Drover on April 29, 2008, 09:42:24 AM
Heheh...wel I made the comment before I ran into another little problem. But I mean it, despite the little issues, this is a great mod!
Quote from: [SiNaNIs there anything I can do for that little issue?
Quote from: Drover on April 29, 2008, 10:08:59 AMQuote from: [SiNaNIs there anything I can do for that little issue?
After using your file, I can now get into my portal settings, but it won't let me save any changes I make there. Ideas?
Quote from: [SiNaNHımmm, the same issue. Have you ever tried to install the package?
Quote from: Drover on April 29, 2008, 10:50:48 AM
That's how I originally installed the mod.
Quote from: Drover on April 29, 2008, 11:14:08 AM
Yes.
Quote from: cleanfiles on April 29, 2008, 04:58:18 PM
Cheers [SiNaN], the changes work perfect.
Using your code and SSI I can add lots of things now and have them fully integrated with smf, which makes this portal just perfect for my needs, well done.
Cant wait to see Simple Portal 2 in action.
Quote from: Drover on May 01, 2008, 10:59:44 AM
Thanks, Sinan! That seems to have it working! This mod is really great!
Quote from: [SiNaN] on April 29, 2008, 09:27:44 AM
asudhakar, I also couldn't find a problem there. Are the other settings work fine in your forum? Or it is only for SimplePortal?
Quote from: asudhakar on May 01, 2008, 01:42:49 PMQuote from: [SiNaN] on April 29, 2008, 09:27:44 AM
asudhakar, I also couldn't find a problem there. Are the other settings work fine in your forum? Or it is only for SimplePortal?
Hi SiNaN,
Its is not working only for Simple Portal.
I Could Change all the Other Settings.
I really like Simple Portal, Could you help me to fix this issue as soon.
Thanks in Advance
Sudhakar, Admin
www.itacumens.com
Quote from: cleanfiles on May 01, 2008, 04:56:06 PM
Hi again,
I have a quick question... In the who's online block, how can I make it so you can see the members action?
I think this would be a nice addition. :D
$txt['who_index'] = 'Viewing the board index of <a href="' . $scripturl . '">' . $context['forum_name'] . '</a>.';
$txt['who_index'] = 'Viewing <a href="' . $scripturl . '">Portal</a>.';
$txt['whoall_forum'] = 'Viewing <a href="' . $scripturl . '?action=forum">Forum</a>.';
Quote from: madman71 on May 01, 2008, 06:07:57 PM
Sinan,
Ok, i did manual edits to my theme(im using SullenMadness theme)
Nothing appears to be broken and all new buttons seem to work, but on the front page (portal page) only the blocks on the left appear. Many are missing including the random image block even when activated.
In the middle of the page i have this under BOARD NEWS:
You cannot specify a board that doesn't allow guests. Please check the board ID before trying again.
Any ideas? I can PM you login account so you can see if you like.
Quote from: madman71 on May 02, 2008, 03:15:40 AM
I , the admin, can not see the catagory.
I prefer to PM you my URL.
URL now being sent via PM
// Make sure guests can see this board.
$request = db_query("
SELECT ID_BOARD
FROM {$db_prefix}boards
WHERE " . ($board === null ? '' : "ID_BOARD = $board
AND ") . "FIND_IN_SET(-1, memberGroups)
LIMIT 1", __FILE__, __LINE__);
if (mysql_num_rows($request) == 0)
{
die($txt['smf_news_error2']);
}
list ($board) = mysql_fetch_row($request);
mysql_free_result($request);
Quote from: madman71 on May 02, 2008, 03:29:25 AM
Wonderful!!!!
thank you.
I shall make the minor fixes in the morning. It's well past midnight here :D
thanks agian :)
Quote from: [SiNaN] on May 02, 2008, 02:29:12 AM
Take a back-up of your ModSettings.php file. Download ModSettings.php file from the link below. Send it to your ftp. Then try changin the settings and report me the result here.
http://www.simplemachines.org/community/index.php?action=dlattach;topic=227599.0;attach=54832
Quote from: asudhakar on May 02, 2008, 04:04:15 AM
Thanks MR.SiNaN
Such a cool mod is yours.
Excellent Work.
That to i was thinking why to enter 23 , but you simple cool.
Okie Gallery is fine and how i have to be familiar with Simple Portal Mod as soon.
And one more thing i will attach my orginal Modsetting.php file because what you have given had one shows few mod and i previously i had many mods in menu for settings.
Thank you SiNaN in Advance,
Sudhakar, Admin
www.itacumens.com
Quote from: asudhakar on May 02, 2008, 04:59:57 AM
But i hope you have used some additional codes to show profile users and other.
And Have you Checked up with my Arcade to fit in Simple Portal.
Quote from: cleanfiles on May 02, 2008, 06:59:51 AM
Hey thanks [SiNaN], that solved another question I was going to ask. But what I actually was asking was...Could you make it so as members can see other users actions in the portal block. That way as soon as a member gets to the home page they can look at who is online and see where they are. ie. If other members are in the forum or in the chat room etc. :)
Quote from: jmil on May 02, 2008, 09:39:57 AM
Any issue install with a theme! I would like to try it but I am tentative due to the recent release.
Quote from: jmil on May 02, 2008, 10:24:57 AM
Glad you are online - I will try it now. (well After I finish my Backup!!!!!)
Black45 theme
www.forums.midatlanticxriders.com (http://www.forums.midatlanticxriders.com)
:)
Quote from: asudhakar on May 02, 2008, 05:34:02 AM
Thank you SiNaN
Ok and let me know how to hide the karma,because i dont use it and could i club two or more boards in index page .
And kindly let me know what code i could change to overcome the Arcade error.
$modSettings['gallery_url'] . $gallery_picture['filename'] . '" height="78" width="120" ') . '
Quote from: dejiman on May 02, 2008, 04:03:35 PM
Hi SiNaN,
Although I am new to Simple Portal. I just upgraded my SMF 1.1.4 to 1.1.5 then I uploaded your simple portal and I have errors after installing and the result wasn't good at all so I decided to uninstall it. Do you have any upgrade as regard the new SMF 1.1.5 ?
www.dejimanaire.com (http://www.dejimanaire.com)
Quote from: madman71 on May 02, 2008, 04:07:39 PMQuote from: dejiman on May 02, 2008, 04:03:35 PM
Hi SiNaN,
Although I am new to Simple Portal. I just upgraded my SMF 1.1.4 to 1.1.5 then I uploaded your simple portal and I have errors after installing and the result wasn't good at all so I decided to uninstall it. Do you have any upgrade as regard the new SMF 1.1.5 ?
www.dejimanaire.com (http://www.dejimanaire.com)
I think you can install it in 1.1.5
did you get these errors:
5. Execute Modification ./Sources/ModSettings.php Test failed
6. Execute Modification ./Themes/default/index.template.php Test failed
Did you try to edit by hand?
function sp_randomattachpic()
{
global $modSettings, $scripturl, $db_prefix;
//Find max.
$dbresult = db_query("
SELECT ID_ATTACH
FROM {$db_prefix}attachments
ORDER BY ID_ATTACH DESC
LIMIT 1", __FILE__, __LINE__);
$max = mysql_fetch_assoc($dbresult);
$check = 0;
while($check == 0) {
//Random it.
$idpic = rand(1, $max['ID_ATTACH']);
// Find the pictures.
$request = db_query("
SELECT ID_ATTACH, ID_MEMBER, filename, width, height
FROM {$db_prefix}attachments
WHERE ID_MEMBER = '0' AND width <> 0 AND ID_ATTACH = $idpic
LIMIT 1", __FILE__, __LINE__);
$return = array();
while ($row = mysql_fetch_assoc($request))
{
//Fix for the height.
if($row['height'] > 50)
$height = '50';
else
$height = $row['height'];
//Fix for the width.
if($row['width'] > 50)
$width = '50';
else
$width = $row['width'];
//Build up the array.
$return[] = array(
'id' => $row['ID_ATTACH'],
'filename' => $row['filename'],
'image' => '<img src="' . $scripturl . '?action=dlattach;attach=' . $row['ID_ATTACH'] . ';type=image" alt="" border="0" height="' . $width . '" width="' . $width . '" />',
);
}
mysql_free_result($request);
//Did you find what you search for?
if(!empty($return) || empty($max))
$check = 1;
}
//Output it! Rather simple, yeah? :P
foreach ($return as $attach) {
echo $attach['image'];
}
}
Quote from: dejiman on May 02, 2008, 04:40:10 PM
PLease indicate which file. is it the Sportal.template.php ?
Quote from: madman71 on May 02, 2008, 05:06:07 PMQuote from: dejiman on May 02, 2008, 04:40:10 PM
PLease indicate which file. is it the Sportal.template.php ?
When you installed it it should have told you which files failed. Did you get any files that failed to install? Those files that fail are usually the ones that need hand editing.
I had to hand edit these 2 files:
./Sources/ModSettings.php
./Themes/yourtheme/index.template.php
the index.temp is the one in your 3party theme
But that is me. You might be different. The installer should tell you which ones fail.
QuoteYou mean a block which shows where people are? Like the page whosonline?
Quote from: dejiman on May 02, 2008, 04:40:10 PMSOrry, didnt see your post where u got your errors.
PLease indicate which file. is it the Sportal.template.php ?
Quote from: [SiNaN] on May 02, 2008, 04:27:15 PM
Madman71;
For the first message: SPortal.php stands for the database queries, building up the arrays to show in template file. And SPortal.template.php file outputs the data you get with the SPortal.php. Also it includes the SPortal.english.php file, which includes the language variables. This is the simple page for the SMF.
The random attachment code will be a bit hard code for a starter but look at the codes below, if you can understand them:Code Selectfunction sp_randomattachpic()
{
global $modSettings, $scripturl, $db_prefix;
//Find max.
$dbresult = db_query("
SELECT ID_ATTACH
FROM {$db_prefix}attachments
ORDER BY ID_ATTACH DESC
LIMIT 1", __FILE__, __LINE__);
$max = mysql_fetch_assoc($dbresult);
$check = 0;
while($check == 0) {
//Random it.
$idpic = rand(1, $max['ID_ATTACH']);
// Find the pictures.
$request = db_query("
SELECT ID_ATTACH, ID_MEMBER, filename, width, height
FROM {$db_prefix}attachments
WHERE ID_MEMBER = '0' AND width <> 0 AND ID_ATTACH = $idpic
LIMIT 1", __FILE__, __LINE__);
$return = array();
while ($row = mysql_fetch_assoc($request))
{
//Fix for the height.
if($row['height'] > 50)
$height = '50';
else
$height = $row['height'];
//Fix for the width.
if($row['width'] > 50)
$width = '50';
else
$width = $row['width'];
//Build up the array.
$return[] = array(
'id' => $row['ID_ATTACH'],
'filename' => $row['filename'],
'image' => '<img src="' . $scripturl . '?action=dlattach;attach=' . $row['ID_ATTACH'] . ';type=image" alt="" border="0" height="' . $width . '" width="' . $width . '" />',
);
}
mysql_free_result($request);
//Did you find what you search for?
if(!empty($return) || empty($max))
$check = 1;
}
//Output it! Rather simple, yeah? :P
foreach ($return as $attach) {
echo $attach['image'];
}
}
A simple code for displaying random image attachment.
asudhakar;
You can turn karma off from
Admin CP >> Features and Options >> Karma
You mean to include 2 board for the boardnews block?
Madman71;
I guess you have the GD module installed. So you should increase the thumbnail file size from the gallery options.
Dejiman;Quote from: [SiNaN] on May 02, 2008, 04:27:15 PM
Madman71;
For the first message: SPortal.php stands for the database queries, building up the arrays to show in template file. And SPortal.template.php file outputs the data you get with the SPortal.php. Also it includes the SPortal.english.php file, which includes the language variables. This is the simple page for the SMF.
The random attachment code will be a bit hard code for a starter but look at the codes below, if you can understand them:
----------------------------------------------------------------------------------------
thanks sinan.
im gonna play with my trial forum this weekend
Quote from: dejiman on May 02, 2008, 09:04:38 PM
Here is the site before SIMPLE PORTAL
SMF GOOD
THE SITE AFTER SIMPLE PORTAL
SMF BAD
Please am having difficulties editing my sportal.php and index.template.php
Please give me step by step guidline to your own simple portal
Thanks
www.dejimanaire.com (http://www.dejimanaire.com)
Quote from: cleanfiles on May 02, 2008, 05:23:44 PMQuoteYou mean a block which shows where people are? Like the page whosonline?
Yeah thats what I was trying to say. :D
Quote from: ne.miguelito on May 02, 2008, 08:13:04 PM
give for more than a board?
Quote from: madman71 on May 02, 2008, 05:49:25 PM
Sinan,
Yes, i do have the GD installed. However, i do not have the option to change the size of the thumbnails in the Gallery only max file size and dimension
Max allowed image height:
Max allowed image width:
only those.
i'll look some more. And thanks for everything
maybe i'll turn GD off
as of right now they are 55x75 in Width and Height :(
//Create thumbnail
require_once($sourcedir . '/Subs-Graphics.php');
Quote from: dejiman on May 02, 2008, 09:17:10 PM
Thanks for your care so far.
www.dejimanaire.com (http://www.dejimanaire.com)
<img src="' . $settings['images_url'] . '/dot.gif" alt="Dot" /> ', $txt['sp-userkarma'], ': ',$memberContext[$member_id]['karma']['total'],'<br />
if ($board !== null)
$board = (int) $board;
elseif (isset($_GET['board']))
$board = (int) $_GET['board'];
// Make sure guests can see this board.
$request = db_query("
SELECT ID_BOARD
FROM {$db_prefix}boards
WHERE " . ($board === null ? '' : "ID_BOARD = $board
AND ") . "FIND_IN_SET(-1, memberGroups)
LIMIT 1", __FILE__, __LINE__);
if (mysql_num_rows($request) == 0)
{
die($txt['smf_news_error2']);
}
list ($board) = mysql_fetch_row($request);
mysql_free_result($request);
WHERE ID_BOARD = $board
WHERE ID_BOARD IN $board
array('int', 'nnewsboard'),
array('text', 'nnewsboard'),
Quote from: [SiNaN] on May 03, 2008, 02:50:22 AMQuote from: cleanfiles on May 02, 2008, 05:23:44 PMQuoteYou mean a block which shows where people are? Like the page whosonline?
Yeah thats what I was trying to say. :D
I'll look at that code also.
Quote from: [SiNaN] on May 03, 2008, 04:41:44 AM
Thanks asudhakar. As I'm not a native speaker, sometimes I'm having difficulty in understanding the issues.
So for the karma issue:
../Themes/default/SPortal.template.php
Find and delete:Code Select<img src="' . $settings['images_url'] . '/dot.gif" alt="Dot" /> ', $txt['sp-userkarma'], ': ',$memberContext[$member_id]['karma']['total'],'<br />
Hımmm, the second one about the board news is going to be a bit hard though. But okay, let's start...
../Sources/SPortal.php
Find and delete:Code Selectif ($board !== null)
$board = (int) $board;
elseif (isset($_GET['board']))
$board = (int) $_GET['board'];
Find and delete:Code Select// Make sure guests can see this board.
$request = db_query("
SELECT ID_BOARD
FROM {$db_prefix}boards
WHERE " . ($board === null ? '' : "ID_BOARD = $board
AND ") . "FIND_IN_SET(-1, memberGroups)
LIMIT 1", __FILE__, __LINE__);
if (mysql_num_rows($request) == 0)
{
die($txt['smf_news_error2']);
}
list ($board) = mysql_fetch_row($request);
mysql_free_result($request);
Find:Code SelectWHERE ID_BOARD = $board
Replace:Code SelectWHERE ID_BOARD IN $board
../Sources/ModSettings.php
Find:Code Selectarray('int', 'nnewsboard'),
Replace:Code Selectarray('text', 'nnewsboard'),
And then set the news board as the format below from the Portal Settings;
(firstboardid, secondboardid, thirdboardid)
Example for your forum;
(23,12)
Quote
Fatal error: Maximum execution time of 30 seconds exceeded in /is/htdocs/.../.../.../Sources/Subs.php on line 321
Quote from: ne.miguelito on May 03, 2008, 08:33:28 PM
Hello, good Mod, please can you help me?
In my SimplePortal page i want to put 30 messages in the Board News, and to the page not be very big, i want to split those 30 mesagens in pages, like 5 in one page, did you understand me? Sorry my bad english.
Thanks for everyting.
[[]]
foreach ($best_players as $players)
$score_poss = 0;
Quote from: [SiNaN] on May 05, 2008, 09:13:36 AM
For the Arcade Block error;
../Themes/default/SPortal.template.php
Find:Code Selectforeach ($best_players as $players)
Add before:Code Select$score_poss = 0;
Manu0372, there seem to be an infinite loop. I should check the codes. Then I'll post a reply.
And do you have Vbgamer's SMF Gallery mod installed?
Quote from: jerseyjoe on May 08, 2008, 07:18:36 AM
Thank you Manu0372.
the template that I sent you was the one that was on my HD, not the one from my server. I was believing that the two files are the same, but it is possible they were not.
I replaced the file on the server with the one you modified. However, I still get the warning error.
I will wait until the
Quote from: jerseyjoe on May 08, 2008, 09:56:32 PM
I do not have
Admin CP >> Features and Options >> Portal Settings
The portal installs correctly - or at leasat the messages say it is - but I do not have Portal Settings in the Features and Options page.
Suggestions?
Quote from: jerseyjoe on May 08, 2008, 09:56:32 PM
I do not have
Admin CP >> Features and Options >> Portal Settings
The portal installs correctly - or at leasat the messages say it is - but I do not have Portal Settings in the Features and Options page.
Suggestions?
Quote from: sorosh1 on May 10, 2008, 12:02:59 PM
Can someone help me i have selected everything in my admin to show but i only shows me the things like you see in the image, i
dont know what to do. I look at the files (manualy) to see if everything is installed and it is all alright :(
Anybody a idea?
cleanRequest();
$context = array();
cleanRequest();
$context = array();
$context['TPortal'] = 'SimplePortal';
if($current_action != 'home') {
}
Quote from: Manu0372 on May 12, 2008, 08:30:11 AM
We used every time the "Latest Picture" :)
When I activated the Gallery block we don't have any problems, most the problems started a day later.
Quote from: [SiNaN] on May 12, 2008, 08:50:37 AMQuote from: Manu0372 on May 12, 2008, 08:30:11 AM
We used every time the "Latest Picture" :)
When I activated the Gallery block we don't have any problems, most the problems started a day later.
Really interesting. If it happens again, can you report it here?
Try the Load.php with the mod. Always back-up your files.
Quote from: jerseyjoe on May 10, 2008, 08:15:53 PM
I wish to thank Manu0372 for his generous pesistence in solving the problem of the Portal Control not being visible.
Despite obscure errors on my installation he stayed on the problem until it was fixed.
Joe
Quote from: Manu0372 on May 12, 2008, 09:29:07 AM
Here are the screenshoots
Try to enter the category as single category
http://i244.photobucket.com/albums/gg4/angeleyes0372/smf/boardindex.jpg
Ends up in the portal
http://i244.photobucket.com/albums/gg4/angeleyes0372/smf/portal.jpg
In a board of a category and go back to the category as single category
http://i244.photobucket.com/albums/gg4/angeleyes0372/smf/category.jpg
Ends up in the category as single category
http://i244.photobucket.com/albums/gg4/angeleyes0372/smf/categoryitself.jpg
I hope it will help you. :-\
Quote from: MTF95 on May 12, 2008, 11:01:06 AM
This has nothing to do whit the topic, but how did you get that look at your browser?
Quote from: [SiNaN] on May 12, 2008, 08:50:37 AM
Really interesting. If it happens again, can you report it here?
QuoteFatal error: Maximum execution time of 30 seconds exceeded in /.../.../.../.../.../Sources/Subs.php on line 273
cleanRequest();
$context = array();
cleanRequest();
$context = array();
$context['TPortal'] = 'SimplePortal';
Quote from: sorosh1 on May 12, 2008, 11:00:29 AM
[SiNaN] You asked me for modsetting.php. But the mod is working great. only a few problems:
- I think that there is a problem with the Show Board News block: because that F**ck everything up ( atleast with me) (it doesnt show the other options like Show Latest Member block:, ect. It only shows then the left side like: Users Online ect.
- And (I) can't selected al the options and save the settings at one, i had to click on every option ( like Show Latest Member block) and save it one by one.
- Top poll shows me this: Poll id entered is not a valid id.
if you want my modsettings for that then i edit it here...?
I hope that you can help me with these problems, further thanks for the mod! :P :D ;)
if(!empty($gallery_picture) || $modSettings['gallerytype'] == 0 || empty($max))
if(!empty($gallery_picture) || $modSettings['gallerytype'] != 0 || empty($max))
Quote[SiNaN] You asked me for modsetting.php. But the mod is working great. only a few problems:
- I think that there is a problem with the Show Board News block: because that F**ck everything up ( atleast with me) (it doesnt show the other options like Show Latest Member block:, ect. It only shows then the left side like: Users Online ect.
- And (I) can't selected al the options and save the settings at one, i had to click on every option ( like Show Latest Member block) and save it one by one.
- Top poll shows me this: Poll id entered is not a valid id.
if you want my modsettings for that then i edit it here...?
I hope that you can help me with these problems, further thanks for the mod!
First of all let's solve the Portal Settings issue. Can you take a back-up of your ModSettings.php file and change it with the one linked below?
http://www.simplemachines.org/community/index.php?action=dlattach;topic=227599.0;attach=54832
Then try changing some settings from portal settings and post the result here.
Quote from: [SiNaN] on May 12, 2008, 03:25:19 AM
asudhakar (http://www.simplemachines.org/community/index.php?topic=227599.msg1534630#msg1534630)
There seems no problem with the site now.
For the arcade block, can you provide me the link for downloading your version of arcade?
Quote from: TW1ST3D on May 13, 2008, 08:15:02 PM
[SiNaN] , First and Foremost.........Great Mod. I haven't had any issues that I could not clear up by myself.
I have one request of you , If you have the time. On my forum I use the treasury Mod for Donations from Forum members and I would very much like to add a block that shows the Donation Block. The mod already has a configuration section that adjusts it for a TP sideblock. Can you figure out how to add this block in Simple Portal ?
Thanks in Advance , and Thank you again for such a Great Mod !!
~TW1ST3D
Quote from: Manu0372 on May 14, 2008, 08:34:44 AM
Hi [SiNaN],
is it possible to make the mod "Member Color Link" http://custom.simplemachines.org/mods/index.php?mod=111 working in the portal too? (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fforum.arseniums.com%2FSmileys%2Fdefault%2F5.gif&hash=63440ba038350d37b797033d421e4311dd3a4112)
Thanks in advance
Manu
Quote from: Matthew Schenker on May 14, 2008, 08:39:36 AM
Good Morning,
I like the idea of this! I've been looking for an alternative to TinyPortal for some time, and maybe this is it. I've been looking through the posts in this discussion, but I'm wondering if people could offer their opinions about what makes SimplePortal better or different from TinyPortal.
Thanks for doing this!
Matt
Quote from: 5teady on May 15, 2008, 02:18:41 PM
It wont work for me, i get this when i try to install it...
6. Execute Modification ./Themes/default/index.template.php Test failed
Quote from: ssdt on May 15, 2008, 04:44:31 PM
Why is mine coming out like this? I selected all the blocks but it doesn't come up.
Quote from: TW1ST3D on May 15, 2008, 05:58:42 PMQuote from: 5teady on May 15, 2008, 02:18:41 PM
It wont work for me, i get this when i try to install it...
6. Execute Modification ./Themes/default/index.template.php Test failed
Just run it through the Package Parser and Manually edit the file that failed. Just make double-Damn Sure that you backup the file that you are Manually Editing
Quote from: asudhakar on May 14, 2008, 03:56:19 AM
Hi SiNaN,
I am using the arcade block downloaded from Ericsworld Download page (http://www.ericsworld.eu/f2/index.php?PHPSESSID=f9c53ae0618c3d5f381b3c3a3d0a1db6&action=tpmod;dl=0) and here is the direct download link to the arcade, Download Here (http://www.ericsworld.eu/f2/index.php?action=tpmod;dl=get76).
Check out and comeup with a Arcade block for my forum's simple portal which shows the High Scores list, Latest Game played, todays game etc.
I to found the Erics world give all the additional block for TP Version,
Hope this will be so useful to work for converting to simple portal block, Check out this page (http://www.ericsworld.eu/f2/index.php?action=tpmod;dl=cat45)
- A.SK
Quote from: [SiNaN] on May 14, 2008, 05:59:50 AMQuote from: TW1ST3D on May 13, 2008, 08:15:02 PM
[SiNaN] , First and Foremost.........Great Mod. I haven't had any issues that I could not clear up by myself.
I have one request of you , If you have the time. On my forum I use the treasury Mod for Donations from Forum members and I would very much like to add a block that shows the Donation Block. The mod already has a configuration section that adjusts it for a TP sideblock. Can you figure out how to add this block in Simple Portal ?
Thanks in Advance , and Thank you again for such a Great Mod !!
~TW1ST3D
Will do it. Please remind me tomorrow via pm.
You too, asudhakar. Please remind again tomorrow.
Quote from: TW1ST3D on May 16, 2008, 11:06:38 PM
Now can I get some direction to the .php file that contains the Blocks? I want to change the heading "Advertise" to Treasury or Donations.
Thanks Again !
Regards,
TW1ST3D
$txt['sp-advertise'] = 'Advertise';
$txt['sp-advertise'] = 'Treasury';
$txt['sp-advertise'] = 'Donations';
Quote from: sorosh1 on May 17, 2008, 03:22:24 PM
[SiNaN] where can i find the TP block codes...? And you told about a update for this mod...when will it be out? ( just asking, no pressure)
Quote from: darkusmaster on May 18, 2008, 11:51:43 AM
I have a super big favor to ask. Can some one manually add this for me? Every time I try to do it though my site it says at the ModSetting it has an issue and will not install properly. If not that is ok thanks.
Quote
http://www.tinyportal.net/index.php?topic=4983.0
SimplePortal 2.0 has to wait until the of my finals. SimplePorta for SMF 2.0 Beta 3.1 ready, just waiting to be packed.
Quote from: ruaduck on May 19, 2008, 04:41:43 PM
it is showing me that Modsettings.php and index.template.php test failed. I'm running 1.1.5 and all that fun jazz. you think it might be all my other mods i have in it that won't allow me to autoinstall this?
Quote from: TW1ST3D on May 19, 2008, 09:05:49 PMQuote from: ruaduck on May 19, 2008, 04:41:43 PM
it is showing me that Modsettings.php and index.template.php test failed. I'm running 1.1.5 and all that fun jazz. you think it might be all my other mods i have in it that won't allow me to autoinstall this?
Just Manually edit those two files in via FTP..................and then run the package installer. Just ignore the failed tests. Be sure to backup those files that you edit !!
Quote from: mymktp1 on May 20, 2008, 06:02:48 AM
Hi, I got it working and installed ... I was just wondering if there was a way to to have board news display the posts from multiple forums instead of just one?
*** I have ssi_boardNews Multiple Boards MOD installed ...
any advice?
Quote from: ruaduck on May 20, 2008, 08:02:50 AM
What are the codes that go into those two files? And where do i put them? I don't know coding very well.
Quote from: ruaduck on May 20, 2008, 03:08:45 PM^
i just looked in my default directory of my themes and i don' thave a modsettings.php file in there... should i?
Quote from: ruaduck on May 20, 2008, 03:49:33 PM
on my admin cp i don't get the protal settings of Admin CP >> Features and Options >> Portal Settings
I have not yet edited my index.template.php but does that effect the admin cp?
Also all the words next to any of the numbers (this is how it would look descriptively. on the left you would have a dot. middle words. then a colon. then number. I don't have the middle words.)
I have included the two themes i use. First is the default one and the other is the Main theme of my website. Starlight Theme by Rebelrose
if ($context['user']['is_guest'])
die('<center><b>Please login to chat.</b></center>');
else
<--And My Chat Code Goes Here-->
if ($context['user']['is_guest'])
echo '<center><b>Please login to chat.</b></center>';
else
<--And My Chat Code Goes Here-->
$show_menu = 1; //Set 0 to not show
$menu_label = 'Site Menu'; //Define the block name
if($show_menu)
{
echo '
<!-- Menu Block -->
<div class="tborder">
<table class="bordercolor" width="100%">
<tr class="catbg">
<td style="padding: 5px;">', $menu_label, '</td>
</tr>
<tr class="windowbg"><td>
<table align="center">
<tr>
<td align="center">';
echo '
<ul>
<li><a href="block name">CKS</a></li>
<li><a href=" . $scripturl . '?action=forum">Forum</a></li>
<li><a href=" . $scripturl . '?action=GuildRules">Guild Rules</a></li>
<li><a href=" . $scripturl . '?action=joincks">Join CKS</a></li>
<li><a href="http://my.uo.com/cgi-bin/guilds.pl?g=88e312adc493d1b2:6">Roster</a></li>
<li><a href=" . $scripturl . '?action=arcade">Arcade</a></li>
<li><a href=" . $scripturl . '?action=gallery">Gallery</a></li>
</ul>';
echo '
</td>
</tr>
</table>
</div>
<br />';
}
if($modSettings['showuser'])
$show_menu = 1; //Set 0 to not show
$menu_label = 'Site Menu'; //Define the block name
if($show_menu == 1)
{
echo '
<!-- Menu Block -->
<div class="tborder">
<table class="bordercolor" width="100%">
<tr class="catbg">
<td style="padding: 5px;">', $menu_label, '</td>
</tr>
<tr class="windowbg"><td>
<table align="center">
<tr>
<td align="center">';
echo '
<ul>
<li><a href="block name">CKS</a></li>
<li><a href=" . $scripturl . '?action=forum">Forum</a></li>
<li><a href=" . $scripturl . '?action=GuildRules">Guild Rules</a></li>
<li><a href=" . $scripturl . '?action=joincks">Join CKS</a></li>
<li><a href="http://my.uo.com/cgi-bin/guilds.pl?g=88e312adc493d1b2:6">Roster</a></li>
<li><a href=" . $scripturl . '?action=arcade">Arcade</a></li>
<li><a href=" . $scripturl . '?action=gallery">Gallery</a></li>
</ul>';
echo '
</td>
</tr>
</table>
</div>
<br />';
}
Quote from: ruaduck on May 22, 2008, 10:32:30 AM
is there a way to add in a modsetting so that we can just say if ($modSettings['cksmenu']) then the code instead of trying to use show_menu?
$show_menu = 1; //Set 0 to not show
$menu_label = 'Site Menu'; //Define the block name
if($show_menu)
{
echo '
<!-- Menu Block -->
<div class="tborder">
<table class="bordercolor" width="100%">
<tr class="catbg">
<td style="padding: 5px;">', $menu_label, '</td>
</tr>
<tr class="windowbg">
<td>';
echo '
<ul>
<li><a href="block name">CKS</a></li>
<li><a href="' . $scripturl . '?action=forum">Forum</a></li>
<li><a href="' . $scripturl . '?action=GuildRules">Guild Rules</a></li>
<li><a href="' . $scripturl . '?action=joincks">Join CKS</a></li>
<li><a href="http://my.uo.com/cgi-bin/guilds.pl?g=88e312adc493d1b2:6">Roster</a></li>
<li><a href="' . $scripturl . '?action=arcade">Arcade</a></li>
<li><a href="' . $scripturl . '?action=gallery">Gallery</a></li>
</ul>';
echo ' </td>
</tr>
</table>
</div>
<br />';
}
Quote from: markvon on May 22, 2008, 11:07:43 AM
hi i am using smf 1.15 and when i try to install simple portal, i get the following error.
6. Execute Modification ./Themes/default/index.template.php Test failed
Quote from: cleanfiles on May 22, 2008, 11:27:10 PM
Wow I will be trying to add this menu block too, I too am running out of room up the top.:)
Quote from: [SiNaN] on May 23, 2008, 05:01:04 AM
Ladies and gentlemen, we are here with the new version, SimplePortal 1.2.
Main focus in the update was to make the mod an ultimate install-friendly mod. Now we will see how was our performance.
For the other changes, see the changelog written in the first message of the topic:
http://www.simplemachines.org/community/index.php?topic=227599.msg1461454#msg1461454
Quote from: [SiNaN] on May 23, 2008, 06:57:56 AM
Back-up your SPortal.php and SPortal.template.php files and change it with the ones in the new package.
This is just for you, not other users.
Let's do not get this lost. :)
Quote from: [SiNaN] on May 23, 2008, 04:13:10 AMQuote from: ruaduck on May 22, 2008, 10:32:30 AM
is there a way to add in a modsetting so that we can just say if ($modSettings['cksmenu']) then the code instead of trying to use show_menu?
That's not because of that. I revised the codes, can you try this -I tried, working-:Code Select$show_menu = 1; //Set 0 to not show
$menu_label = 'Site Menu'; //Define the block name
if($show_menu)
{
echo '
<!-- Menu Block -->
<div class="tborder">
<table class="bordercolor" width="100%">
<tr class="catbg">
<td style="padding: 5px;">', $menu_label, '</td>
</tr>
<tr class="windowbg">
<td>';
echo '
<ul>
<li><a href="block name">CKS</a></li>
<li><a href="' . $scripturl . '?action=forum">Forum</a></li>
<li><a href="' . $scripturl . '?action=GuildRules">Guild Rules</a></li>
<li><a href="' . $scripturl . '?action=joincks">Join CKS</a></li>
<li><a href="http://my.uo.com/cgi-bin/guilds.pl?g=88e312adc493d1b2:6">Roster</a></li>
<li><a href="' . $scripturl . '?action=arcade">Arcade</a></li>
<li><a href="' . $scripturl . '?action=gallery">Gallery</a></li>
</ul>';
echo ' </td>
</tr>
</table>
</div>
<br />';
}Quote from: markvon on May 22, 2008, 11:07:43 AM
hi i am using smf 1.15 and when i try to install simple portal, i get the following error.
6. Execute Modification ./Themes/default/index.template.php Test failed
Please try installing the version SimplePortal 1.2.Quote from: cleanfiles on May 22, 2008, 11:27:10 PM
Wow I will be trying to add this menu block too, I too am running out of room up the top.:)
Of course. ;)
QuoteCan you attach your SPortal.php file here?
In which block the member link color doesn't work?
Quote from: Bancherd on May 24, 2008, 03:45:51 AMQuoteCan you attach your SPortal.php file here?
In which block the member link color doesn't work?
The problem occured in my "Recent Posts" block. I have disabled the display of this block for now...probably caused by my poor techniques in modifying your code. :P Attached please find the SPortal.php file.
Thanks for looking into this problem for me.
Quote from: [SiNaN] on May 24, 2008, 03:51:41 AMQuote from: Bancherd on May 24, 2008, 03:45:51 AMQuoteCan you attach your SPortal.php file here?
In which block the member link color doesn't work?
The problem occured in my "Recent Posts" block. I have disabled the display of this block for now...probably caused by my poor techniques in modifying your code. :P Attached please find the SPortal.php file.
Thanks for looking into this problem for me.
As you disabled that block, do you still get the undefined error?
Quote from: Bancherd on May 24, 2008, 04:50:14 AM
Duh....I found my mistake. It was coding mistake in my part. My apologies.
You mod works perfectly and I am VERY happy with it.
Thank you very much for your excellent support.
Quote from: asudhakar on May 24, 2008, 04:52:10 AM
Yes SiNaN, i have not uninstalled waiting for your reply.
Here i have attached the three files and my one theme index file also.
Previously while installing v1, you helped me converting the modsettings.php file with other mods also, so kindly code for simple portal uninstallation, even care about the other mods also.
Quote from: asudhakar on May 24, 2008, 07:00:28 AM
Hi SiNaN,
I did, uninsalled with error.
Then backuped up my exisiting files and uploaded the files you have sent.
Now the site is working fine.
Could i start the V2 Installation now.
Quote from: asudhakar on May 24, 2008, 07:06:24 AM
Execute Modification ./Themes/default/index.template.php Test failed
Still i will install it
Quote from: asudhakar on May 24, 2008, 07:10:32 AM
did now check out Modsettings is working ,
But arcade is again a error.
Now check out http://forum.itacumens.com and let me know i will uncheck the arcade block
Quote from: [SiNaN] on May 24, 2008, 07:12:59 AM
And delete the SPortal.template.php from dilbermc theme or change it with the one in v1.2.
Quote from: markvon on May 24, 2008, 12:05:14 PM
I have a question... am i able to customise SP blocks? For example, instead of Top Poll, can i change it to be Downloads, and add a download link to it?
Quote from: TW1ST3D on May 24, 2008, 04:49:15 PM
[SiNaN],
Thanks Again for this Great Mod !! It should be in everyones top 10 must have mods !!
I have another Question . How would I change the size of the input boxes on the Portal Settings Page?
I need them much bigger.
these are the ones I'm needing bigger.....
array('text', 'aannouncetext'),
array('large_text', 'aannouncetext'),
Quote from: cleanfiles on May 24, 2008, 08:49:12 PM
Hello again,
One little problem I have try as I might I just cant seem to work it out, when members are viewing the portal only, they don't show up as online in the forum. They are online in the portal but until they go to the forum they don't even show as guests.
This is also the case for my custom pages, ie. if a member is in the portal or on a custom page and don't have any forum pages open they don't show up as online at the bottom of the forum. I hope I have made myself clear enough lol.
Quote from: asudhakar on May 24, 2008, 07:21:24 AMQuote from: [SiNaN] on May 24, 2008, 07:12:59 AM
And delete the SPortal.template.php from dilbermc theme or change it with the one in v1.2.
I did and now i could see the avatar near Posters name.
Really cool, And i have a doubt if you could help me.
Could i uninstall this "Arcade " and install smf common arcade. then all games and scores will be there or deleted.
Then we will cont doing it.
Quote from: samurai-lupin on May 25, 2008, 03:46:14 AM
Hello,
I think your Portal has some great add ons. As I am using Joomla I unfortunately can't use it on my forum. However I wondered what I would need to change in my ssi.php in order to have
ssi_topposters display Avatar Thumbs like on your portal
Also, is it possible to implement your sp_shop function into my ssi.php so I can display the most recnet purchases?
Thank you!
function sp_topPoster($topNumber = 5)
{
global $db_prefix, $scripturl, $memberContext, $txt, $settings, $modSettings, $top_posters, $top_poster_id, $list_no;
if ($topNumber === null)
$topNumber = isset($_GET['limit']) ? (int) $_GET['limit'] : 5;
$list_no=1;
// Find the latest poster.
$request = db_query("
SELECT m.ID_MEMBER, m.realName, m.posts, m.avatar, a.ID_ATTACH, a.attachmentType, a.filename
FROM ({$db_prefix}members as m)
LEFT JOIN {$db_prefix}attachments AS a ON (a.ID_MEMBER = m.ID_MEMBER)
ORDER BY posts DESC
LIMIT $topNumber", __FILE__, __LINE__);
$top_posters = array();
$colorids = array();
while ($row = mysql_fetch_assoc($request)) {
if (stristr($row['avatar'], 'http://') && !empty($modSettings['avatar_check_size']))
{
$sizes = url_image_size($row['avatar']);
// Does your avatar still fit the maximum size?
if ($modSettings['avatar_action_too_large'] == 'option_refuse' && is_array($sizes) && (($sizes[0] > $modSettings['avatar_max_width_external'] && !empty($modSettings['avatar_max_width_external'])) || ($sizes[1] > $modSettings['avatar_max_height_external'] && !empty($modSettings['avatar_max_height_external']))))
{
// Fix it permanently!
$row['avatar'] = '';
updateMemberData($row['ID_MEMBER'], array('avatar' => '\'\''));
}
}
//Collect the ids
$colorids[$row['ID_MEMBER']] = $row['ID_MEMBER'];
$top_posters[] = array(
'list' => $list_no++,
'id' => $row['ID_MEMBER'],
'name' => $row['realName'],
'href' => $scripturl . '?action=profile;u=' . $row['ID_MEMBER'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '">' . $row['realName'] . '</a>',
'posts' => $row['posts'],
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['ID_ATTACH'] > 0 ? '<img src="' . (empty($row['attachmentType']) ? $scripturl . '?action=dlattach;attach=' . $row['ID_ATTACH'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '" alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['ID_ATTACH'] > 0 ? (empty($row['attachmentType']) ? $scripturl . '?action=dlattach;attach=' . $row['ID_ATTACH'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
)
);
}
mysql_free_result($request);
//Add Colors to the link :)
if(!empty($colorids)) {
global $color_profile;
sp_loadColors($colorids);
foreach($top_posters as $k => $p) {
$profile = $color_profile[$p['id']];
if(!empty($profile)) {
$top_posters[$k]['link'] = $profile['link'];
}
}
}
echo '<table>';
foreach ($top_posters as $member)
{
if (!empty($member['avatar']['href']))
echo ' <tr>
<td>' . $member['list'] . '-</td>
<td><img src="' . $member['avatar']['href'] . '" alt="" width="35" /></td><td> </td>
<td>' . $member['link'] . '<br />' . $member['posts'] . $txt['sp-tposterpost'] . '</td>
</tr>';
else
echo ' <tr>
<td>' . $member['list'] . '-</td>
<td> </td><td> </td>
<td>' . $member['link'] . '<br />' . $member['posts'] . $txt['sp-tposterpost'] . '</td>
</tr>';
}
echo '</table>';
}
function sp_shop()
{
global $db_prefix, $context;
// Grab the purchase history
// Start with empty list
$context['shop_purchHis'] = array();
// Get the details of purchases
$request = db_query("
SELECT ownerid, itemid, amtpaid, it.desc, it.image, it.id
FROM {$db_prefix}shop_purchHis, {$db_prefix}shop_items AS it
WHERE itemid = it.id
ORDER BY ownerid DESC
LIMIT 20", __FILE__, __LINE__);
// Loop through all results
while ($row = mysql_fetch_array($request, MYSQL_ASSOC))
// And add them to the list
$context['shop_purchHis'][] = array(
'ownerid' => $row['ownerid'],
'itemid' => $row['itemid'],
'amtpaid' => $row['amtpaid'],
'desc' => $row['desc'],
'image' => $row['image']
);
mysql_free_result($request);
if (!empty($context['shop_purchHis'])) {
echo '
<td class="smalltext" height="100%" valign="top" align="center" style="line-height: 1.3;">
';
foreach ($context['shop_purchHis'] as $row)
echo "<img src='{$boardurl}/Sources/shop/item_images/{$row['image']}'title='{$row['desc']}'> ";
}
else
echo '<td>Nothing is purchased.';
}
// Recent topic list: [board] Subject by Poster Date
function ssi_recentTopicsMain($num_recent = 10, $exclude_boards = null, $output_method = 'echo', $include_boards = null, $limit_days = null, $member_id = null)
{
global $context, $settings, $scripturl, $txt, $db_prefix, $ID_MEMBER;
global $user_info, $modSettings, $func;
if ($exclude_boards === null && !empty($modSettings['recycle_enable']) && $modSettings['recycle_board'] > 0)
$exclude_boards = array($modSettings['recycle_board']);
else
$exclude_boards = empty($exclude_boards) ? array() : $exclude_boards;
$stable_icons = array('xx', 'thumbup', 'thumbdown', 'exclamation', 'question', 'lamp', 'smiley', 'angry', 'cheesy', 'grin', 'sad', 'wink', 'moved', 'recycled', 'wireless');
$icon_sources = array();
foreach ($stable_icons as $icon)
$icon_sources[$icon] = 'images_url';
// Find all the posts in distinct topics. Newer ones will have higher IDs.
$extravalues = '';
if ($output_method == 'extended') {
// get all the extra information about topics, so we can send them to Recent.template.php later
$extravalues = "ms.subject AS firstSubject, ms.posterTime AS firstPosterTime, ms.ID_TOPIC, t.ID_BOARD, b.name AS bname,
t.numReplies, t.numViews, ms.ID_MEMBER AS ID_FIRST_MEMBER, m.ID_MEMBER AS ID_LAST_MEMBER,
m.posterTime AS lastPosterTime, memfp.realName AS firstPosterName,
mem.realName AS lastPosterName, m.subject AS lastSubject,
m.icon AS lastIcon, ms.icon AS firstIcon, t.ID_POLL, t.isSticky, t.locked, m.modifiedTime AS lastModifiedTime,
" . (!$user_info['is_guest'] ? "
IFNULL(lt.ID_MSG, IFNULL(lmr.ID_MSG, -1)) + 1 AS new_from," : '') . " LEFT(m.body, 384) AS lastBody, LEFT(ms.body, 384) AS firstBody,
m.smileysEnabled AS lastSmileys, ms.smileysEnabled AS firstSmileys, t.ID_FIRST_MSG, t.ID_LAST_MSG, ";
}
$request = db_query("
SELECT {$extravalues}
m.posterTime, ms.subject, m.ID_TOPIC, m.ID_MEMBER, m.ID_MSG, b.ID_BOARD, b.name AS bName,
IFNULL(mem.realName, m.posterName) AS posterName, " . ($user_info['is_guest'] ? '1 AS isRead, 0 AS new_from' : '
IFNULL(lt.ID_MSG, IFNULL(lmr.ID_MSG, 0)) >= m.ID_MSG_MODIFIED AS isRead,
IFNULL(lt.ID_MSG, IFNULL(lmr.ID_MSG, -1)) + 1 AS new_from') . ", LEFT(m.body, 384) AS body, m.smileysEnabled, m.icon
FROM ({$db_prefix}messages AS m, {$db_prefix}topics AS t, {$db_prefix}boards AS b, {$db_prefix}messages AS ms)
LEFT JOIN {$db_prefix}members AS memfp ON (memfp.ID_MEMBER = ms.ID_MEMBER)
LEFT JOIN {$db_prefix}members AS mem ON (mem.ID_MEMBER = m.ID_MEMBER)" . (!$user_info['is_guest'] ? "
LEFT JOIN {$db_prefix}log_topics AS lt ON (lt.ID_TOPIC = t.ID_TOPIC AND lt.ID_MEMBER = $ID_MEMBER)
LEFT JOIN {$db_prefix}log_mark_read AS lmr ON (lmr.ID_BOARD = b.ID_BOARD AND lmr.ID_MEMBER = $ID_MEMBER)" : '') . "
WHERE t.ID_LAST_MSG >= " . (isset($limit_days) ? '0' : ($modSettings['maxMsgID'] - 35 * min($num_recent, 5))) . "
AND t.ID_LAST_MSG = m.ID_MSG
AND b.ID_BOARD = t.ID_BOARD" . (empty($exclude_boards) ? '' : "
AND b.ID_BOARD NOT IN (" . implode(', ', $exclude_boards) . ")") . (!empty($include_boards) ? "
AND b.ID_BOARD IN (" . implode(', ', $include_boards) . ")" : '') . (isset($limit_days) ? "
AND m.posterTime > " . (time() - ($limit_days*24*60*60)) : '') . (!empty($member_id) ? "
AND m.ID_MEMBER = {$member_id}" : '') . "
AND $user_info[query_see_board]
AND ms.ID_MSG = t.ID_FIRST_MSG
ORDER BY " . ($output_method == 'extended' && isset($_REQUEST['sort']) ? (
$_REQUEST['sort'] . ($context['ascending'] ? '' : ' DESC')) : ("t.ID_LAST_MSG DESC")) . "
LIMIT " . (($output_method == 'extended' && isset($_REQUEST['start']) && isset($_REQUEST['action']) && $_REQUEST['action'] == 'recenttopics' && is_numeric($_REQUEST['start'])) ? ($_REQUEST['start'].', ') : ('')) . $num_recent, __FILE__, __LINE__);
$posts = array();
while ($row = mysql_fetch_assoc($request))
{
// this puts the extended topic information into $context['topics']. it's copied from Recent.php and can be used by template_unread() in Recent.template.php
if ($output_method == 'extended') {
//set these variables so there will be no undefined indexes
$context['querystring_board_limits'] = '';
$context['sort_by'] = '';
if ($row['ID_POLL'] > 0 && $modSettings['pollMode'] == '0')
continue;
$topic_ids[] = $row['ID_TOPIC'];
// Clip the strings first because censoring is slow :/. (for some reason?)
$row['firstBody'] = strip_tags(strtr(parse_bbc($row['firstBody'], $row['firstSmileys'], $row['ID_FIRST_MSG']), array('<br />' => ' ')));
if ($func['strlen']($row['firstBody']) > 128)
$row['firstBody'] = $func['substr']($row['firstBody'], 0, 128) . '...';
$row['lastBody'] = strip_tags(strtr(parse_bbc($row['lastBody'], $row['lastSmileys'], $row['ID_LAST_MSG']), array('<br />' => ' ')));
if ($func['strlen']($row['lastBody']) > 128)
$row['lastBody'] = $func['substr']($row['lastBody'], 0, 128) . '...';
// Do a bit of censoring...
censorText($row['firstSubject']);
censorText($row['firstBody']);
// But don't do it twice, it can be a slow ordeal!
if ($row['ID_FIRST_MSG'] == $row['ID_LAST_MSG'])
{
$row['lastSubject'] = $row['firstSubject'];
$row['lastBody'] = $row['firstBody'];
}
else
{
censorText($row['lastSubject']);
censorText($row['lastBody']);
}
// Decide how many pages the topic should have.
$topic_length = $row['numReplies'] + 1;
if ($topic_length > $modSettings['defaultMaxMessages'])
{
$tmppages = array();
$tmpa = 1;
for ($tmpb = 0; $tmpb < $topic_length; $tmpb += $modSettings['defaultMaxMessages'])
{
$tmppages[] = '<a href="' . $scripturl . '?topic=' . $row['ID_TOPIC'] . '.' . $tmpb . ';topicseen">' . $tmpa . '</a>';
$tmpa++;
}
// Show links to all the pages?
if (count($tmppages) <= 5)
$pages = '« ' . implode(' ', $tmppages);
// Or skip a few?
else
$pages = '« ' . $tmppages[0] . ' ' . $tmppages[1] . ' ... ' . $tmppages[count($tmppages) - 2] . ' ' . $tmppages[count($tmppages) - 1];
if (!empty($modSettings['enableAllMessages']) && $topic_length < $modSettings['enableAllMessages'])
$pages .= ' <a href="' . $scripturl . '?topic=' . $row['ID_TOPIC'] . '.0;all">' . $txt[190] . '</a>';
$pages .= ' »';
}
else
$pages = '';
// We need to check the topic icons exist... you can never be too sure!
if (empty($modSettings['messageIconChecks_disable']))
{
// First icon first... as you'd expect.
if (!isset($context['icon_sources'][$row['firstIcon']]))
$context['icon_sources'][$row['firstIcon']] = file_exists($settings['theme_dir'] . '/images/post/' . $row['firstIcon'] . '.gif') ? 'images_url' : 'default_images_url';
// Last icon... last... duh.
if (!isset($context['icon_sources'][$row['lastIcon']]))
$context['icon_sources'][$row['lastIcon']] = file_exists($settings['theme_dir'] . '/images/post/' . $row['lastIcon'] . '.gif') ? 'images_url' : 'default_images_url';
}
// And build the array.
$context['topics'][$row['ID_TOPIC']] = array(
'id' => $row['ID_TOPIC'],
'first_post' => array(
'id' => $row['ID_FIRST_MSG'],
'member' => array(
'name' => $row['firstPosterName'],
'id' => $row['ID_FIRST_MEMBER'],
'href' => $scripturl . '?action=profile;u=' . $row['ID_FIRST_MEMBER'],
'link' => !empty($row['ID_FIRST_MEMBER']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_FIRST_MEMBER'] . '" title="' . $txt[92] . ' ' . $row['firstPosterName'] . '">' . $row['firstPosterName'] . '</a>' : $row['firstPosterName']
),
'time' => timeformat($row['firstPosterTime']),
'timestamp' => forum_time(true, $row['firstPosterTime']),
'subject' => $row['firstSubject'],
'preview' => $row['firstBody'],
'icon' => $row['firstIcon'],
'icon_url' => $settings[$context['icon_sources'][$row['firstIcon']]] . '/post/' . $row['firstIcon'] . '.gif',
'href' => $scripturl . '?topic=' . $row['ID_TOPIC'] . '.0;topicseen',
'link' => '<a href="' . $scripturl . '?topic=' . $row['ID_TOPIC'] . '.0;topicseen">' . $row['firstSubject'] . '</a>'
),
'last_post' => array(
'id' => $row['ID_LAST_MSG'],
'member' => array(
'name' => $row['lastPosterName'],
'id' => $row['ID_LAST_MEMBER'],
'href' => $scripturl . '?action=profile;u=' . $row['ID_LAST_MEMBER'],
'link' => !empty($row['ID_LAST_MEMBER']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_LAST_MEMBER'] . '">' . $row['lastPosterName'] . '</a>' : $row['lastPosterName']
),
'time' => timeformat($row['lastPosterTime']),
'timestamp' => forum_time(true, $row['lastPosterTime']),
'subject' => $row['lastSubject'],
'preview' => $row['lastBody'],
'icon' => $row['lastIcon'],
'icon_url' => $settings[$context['icon_sources'][$row['lastIcon']]] . '/post/' . $row['lastIcon'] . '.gif',
'href' => $scripturl . '?topic=' . $row['ID_TOPIC'] . ($row['numReplies'] == 0 ? '.0' : '.msg' . $row['ID_LAST_MSG']) . ';topicseen#msg' . $row['ID_LAST_MSG'],
'link' => '<a href="' . $scripturl . '?topic=' . $row['ID_TOPIC'] . ($row['numReplies'] == 0 ? '.0' : '.msg' . $row['ID_LAST_MSG']) . ';topicseen#msg' . $row['ID_LAST_MSG'] . '">' . $row['lastSubject'] . '</a>'
),
'new_from' => $row['new_from'],
'new_href' => $scripturl . '?topic=' . $row['ID_TOPIC'] . '.msg' . $row['new_from'] . ';topicseen#new',
'href' => $scripturl . '?topic=' . $row['ID_TOPIC'] . ($row['numReplies'] == 0 ? '.0' : '.msg' . $row['new_from']) . ';topicseen' . ($row['numReplies'] == 0 ? '' : 'new'),
'link' => '<a href="' . $scripturl . '?topic=' . $row['ID_TOPIC'] . ($row['numReplies'] == 0 ? '.0' : '.msg' . $row['new_from']) . ';topicseen#msg' . $row['new_from'] . '">' . $row['firstSubject'] . '</a>',
'is_read' => $row['isRead'],
'is_sticky' => !empty($modSettings['enableStickyTopics']) && !empty($row['isSticky']),
'is_locked' => !empty($row['locked']),
'is_poll' => $modSettings['pollMode'] == '1' && $row['ID_POLL'] > 0,
'is_hot' => $row['numReplies'] >= $modSettings['hotTopicPosts'],
'is_very_hot' => $row['numReplies'] >= $modSettings['hotTopicVeryPosts'],
'is_posted_in' => false,
'icon' => $row['firstIcon'],
'icon_url' => $settings[$context['icon_sources'][$row['firstIcon']]] . '/post/' . $row['firstIcon'] . '.gif',
'subject' => $row['firstSubject'],
'pages' => $pages,
'replies' => $row['numReplies'],
'views' => $row['numViews'],
'board' => array(
'id' => $row['ID_BOARD'],
'name' => $row['bname'],
'href' => $scripturl . '?board=' . $row['ID_BOARD'] . '.0',
'link' => '<a href="' . $scripturl . '?board=' . $row['ID_BOARD'] . '.0">' . $row['bname'] . '</a>'
)
);
determineTopicClass($context['topics'][$row['ID_TOPIC']]);
}
else {
$row['body'] = strip_tags(strtr(parse_bbc($row['body'], $row['smileysEnabled'], $row['ID_MSG']), array('<br />' => ' ')));
if ($func['strlen']($row['body']) > 128)
$row['body'] = $func['substr']($row['body'], 0, 128) . '...';
// Censor the subject.
censorText($row['subject']);
censorText($row['body']);
if (empty($modSettings['messageIconChecks_disable']) && !isset($icon_sources[$row['icon']]))
$icon_sources[$row['icon']] = file_exists($settings['theme_dir'] . '/images/post/' . $row['icon'] . '.gif') ? 'images_url' : 'default_images_url';
// Build the array.
$posts[] = array(
'board' => array(
'id' => $row['ID_BOARD'],
'name' => $row['bName'],
'href' => $scripturl . '?board=' . $row['ID_BOARD'] . '.0',
'link' => '<a href="' . $scripturl . '?board=' . $row['ID_BOARD'] . '.0">' . $row['bName'] . '</a>'
),
'topic' => $row['ID_TOPIC'],
'poster' => array(
'id' => $row['ID_MEMBER'],
'name' => $row['posterName'],
'href' => empty($row['ID_MEMBER']) ? '' : $scripturl . '?action=profile;u=' . $row['ID_MEMBER'],
'avatar' => $row['avatar'],
'link' => empty($row['ID_MEMBER']) ? $row['posterName'] : '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '">' . $row['posterName'] . '</a>'
),
'subject' => $row['subject'],
'short_subject' => shorten_subject($row['subject'], 25),
'preview' => $row['body'],
'time' => timeformat($row['posterTime']),
'timestamp' => forum_time(true, $row['posterTime']),
'raw_timestamp' => $row['posterTime'],
'href' => $scripturl . '?topic=' . $row['ID_TOPIC'] . '.msg' . $row['ID_MSG'] . ';topicseen#new',
'link' => '<a href="' . $scripturl . '?topic=' . $row['ID_TOPIC'] . '.msg' . $row['ID_MSG'] . '#new">' . $row['subject'] . '</a>',
'new' => !empty($row['isRead']),
'new_from' => $row['new_from'],
'icon' => '<img src="' . $settings[$icon_sources[$row['icon']]] . '/post/' . $row['icon'] . '.gif" align="middle" alt="' . $row['icon'] . '" border="0" />',
);
}
}
mysql_free_result($request);
// Just return it.
if ($output_method != 'echo' || empty($posts))
return $posts;
echo '
<table border="0" cellpadding=0 cellspacing=0><tr><td colspan=5><table width=100% cellpadding=2 cellspacing=0><tr><td height=21 valign=middle background="http://www.detektorforum.de/templates/rhuk_solarflare_ii/images/subhead_bg.png"><font face=verdana,arial style="color: #666666; font-size: 10px;"><b> NEUESTE FORUM THEMEN</b></td></tr></table></td></tr>';
foreach ($posts as $post)
echo '
<tr>
<td valign=top>', $post['new'] ? '' : '<a href="' . $scripturl . '?topic=' . $post['topic'] . '.msg' . $post['new_from'] . ';topicseen#new"><img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" alt="' . $txt[302] . '" border="0" hspace=2 vspace=2 /></a>', ' </td>
<td align="right" valign="top">
<i>', $post['board']['link'], ' </i>
</td>
<td width=3></td>
<td valign="top">
<a href="', $post['href'], '">', $post['subject'], '</a></b><br>
', $txt[525], ' <i>', $post['poster']['link'], '</i>
</td>
<td valign=top>
</td>
</tr><tr><td colspan=5 height=2></td></tr>';
echo '
</table>';
}
QuoteQuoteAnd delete the SPortal.template.php from dilbermc theme or change it with the one in v1.2.
I did and now i could see the avatar near Posters name.
Really cool, And i have a doubt if you could help me.
Could i uninstall this "Arcade " and install smf common arcade. then all games and scores will be there or deleted.
Then we will cont doing it.
If the link you gave before is the one you use in your site, I'll try to code the block for it.
Quote from: asudhakar on May 25, 2008, 11:55:42 AM
If the link you gave before is the one you use in your site, I'll try to code the block for it.
Quote from: cleanfiles on May 25, 2008, 09:06:20 PM
Ok I looked up "writeLog()" and this sounds like something that might help me, but I don't know where to add it.
I will do some more research on this, but if you could point me in the right direction that would be good too lol.
Quote from: erisa on May 26, 2008, 07:57:21 AM
Hi
I'm using SMF 1.1.5 with Tinyportal.
1. Execute Modification ./index.php Test failed
2. Execute Modification ./Themes/default/languages/Modifications.english-utf8.php Test successful
3. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
4. Execute Modification ./Themes/default/languages/Who.english-utf-8.php Skipping file
5. Execute Modification ./Themes/default/languages/Who.english.php Test successful
6. Execute Modification ./Sources/Load.php Test failed
7. Execute Modification ./Sources/ModSettings.php Test successful
8. Execute Modification ./Themes/default/index.template.php Test successful
9. Extract File ./Sources/SPortal.php
10. Extract File ./Themes/default/SPortal.template.php
11. Extract File ./Themes/default/languages/SPortal.english.php
12. Extract File ./Themes/default/languages/SPortal.english-utf8.php
13. Extract File ./Themes/default/images/arrow.gif
14. Extract File ./Themes/default/images/dot.gif
15. Execute Code database.php
I fear to apply the mod due to the above red markings. Can someone help?
Quote from: tfalbb on May 26, 2008, 08:13:52 AM
Mod seemed to install fine on SMF 1.14, but I don't get the Portal Settings button in the admin panel. Any ideas?
Quote from: [SiNaN] on May 26, 2008, 08:25:53 AMQuote from: tfalbb on May 26, 2008, 08:13:52 AM
Mod seemed to install fine on SMF 1.14, but I don't get the Portal Settings button in the admin panel. Any ideas?
What is your forums language?
Quote from: tfalbb on May 26, 2008, 08:36:44 AM
English
Quote from: [SiNaN] on May 26, 2008, 08:38:26 AMQuote from: tfalbb on May 26, 2008, 08:36:44 AM
English
Wow, interesting. Does this link work for you?
http://yoursiteadress/index.php?action=featuresettings;sa=sportal;
Quote from: pradius on May 26, 2008, 07:12:34 PMUse the package parser on the mod page to find out what edits have to be made to that file. Make them manually and install the mod, then upload the manually edited file to your ftp. Remember to backup all files that will be edited by the package installer.
8. Execute Modification ./Themes/default/index.template.php Test failed
what's wrong?
<?php
// Version: 1.2; SPortal
// Traducao de candidosa2 for forum.joomlamz.com
//User Block
$txt['sp-user'] = 'Membro';
$txt['sp-userpost'] = 'Postes';
$txt['sp-userkarma'] = 'Karma';
$txt['sp-userip'] = 'IP';
$txt['sp-usertmessage'] = 'Mensagens totais ';
$txt['sp-usernmessage'] = 'Mensagens novas ';
$txt['sp-userprofile'] = 'Perfil';
$txt['sp-userlogout'] = 'Sair';
//Users Online Block
$txt['sp-online'] = 'Membro Online';
$txt['sp-onlineguest'] = 'Convidados on-line';
$txt['sp-onlineuser'] = 'Membro on-line';
$txt['sp-onlinehuser'] = 'Membro escondidos ';
$txt['sp-onlinetuser'] = 'Membro Totais ';
$txt['sp-onlineouser'] = 'Membro on-line';
//Board Stats Block
$txt['sp-stat'] = 'Quadro Estatísticas';
$txt['sp-statmember'] = 'Total Membros';
$txt['sp-statpost'] = 'Total Postes';
$txt['sp-stattopic'] = 'Tópicos totais';
$txt['sp-statcategory'] = 'Categorias totais ';
$txt['sp-statboard'] = 'Total Boards';
//Latest Member Block
$txt['sp-lmember'] = 'Último Membro';
//Quick Search Block
$txt['sp-qsearch'] = 'Procura rápida ';
$txt['sp-qsearchsearch'] = 'Procura ';
//Top Poll Block
$txt['sp-poll'] = 'Top Votação';
//Top Posters Block
$txt['sp-tposter'] = 'Top Posters';
$txt['sp-tposterpost'] = ' postes';
//Top Boards Block
$txt['sp-tboard'] = 'Top Quadro';
$txt['sp-tboardname'] = 'Quadro';
$txt['sp-tboardpost'] = 'Postes';
//Top Topics Block
$txt['sp-ttopic'] = 'Top Tópicos';
$txt['sp-ttopicname'] = 'Tópico';
$txt['sp-ttopicpost'] = 'Postes';
//Announcements Block
$txt['sp-announce'] = 'Anúncios';
//Recent Posts Block
$txt['sp-rpost'] = 'Recentes Postes';
//Recent Topics Block
$txt['sp-rtopic'] = 'Recentes Tópicos';
//News Block
$txt['sp-news'] = 'Quadro Notícias';
//SMF Shop Recent Purchase Block
$txt['sp-rpurchase'] = 'Recentemente Comprado';
//SMF Gallery Block
$txt['sp-grpicturerandom'] = 'Últimas imagem';
$txt['sp-grpicturelatest'] = 'Random Picture';
$txt['sp-grpictureviews'] = 'Ver:';
$txt['sp-grpicturesender'] = 'Por:';
$txt['sp-grpictureguest'] = 'Visitante';
//SMF Arcade Block
$txt['sp-arcade'] = 'Arcade';
$txt['sp-arcadeplay'] = 'O Top de jogadores';
$txt['sp-arcadewin'] = 'Número de vitórias :';
$txt['sp-arcadelate'] = 'Últimas pontuação elevada por ';
$txt['sp-arcadewit'] = 'Como ';
$txt['sp-arcadeon'] = 'on ';
//Advertise Block
$txt['sp-advertise'] = 'Anuncie';
?>
<file name="$languagedir/Modifications.portuguese.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[$txt['mods_cat_sportal'] = 'Portal Settings';
$txt['mods_cat_sportal'] = 'Portal Configurações';
$txt['sportalsettings'] = 'Portal Configurações';
$txt['lshowdetails'] = '<b>Membro</b> | Mostrar detalhes do membro?';
$txt['aspecificannounce'] = '<b>Anunciar</b> |Usar diferentes anuncios?';
$txt['nshowavatar'] = '<b>Notícias</b> | Mostrar avatar?';
$txt['tttype'] = '<b>Top Tópico</b> | Mostrar por tipo?';
$txt['tttypeselect'] = 'Selecione';
$txt['aannouncetext'] = '<b>Anunciar</b> | Anunciar texto:<div class="smalltext">Anuncios diferentes devem ser verificados.</div>';
$txt['nnewsboard'] = '<b>Quadro de Notícias</b> | Notícias Quadro:';
$txt['nnewscount'] = '<b>Quadro de Notícias</b> | Notícias a mostrar:';
$txt['nnewslength'] = '<b>Quadro de Notícias</b>| Comprimento conteúdo da notícias:';
$txt['rppostcount'] = '<b>Postes recentes</b> | Número de postes :';
$txt['rttopiccount'] = '<b>Tópicos recentes</b> | Número de tópicos:';
$txt['ppollid'] = '<b>Top Votação</b> | Mostrar Votação :';
$txt['tppcount'] = '<b>Top Postes</b> | Contagem de postes:';
$txt['tbbcount'] = '<b>Top Quadro</b> | Contagem no quadro:';
$txt['tttcount'] = '<b>Top Tópicos</b> | Contagem no tópicos:';
$txt['showleft'] = 'Mostrar blocos do lado esquerdo :';
$txt['showright'] = 'Mostrar blocos do lado direito:';
$txt['leftwidth'] = 'Largura bloco Esquerdo:';
$txt['rightwidth'] = 'Largura Lateral bloco direito:';
$txt['showuser'] = 'Mostrar bloco do membro:';
$txt['showusersonline'] = 'Mostrar bloco do membro online :';
$txt['showboardstats'] = 'Mostrar quadro bloco das Estatísticas:';
$txt['showlatestmember'] = 'Mostrar bloco do último membro:';
$txt['showquicksearch'] = 'Mostrar bloco de Pesquisa rápida :';
$txt['showannouncements'] = 'Mostrar bloco de Anúncios:';
$txt['showboardnews'] = 'Mostrar quadro de Notícias no bloco:';
$txt['showrecentposts'] = 'Mostrar poste recentes:';
$txt['showrecenttopics'] = 'Mostrar tópicos Recentes:';
$txt['showtoppoll'] = 'Mostrar Top Votação:';
$txt['showtopposters'] = 'Mostrar Top Postes:';
$txt['showtopboards'] = 'Mostrar Top Quadro:';
$txt['showtoptopics'] = 'Mostrar Top Tópicos:';
$txt['showrecentpurchase'] = 'Mostrar recentemente comprou:<div class="smalltext">SMF Shop and Stats mod deve ser instalado.</div>';
$txt['showgallery'] = 'Mostrar Galeria:<div class="smalltext">SMF Galeria mod deve ser instalado.</div>';
$txt['showarcade'] = 'Mostrar Arcade bloco:<div class="smalltext">SMF Arcade mod deve ser instalado.</div>';
$txt['advertiselefton'] = 'Mostrar o lado esquerdo anuncio:';
$txt['advertiserighton'] = 'Mostrar o lado direito anuncio:';
$txt['advertiseleft'] = 'Bloco lado esquerdo publicitar conteúdo:';
$txt['advertiseright'] = 'Lateral direita anunciar bloquear conteúdo:';
$txt['advertiselefttype'] = 'Lateral esquerda anunciar codificação tipo:';
$txt['advertiserighttype'] = 'Lateral direita anunciar tipo de codificação:';
$txt['advertisehtml'] = 'Html';
$txt['advertisephp'] = 'Php';
$txt['sp-forum'] = 'Fórum';]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.brazilian.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[$txt['mods_cat_sportal'] = 'Portal Settings';
$txt['mods_cat_sportal'] = 'Portal Configurações';
$txt['sportalsettings'] = 'Portal Configurações';
$txt['lshowdetails'] = '<b>Membro</b> | Mostrar detalhes do membro?';
$txt['aspecificannounce'] = '<b>Anunciar</b> |Usar diferentes anuncios?';
$txt['nshowavatar'] = '<b>Notícias</b> | Mostrar avatar?';
$txt['tttype'] = '<b>Top Tópico</b> | Mostrar por tipo?';
$txt['tttypeselect'] = 'Selecione';
$txt['aannouncetext'] = '<b>Anunciar</b> | Anunciar texto:<div class="smalltext">Anuncios diferentes devem ser verificados.</div>';
$txt['nnewsboard'] = '<b>Quadro de Notícias</b> | Notícias Quadro:';
$txt['nnewscount'] = '<b>Quadro de Notícias</b> | Notícias a mostrar:';
$txt['nnewslength'] = '<b>Quadro de Notícias</b>| Comprimento conteúdo da notícias:';
$txt['rppostcount'] = '<b>Postes recentes</b> | Número de postes :';
$txt['rttopiccount'] = '<b>Tópicos recentes</b> | Número de tópicos:';
$txt['ppollid'] = '<b>Top Votação</b> | Mostrar Votação :';
$txt['tppcount'] = '<b>Top Postes</b> | Contagem de postes:';
$txt['tbbcount'] = '<b>Top Quadro</b> | Contagem no quadro:';
$txt['tttcount'] = '<b>Top Tópicos</b> | Contagem no tópicos:';
$txt['showleft'] = 'Mostrar blocos do lado esquerdo :';
$txt['showright'] = 'Mostrar blocos do lado direito:';
$txt['leftwidth'] = 'Largura bloco Esquerdo:';
$txt['rightwidth'] = 'Largura Lateral bloco direito:';
$txt['showuser'] = 'Mostrar bloco do membro:';
$txt['showusersonline'] = 'Mostrar bloco do membro online :';
$txt['showboardstats'] = 'Mostrar quadro bloco das Estatísticas:';
$txt['showlatestmember'] = 'Mostrar bloco do último membro:';
$txt['showquicksearch'] = 'Mostrar bloco de Pesquisa rápida :';
$txt['showannouncements'] = 'Mostrar bloco de Anúncios:';
$txt['showboardnews'] = 'Mostrar quadro de Notícias no bloco:';
$txt['showrecentposts'] = 'Mostrar poste recentes:';
$txt['showrecenttopics'] = 'Mostrar tópicos Recentes:';
$txt['showtoppoll'] = 'Mostrar Top Votação:';
$txt['showtopposters'] = 'Mostrar Top Postes:';
$txt['showtopboards'] = 'Mostrar Top Quadro:';
$txt['showtoptopics'] = 'Mostrar Top Tópicos:';
$txt['showrecentpurchase'] = 'Mostrar recentemente comprou:<div class="smalltext">SMF Shop and Stats mod deve ser instalado.</div>';
$txt['showgallery'] = 'Mostrar Galeria:<div class="smalltext">SMF Galeria mod deve ser instalado.</div>';
$txt['showarcade'] = 'Mostrar Arcade bloco:<div class="smalltext">SMF Arcade mod deve ser instalado.</div>';
$txt['advertiselefton'] = 'Mostrar o lado esquerdo anuncio:';
$txt['advertiserighton'] = 'Mostrar o lado direito anuncio:';
$txt['advertiseleft'] = 'Bloco lado esquerdo publicitar conteúdo:';
$txt['advertiseright'] = 'Lateral direita anunciar bloquear conteúdo:';
$txt['advertiselefttype'] = 'Lateral esquerda anunciar codificação tipo:';
$txt['advertiserighttype'] = 'Lateral direita anunciar tipo de codificação:';
$txt['advertisehtml'] = 'Html';
$txt['advertisephp'] = 'Php';
$txt['sp-forum'] = 'Fórum';]]></add>
</operation>
</file>
Quote from: tfalbb on May 26, 2008, 09:01:02 AMQuote from: [SiNaN] on May 26, 2008, 08:38:26 AMQuote from: tfalbb on May 26, 2008, 08:36:44 AM
English
Wow, interesting. Does this link work for you?
http://yoursiteadress/index.php?action=featuresettings;sa=sportal;
Yes it gets me to the settings page, but as you can see from the screenshot the Simple Portal tab is blank when I use that link. It doesn't show at all when I use the normal method of accessing the admin panel.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.iplpokerforum.com%2Fimages%2Fspadmin.jpg&hash=d87d91e503a88276a19d8f3f33f10af8cd41a92a)
Quote from: ruaduck on May 27, 2008, 10:45:31 AMQuote from: tfalbb on May 26, 2008, 09:01:02 AMQuote from: [SiNaN] on May 26, 2008, 08:38:26 AMQuote from: tfalbb on May 26, 2008, 08:36:44 AMWow, interesting. Does this link work for you?
English
http://yoursiteadress/index.php?action=featuresettings;sa=sportal;
Yes it gets me to the settings page, but as you can see from the screenshot the Simple Portal tab is blank when I use that link. It doesn't show at all when I use the normal method of accessing the admin panel.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.iplpokerforum.com%2Fimages%2Fspadmin.jpg&hash=d87d91e503a88276a19d8f3f33f10af8cd41a92a)
Are you sure you are not using english-utf8.php for me i had to put the SP stuff into my english-utf8.php before mine would work.
Quote from: Elia on May 27, 2008, 05:56:56 PM
I have installed Simple Portal.. but with the theme i'm using i can't see the "Forum" Button. can anyone help please?
Quote from: tfalbb on May 26, 2008, 09:01:02 AMQuote from: [SiNaN] on May 26, 2008, 08:38:26 AMQuote from: tfalbb on May 26, 2008, 08:36:44 AM
English
Wow, interesting. Does this link work for you?
http://yoursiteadress/index.php?action=featuresettings;sa=sportal;
Yes it gets me to the settings page, but as you can see from the screenshot the Simple Portal tab is blank when I use that link. It doesn't show at all when I use the normal method of accessing the admin panel.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.iplpokerforum.com%2Fimages%2Fspadmin.jpg&hash=d87d91e503a88276a19d8f3f33f10af8cd41a92a)
Quote from: Sic0 on May 26, 2008, 02:27:35 PM
Nice mod and well done.
Is it possible to integrate the forum into the centre of the page, instead of having to link to it?
Quote from: markvon on May 27, 2008, 12:10:30 PM
How can i change the positions of the blocks in the template? I am trying to swap the position of Top Poll with Advertisement.
Quote from: sorosh1 on May 29, 2008, 05:34:56 AM
Can someone help me? I have a little problem with my poral.
When i open my site, then my page is very width. Like you see in the image (atthebeginning.jpg)
But after 10 sec or more i changes back to normal Like you see in the image (normal.jpg)
I have also post my sporal.template.php..( if need other file please repley then)
Does somebody know how to fix this one? I would really appreciated it if somebody help me becasue i cound''t!..
QuoteThe problem is that you have so so many pictures loading in the center-bottom block. That's why it takes so much time to open the whole page.
Quote from: [SiNaN] on May 26, 2008, 08:25:53 AMQuote from: asudhakar on May 25, 2008, 11:55:42 AM
If the link you gave before is the one you use in your site, I'll try to code the block for it.
Yes your are right SiNaN, could you help me Out if possible.
http://www.simplemachines.org/community/index.php?topic=227599.msg1542972#msg1542972
Will look at it, but do not hurry that much.
/******************************************************************************
* Tiny Portal/SMF Arcade - Combined Games and Scrolling Champ Block *
*******************************************************************************
* Version: 1.0 - for SMFARCADE V2 E2.5.0 on *
* File by: Eric Lawson - www.ericsworld.eu *
*******************************************************************************
* *
* To install: *
* Copy the entire contents (crtl+a)(ctrl+c) of this file into a phpblock *
* *
* Edits: *
* Change the txt strings to suit your language. *
* Set $no_topten = <number of top players to show> *
* Set $gamesUrl = <to the same as games url in arcade settings> *
* Set $no_games = <number of game icons to show at top of block> *
* Set $icons_per_row = <number of icons per row> *
* Set $gamesUrl = <to the same as games url in arcade settings> *
* *
* Uploads: *
* Upload a pic called arcade_block.gif *
* (you can use you own gif - just name it arcade_block.gif) to each: *
* Themes/<themename>/images/ *
* *
* This file is distributed in the hope that it is and will be useful, *
* but WITHOUT ANY WARRANTIES; without even any implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
* *
******************************************************************************/
global $gamesUrl;
/*******EDITS*****************************************************************/
$no_games=8;
$icons_per_row = 4;
$no_topten = 10;
$gamesUrl = 'http://www.urlinhere/Games/';
// --LANGUAGE EDITS --
$txtplay = "The Top Players"; // change "The Top Players" to your language
$txtwin = "Number Of Wins :";// change "Number Of Wins :" to your language
$txtlate = "Latest High Score by ";// change "Latest High Score set by" to your language
$txtwit = "with ";// change "with" to your language
$txton = "on ";// change "on" to your language
//******NOTHING TO EDIT BELOW HERE********************************************
global $scripturl,$sourcedir,$boardurl,$db_prefix,$modSettings,$settings;
require_once($sourcedir.'/ArcadeDbConnector.php');
require_once($sourcedir.'/ArcadeStats.php');
echo '<table width="100%">
<tr>
<td align="center">
<br />
<a href="',$scripturl,'?action=arcade"><img src="',$settings['images_url'],'/arcade_block.gif" border= "0" alt="Arcade" /></a>
<br />
</td>
</tr>
</table>';
$random_games_choice = rand(1,4);
$games_choice = 'games'.$random_games_choice;
$curr_position = 0;
$games_choice($no_games,$curr_position,$icons_per_row);
Function games3($no,$curr_position,$icons_per_row)
{
global $scripturl,$db_prefix,$gamesUrl;
//show the latest games
echo '<div align="center">Latest Games<br />
<table cellpadding="2" cellspacing="5">
<tr>';
$sql = "SELECT ID_GAME, game_name, thumbnail, game_directory
FROM {$db_prefix}arcade_games
ORDER BY ID_GAME DESC , game_name ASC LIMIT 0,{$no}";
$result = db_query($sql,__FILE__,__LINE__);
while($game = mysql_fetch_array($result))
{
$game_thumb = !$game['game_directory'] ? $gamesUrl.$game['thumbnail'] : $gamesUrl.$game['game_directory']."/".$game['thumbnail'];
if($curr_position == $icons_per_row)
{
echo '</tr><tr>';
$curr_position=0;
}
echo'
<td>
<a href="'.$scripturl.'?action=arcade;sa=play;game='.$game['ID_GAME'].'">
<img src="'.$game_thumb.'" border="0" alt="'.$game['game_name'].'" width="30" height="30" title="Play '.$game['game_name'].'"/></a>
</td>';
$curr_position++;
}
mysql_free_result($result);
echo '
</tr>
</table></div>';
}
Function games1($no,$curr_position,$icons_per_row)
{
//show most played games (one score version only)
global $scripturl,$db_prefix,$gamesUrl;
echo '<div align="center">Most Played<br />
<table cellpadding="2" cellspacing="5">
<tr>';
$sql = "SELECT ID_GAME, game_name, thumbnail, game_directory
FROM {$db_prefix}arcade_games
ORDER BY number_plays DESC , game_name ASC LIMIT 0,{$no}";
$result = db_query($sql,__FILE__,__LINE__);
while($game = mysql_fetch_array($result))
{
$game_thumb = !$game['game_directory'] ? $gamesUrl.$game['thumbnail'] : $gamesUrl.$game['game_directory']."/".$game['thumbnail'];
if($curr_position == $icons_per_row)
{
echo '</tr><tr>';
$curr_position=0;
}
echo'
<td>
<a href="'.$scripturl.'?action=arcade;sa=play;game='.$game['ID_GAME'].'">
<img src="'.$game_thumb.'" border="0" alt="'.$game['game_name'].'" width="30" height="30" title="Play '.$game['game_name'].'"/></a>
</td>';
$curr_position++;
}
mysql_free_result($result);
echo '
</tr>
</table></div>';
}
Function games4($no,$curr_position,$icons_per_row)
{
//show least played games (one score version only)
global $scripturl,$db_prefix,$gamesUrl;
echo '<div align="center">Least Played<br />
<table cellpadding="2" cellspacing="5">
<tr>';
$sql = "SELECT ID_GAME, game_name, thumbnail, game_directory
FROM {$db_prefix}arcade_games
ORDER BY number_plays ASC , game_name ASC LIMIT 0,{$no}";
$result = db_query($sql,__FILE__,__LINE__);
while($game = mysql_fetch_array($result))
{
$game_thumb = !$game['game_directory'] ? $gamesUrl.$game['thumbnail'] : $gamesUrl.$game['game_directory']."/".$game['thumbnail'];
if($curr_position == $icons_per_row)
{
echo '</tr><tr>';
$curr_position=0;
}
echo'
<td>
<a href="'.$scripturl.'?action=arcade;sa=play;game='.$game['ID_GAME'].'">
<img src="'.$game_thumb.'" border="0" alt="'.$game['game_name'].'" width="30" height="30" title="Play '.$game['game_name'].'"/></a>
</td>';
$curr_position++;
}
mysql_free_result($result);
echo '
</tr>
</table></div>';
}
Function games2($no,$curr_position,$icons_per_row)
{
//show best rated games
global $scripturl,$db_prefix,$gamesUrl;
echo '<div align="center">Top Rated<br />
<table cellpadding="2" cellspacing="5">
<tr>';
$sql = "SELECT ID_GAME, game_name, thumbnail, game_directory
FROM {$db_prefix}arcade_games
ORDER BY game_rating DESC , game_name ASC LIMIT 0,{$no}";
$result = db_query($sql,__FILE__,__LINE__);
while($game = mysql_fetch_array($result))
{
$game_thumb = !$game['game_directory'] ? $gamesUrl.$game['thumbnail'] : $gamesUrl.$game['game_directory']."/".$game['thumbnail'];
if($curr_position == $icons_per_row)
{
echo '</tr><tr>';
$curr_position=0;
}
echo'
<td>
<a href="'.$scripturl.'?action=arcade;sa=play;game='.$game['ID_GAME'].'">
<img src="'.$game_thumb.'" border="0" alt="'.$game['game_name'].'" width="30" height="30" title="Play '.$game['game_name'].'"/></a>
</td>';
$curr_position++;
}
mysql_free_result($result);
echo '
</tr>
</table></div>';
}
//Get newest champ or die
$sql = "SELECT game.id_game, game.game_name, game.thumbnail, game.game_directory,
IFNULL(mem.ID_MEMBER, 0) AS ID_MEMBER, IFNULL(mem.realName,'') AS realName, score.score
FROM {$db_prefix}arcade_scores AS score
LEFT JOIN {$db_prefix}members AS mem ON (mem.ID_MEMBER = score.id_member)
JOIN {$db_prefix}arcade_games AS game ON (game.id_game = score.id_game)
ORDER BY `champion_from` DESC
LIMIT 0,1";
if(!($result = db_query($sql,__FILE__,__LINE__)))
{
die("Could not get the newest champ");
}
$row = mysql_fetch_assoc($result);
mysql_free_result($result);
//newest champ details
$playerid = $row['ID_MEMBER'];
$player = $row['realName'];
$game_id = $row['id_game'];
$game_name = $row['game_name'];
$score = round($row['score'], 3);
$game_pic = !$row['game_directory'] ? $gamesUrl.$row['thumbnail'] : $gamesUrl.$row['game_directory']."/".$row['thumbnail'];
$bp=ArcadeStats_BestPlayers($no_topten);
$score_poss=0; //players position
?>
<script type="text/javascript">
/***********************************************
* Cross browser Marquee II- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/
var delayb4scrollx=2000 //Specify initial delay before marquee starts to scroll on page (2000=2 seconds)
var marqueespeedx=1 //Specify marquee scroll speed (larger is faster 1-10)
var pauseitx=1 //Pause marquee onMousever (0=no. 1=yes)?
////NO NEED TO EDIT BELOW THIS LINE////////////
var copyspeedx=marqueespeedx
var pausespeedx=(pauseitx==0)? copyspeedx: 0
var actualheightx=''
function scrollmarqueex(){
if (parseInt(cross_marqueex.style.top)>(actualheightx*(-1)+8))
cross_marqueex.style.top=parseInt(cross_marqueex.style.top)-copyspeedx+"px"
else
cross_marqueex.style.top=parseInt(marqueeheightx)+8+"px"
}
function initializemarqueex(){
cross_marqueex=document.getElementById("vmarqueex")
cross_marqueex.style.top=0
marqueeheightx=document.getElementById("marqueecontainerx").offsetHeight
actualheightx=cross_marqueex.offsetHeight
if (window.opera || navigator.userAgent.indexOf("Netscape/7")!=-1){ //if Opera or Netscape 7x, add scrollbars to scroll and exit
cross_marqueex.style.height=marqueeheightx+"px"
cross_marqueex.style.overflow="scroll"
return
}
setTimeout('lefttime=setInterval("scrollmarqueex()",30)', delayb4scrollx)
}
if (window.addEventListener)
window.addEventListener("load", initializemarqueex, false)
else if (window.attachEvent)
window.attachEvent("onload", initializemarqueex)
else if (document.getElementById)
window.onload=initializemarqueex
</script>
<?php
echo '<br />
<div id="marqueecontainerx" style="position: relative; width: 95%; height:200px; overflow: hidden; border: 0px; padding: 2px; padding-left: 4px;" onmouseover="copyspeedx=pausespeedx" onmouseout="copyspeedx=marqueespeedx">
<div id="vmarqueex" style="position: absolute; width: 98%;">
<div align="center">
<a href="',$scripturl,'?action=arcade;sa=play;game=',$game_id,'"><img src="',$game_pic,'" border="0" alt="',$game_name,'" width="60" height="60"/></a>
<br />',$txtlate,'<br />
<a href="',$scripturl,'?action=profile;u=',$playerid,'">',$player,'</a>
<br/>',$txtwit,' ',$score,' ',$txton,'<br />',$game_name,'
<br />------------------<br />',$txtplay,'<br /><br />';
foreach ($bp as $out)
{
$score_poss++;
echo '',$score_poss,' - ',$out['link'],'<br />',$txtwin,' ',$out['champions'],'
<br /><br />';
};
echo '</div>
</div>
</div>';
Quote from: [SiNaN] on May 29, 2008, 10:23:38 AM
May I have your SPortal.template.php file?
$gamesUrl = 'http://www.itacumens.com/forum/Games/';
Quote from: [SiNaN] on May 29, 2008, 07:40:18 AMHehe, I wasn't really expecting that you would be challenging them on the feature-side of things just yet, but by offering a drastically lighter solution yet similar looking and with same basic functions, you do make for a good competitor already ;)
Things are not like they seem to be. :P
(...)
Quote from: [SiNaN] on May 03, 2008, 04:41:44 AM
Thanks asudhakar. As I'm not a native speaker, sometimes I'm having difficulty in understanding the issues.
So for the karma issue:
../Themes/default/SPortal.template.php
Find and delete:Code Select<img src="' . $settings['images_url'] . '/dot.gif" alt="Dot" /> ', $txt['sp-userkarma'], ': ',$memberContext[$member_id]['karma']['total'],'<br />
Hımmm, the second one about the board news is going to be a bit hard though. But okay, let's start...
../Sources/SPortal.php
Find and delete:Code Selectif ($board !== null)
$board = (int) $board;
elseif (isset($_GET['board']))
$board = (int) $_GET['board'];
Find and delete:Code Select// Make sure guests can see this board.
$request = db_query("
SELECT ID_BOARD
FROM {$db_prefix}boards
WHERE " . ($board === null ? '' : "ID_BOARD = $board
AND ") . "FIND_IN_SET(-1, memberGroups)
LIMIT 1", __FILE__, __LINE__);
if (mysql_num_rows($request) == 0)
{
die($txt['smf_news_error2']);
}
list ($board) = mysql_fetch_row($request);
mysql_free_result($request);
Find:Code SelectWHERE ID_BOARD = $board
Replace:Code SelectWHERE ID_BOARD IN $board
../Sources/ModSettings.php
Find:Code Selectarray('int', 'nnewsboard'),
Replace:Code Selectarray('text', 'nnewsboard'),
And then set the news board as the format below from the Portal Settings;
(firstboardid, secondboardid, thirdboardid)
Example for your forum;
(23,12)
The_Big_S Today at 08:40:14
Apply Filter: Only show the error messages of this IP address 122.164.111.111 Apply Filter: Only show the error messages of this session 522d903418c234ddc6efe42dfa1fg8435218csb
Apply Filter: Only show the error messages of this URL http://forum.itacumens.com/index.php
Apply Filter: Only show the errors with the same message
8: Undefined index: 1
File: /home/itacumen/public_html/forum/Sources/SPortal.php
Line: 484
Quote from: [SiNaN] on May 30, 2008, 01:31:18 AMWow! ;)
Everything is ready for it to support 2.0 but I'm too lazy about writing packages. Will try to do after my exam that will start after 20 minutes.
Quote from: MTF95 on May 30, 2008, 10:37:09 AM
Hi!
Would u like to install this on my theme for me?
And could u edit and attach the other files that need to be edited, couse my Packagemanager don't work on my server, and I suck installing mannualy.
Quote from: Munze on May 30, 2008, 10:45:08 AM
Not working.I get only blank screen(in board news) when i do that..
Quote from: Eliana Tamerin on May 30, 2008, 12:02:33 PM
I hope your exam went well, SiNaN!
Quote from: slackerpunk on May 30, 2008, 10:03:12 PM
how was the exam? Will bookmark this post and monitor the progress. great mod
Quote from: MTF95 on May 31, 2008, 10:41:15 AM
Freaky O.o
Suuently the Pmanger works :)
Don't need help, anyway!
Hope your exams went well!
Quote from: asudhakar on May 31, 2008, 11:15:25 PM
SiNaN from today morning, i have 100 of errors generated if someone visits the homepage or say current simple portal index.php page.
Check out the error message :Code Select
The_Big_S Today at 08:40:14
Apply Filter: Only show the error messages of this IP address 122.164.111.111 Apply Filter: Only show the error messages of this session 522d903418c234ddc6efe42dfa1fg8435218csb
Apply Filter: Only show the error messages of this URL http://forum.itacumens.com/index.php
Apply Filter: Only show the errors with the same message
8: Undefined index: 1
File: /home/itacumen/public_html/forum/Sources/SPortal.php
Line: 484
Come soon and tell me what could be error siNaN, i have not installed any one mod for last one week.
But today morning i have downloaded smf backup soft @ http://hex.ro/wb/pages/projects/java-smf-backup.php
And that too not connected with forum - showed error while connecting.
Quote from: Brenda on June 01, 2008, 03:06:02 PM
How does this compare to TinyPortal? I've been using TP but if this one is just is good, I'll switch
Quote from: MTF95 on June 02, 2008, 07:07:51 AM
Sinan, I ment that my Package manager didn't work, so I asked you to help me install.
But then the Manager started to work, so I could install it anyway.
Guest Today at 18:19:13
Apply Filter: Only show the error messages of this IP address 121.222.188.344 Apply Filter: Only show the error messages of this session afde5504718754da6d899578f0f8e38f
Apply Filter: Only show the error messages of this URL http://forum.itacumens.com/index.php
Apply Filter: Only show the errors with the same message
8: Undefined index: 718
File: /home/itacumen/public_html/forum/Sources/SPortal.php
Line: 484
Quote from: skelgaard on June 02, 2008, 12:20:37 PM
any change of a complete package as i'm doing theese test on a fresh install, so i can't use the 1.2 version even with updated sportal.php, as test fails....
Quote from: Burningfire87 on June 02, 2008, 04:11:24 PM
after install i get this in my error log per person that visits the main page
Apply Filter: Only show the errors with the same message
8: Undefined index: link
File: /home/content/M/e/t/Metrofx/html/friggy/Sources/SPortal.php
Line: 587
Its also on Lines 486 and 763
attached is my SPortal.php File and Index.php
Quote from: skelgaard on June 03, 2008, 02:16:55 AM
7. Execute Modification ./Sources/ModSettings.php File not found
8. Execute Modification ./Themes/default/index.template.php Test failed
1. Replace ./Themes/default/index.template.php Test successful
2. Replace ./Themes/default/index.template.php Test failed
3. Replace ./Themes/default/index.template.php Test failed
4. Replace ./Themes/default/index.template.php Test failed
Quote from: Rik© on June 03, 2008, 02:33:19 AM
Hi
Is this mod based on the old SimplePortal by Nesianstyles?
- Rik©
Quote from: [SiNaN] on June 03, 2008, 04:32:00 AMsorry, but there was a SimplePortal (v1) by Nesianstyles e few years agoQuote from: Rik© on June 03, 2008, 02:33:19 AM
Hi
Is this mod based on the old SimplePortal by Nesianstyles?
- Rik©
No. This is completely coded by me. And there isn't any other mod named SimplePortal for SMF.
See: http://custom.simplemachines.org/mods/index.php?action=search;basic_search=simpleportal
Quote from: sorosh1 on June 03, 2008, 05:01:38 AM
Sinan where and witch code must I write to make a block collapse able?
Thanks
Quote from: asudhakar on June 03, 2008, 09:09:07 AM
siNaN, i have uploaded the sportal.php file which you have given and found the page is not loading up. Check out the image below.
That to in the front page itself - http://forum.itacumens.com
Quote from: fotografo74 on June 03, 2008, 12:53:41 PM
Thank you SiNaN for this great Mod!
I installed Simpleportal here: http://www.macrofotografia.net/forum-fotografia/index.php
I have a problem with poll right side block....the poll's id is 4 but not displayed :(
Sorry for my english...
Antonio
Quote from: Burningfire87 on June 02, 2008, 04:11:24 PM
after install i get this in my error log per person that visits the main page
Apply Filter: Only show the errors with the same message
8: Undefined index: link
File: /home/content/M/e/t/Metrofx/html/friggy/Sources/SPortal.php
Line: 587
Its also on Lines 486 and 763
attached is my SPortal.php File and Index.php
QuoteI should work on it to give an answer.
Quote from: [SiNaNThank you alot !
You should enter the ID of the topic that contains the poll.
Quote from: Sadrazam on June 06, 2008, 05:37:12 AM
It has a SSI function as I remember. I will look at that.
Quote from: slackerpunk on June 05, 2008, 07:02:39 AMThe mod-package only places a forum link in the default theme.
and also for some reason I am missing the forum link
Quote from: Rik© on June 06, 2008, 06:37:13 AMQuote from: slackerpunk on June 05, 2008, 07:02:39 AMThe mod-package only places a forum link in the default theme.
and also for some reason I am missing the forum link
If you use another theme you will have to do it manually.
If your not familiar with coding/php i can help, if you want.... just let me know which theme you're using.
- Rik©
#widthControl
{
width: 770px;
text-align: left;
margin: 0px auto;
padding: 10px 0px 2px 0px; /* top right bottom left */
}
Quote from: Eliana Tamerin on June 19, 2008, 11:20:00 AMAww ******, that fixed the width. Thank you big time. Any idea how I can now center my logo at the top?
I checked out the site url in your screenshot and checked out the CSS. You'll need to edit this class:Code Select#widthControl
{
width: 770px;
text-align: left;
margin: 0px auto;
padding: 10px 0px 2px 0px; /* top right bottom left */
}
And adjust the width variable. I suggest something in the 900s or making it a percentage-based variable (like 85% or something).
Quote from: Eliana Tamerin on June 19, 2008, 04:45:13 PMThank you, I'll check it out. Do you have any idea why I'm not seeing the board when I use Simple Portal?
ruckstande, better to ask in Graphics and Templates forum. ;)
Quote from: Eliana Tamerin on June 19, 2008, 06:42:40 PMHey thanks, I actually got this prob sorted out in another thread and yeah thats what I ended up doing.
cleanfiles, the only way is by JS. You're better off using a php block and echoing your html.
Quote from: [SiNaN] on June 21, 2008, 02:57:08 PMOkay. Thanks, I'll work on it. And what constitutes "Board News"? There is a post on there that is pretty old and I'm not sure why it is the only one that show up on the list. What changes it?
You can turn off boardnews showing the avatar from the panel. If you want them to stay, then infrom me so that I can provide you a solution.
The other problem is because of that the Poll ID set for the Top Poll block is not valid. There isn'a poll with that idea, actually a topic with that ID doesn't contain a poll. You must enter a topic ID that has a poll. If you do not want to use the poll block, just turn it off from the panel.
Quote from: e85prices on June 19, 2008, 12:57:03 PM
SiNaN very nice Portal ..
I need a change done if you or anyone wants/has time to do it.. $20 (Paypal) to whoever will sort this out..
On Board News I love the way we get a preview of the post ..and want the same "Preview" for' Recent Posts" ..maybe allow preview for upto the last 3 posts on any topic/thread..? Allow as many rcent posts as I wnat just dont allow more thna 3 "previews" for any one topic if that makes sense ..So the Portal isnt filled with just one busy topic ..
I would simply not use " Board News " not really needed for my site .. so that means "Recent Posts" would slide to the Top of the Portal WITH a Preview of the Posts ..In other words Recent post set-up just like Board News
I am using Default SMF ..
Link to site allowed?
Quote from: e85prices on June 22, 2008, 12:35:05 PMQuote from: e85prices on June 19, 2008, 12:57:03 PM
SiNaN very nice Portal ..
I need a change done if you or anyone wants/has time to do it.. $20 (Paypal) to whoever will sort this out..
On Board News I love the way we get a preview of the post ..and want the same "Preview" for' Recent Posts" ..maybe allow preview for upto the last 3 posts on any topic/thread..? Allow as many rcent posts as I wnat just dont allow more thna 3 "previews" for any one topic if that makes sense ..So the Portal isnt filled with just one busy topic ..
I would simply not use " Board News " not really needed for my site .. so that means "Recent Posts" would slide to the Top of the Portal WITH a Preview of the Posts ..In other words Recent post set-up just like Board News
I am using Default SMF ..
Link to site allowed?
Anyone ?
Quote from: Krunch on June 23, 2008, 01:04:07 AM
Is there a way to define a specific theme to the Simple Portal front page, and have it bypass whatever theme people are currently using?
I would really like this function.
Quote from: [SiNaN] on June 23, 2008, 03:41:25 AMQuote from: e85prices on June 22, 2008, 12:35:05 PMQuote from: e85prices on June 19, 2008, 12:57:03 PM
SiNaN very nice Portal ..
I need a change done if you or anyone wants/has time to do it.. $20 (Paypal) to whoever will sort this out..
On Board News I love the way we get a preview of the post ..and want the same "Preview" for' Recent Posts" ..maybe allow preview for upto the last 3 posts on any topic/thread..? Allow as many rcent posts as I wnat just dont allow more thna 3 "previews" for any one topic if that makes sense ..So the Portal isnt filled with just one busy topic ..
I would simply not use " Board News " not really needed for my site .. so that means "Recent Posts" would slide to the Top of the Portal WITH a Preview of the Posts ..In other words Recent post set-up just like Board News
I am using Default SMF ..
Link to site allowed?
Anyone ?
I will inform you by pm after two day.Quote from: Krunch on June 23, 2008, 01:04:07 AM
Is there a way to define a specific theme to the Simple Portal front page, and have it bypass whatever theme people are currently using?
I would really like this function.
Will try this too.
Quote from: [SiNaN] on May 30, 2008, 01:31:18 AMI guess that never happened eh? :)
Everything is ready for it to support 2.0 but I'm too lazy about writing packages. Will try to do after my exam that will start after 20 minutes.
Quote from: e85prices on June 19, 2008, 12:57:03 PM
SiNaN very nice Portal ..
I need a change done if you or anyone wants/has time to do it.. $20 (Paypal) to whoever will sort this out..
On Board News I love the way we get a preview of the post ..and want the same "Preview" for' Recent Posts" ..maybe allow preview for upto the last 3 posts on any topic/thread..? Allow as many rcent posts as I wnat just dont allow more thna 3 "previews" for any one topic if that makes sense ..So the Portal isnt filled with just one busy topic ..
I would simply not use " Board News " not really needed for my site .. so that means "Recent Posts" would slide to the Top of the Portal WITH a Preview of the Posts ..In other words Recent post set-up just like Board News
I am using Default SMF ..
Link to site allowed?
Quote from: asudhakar on June 26, 2008, 01:40:31 PM
Hey SiNaN, Sure i do .
Kindly checkout the post.
I will return only by tomorrow morning.
Take Time, Mod it and post me .
Thanks a Lot in Advance.
Quote from: [SiNaN] on June 28, 2008, 04:02:34 AM
Asudhakar, can you try this file?
Table 'dbasename.smf_shop_purchHis' doesn't exist
File: /smfinstalldir/Sources/SPortal.php
Line: 783
1. Execute Modification ./Themes/default/languages/ModSettings.english.php Test successful
2. Execute Modification ./Themes/default/languages/ModSettings.turkish.php Skipping file
3. Execute Modification ./Themes/default/languages/index.english.php Test successful
4. Execute Modification ./Themes/default/languages/index.turkish.php Skipping file
5. Execute Modification ./index.php Test successful
6. Execute Modification ./Sources/Load.php Test successful
7. Execute Modification ./Sources/ModSettings.php Test failed
8. Execute Modification ./Themes/default/index.template.php Test successful
Quote from: AFreeWebHost on July 07, 2008, 11:03:53 PMDid you say you installed this and added a TON of mods?
Yes, I suppose that is very possible, although I had only installed 2 or 3 mods after installing simpleportal. I might try it again and see if I can get it going right, as it was nice, but it wasn't going to work with the idea I was going for.
// Action and board are both empty... SPortal!
if (empty($board) && empty($topic))
{
require_once($sourcedir . '/SPortal.php');
return 'SPortal';
}
if (empty($board) && empty($topic) && (isset($_GET['cat']) || isset($_GET['page'])))
{
require_once($sourcedir . '/SPortal.php');
return 'SPortal';
}
// Action and board are both empty... BoardIndex!
if (empty($board) && empty($topic))
{
require_once($sourcedir . '/BoardIndex.php');
return 'BoardIndex';
}
Quote from: [SiNaN] on July 15, 2008, 08:57:07 AM
SimplePortal 2.0 is released. Please check the first post (http://www.simplemachines.org/community/index.php?topic=227599.0) of this topic.
Quote from: [SiNaN] on July 15, 2008, 09:42:00 AM
There should be a new section in the Admin Panel, under the Forum section. Are you using utf-8 character set?
Quote from: [SiNaN] on July 15, 2008, 09:55:15 AM
Open the page. Find the PrintScreen or PrntScrn button on your keyboard and push. Then open Paint. Press Ctrl+V buttons at the same to paste the screenshot. Then save it as .png. Then attach the file here.
Quote from: Avery on July 15, 2008, 09:55:58 AM
Hey SiNaN,
I went to my index.php and couldn't find it, but then i went to this index.php~ thing and found it. So i replaced it there, but it is still the same error page?
Is there anything else that could be causing the problem?
@Talisman - the button on your keyboard Prnt Scrn.
Quote from: [SiNaN] on July 15, 2008, 09:55:15 AM
Open the page. Find the PrintScreen or PrntScrn button on your keyboard and push. Then open Paint. Press Ctrl+V buttons at the same to paste the screenshot. Then save it as .png. Then attach the file here.
Quote from: Avery on July 15, 2008, 10:16:15 AM
Not to be a pest or anything, could you help me with my problem? My forum members are now contacting me about the downtime.
Quote from: [SiNaN] on July 15, 2008, 10:20:01 AMQuote from: Avery on July 15, 2008, 10:16:15 AM
Not to be a pest or anything, could you help me with my problem? My forum members are now contacting me about the downtime.
I asked you to attach your index.php file but it get lost. Can you attach?
Burke, I'll do it until tomorrow.
Talismen, attach your Subs.php file please.
Wow, a hard start. Will need some helpers.
Quote from: [SiNaN] on July 15, 2008, 10:27:41 AM
Is that file index.php or index.php~? I need index.php and please attach it here.
Quote from: asudhakar on July 15, 2008, 10:08:46 AMHey SiNaN,
Hey SiNaN, now am free. So i have tried to uninstall the previous version of Simple Portal v1.2.
It says 3 errors -
1. Execute Modification ./index.php Test failed
7. Execute Modification ./Sources/ModSettings.php Test failed
8. Execute Modification ./Themes/default/index.template.php Test failed
Will mod it manually.
If you remember, older i have send you the modsettings page and you have modified it for me.
Any idea to cont further SiNaN.
Quote from: Avery on July 15, 2008, 10:46:03 AM
Alright thanks!
Quote from: asudhakar on July 15, 2008, 11:47:47 AM
Hey SiNaN,
I had a installation issue, hope earlier i have sent you the modsettings file and you have remoded after installing version 1.2
Kindly help me to check the error in this and help me to uninstall the older version safely SiNaN.
Quote from: Manu0372 on July 15, 2008, 12:03:30 PM
Hi SiNaN,
I have tested the Beta Version of 2.0 at our test forum and I'm in love with it!! :D
Thanks a lot for the release of the 2.0 version and all the hard work you had with it,
and thanks to those who had help you.
I'm sure, I can't use the 2.0 version in my forum http://forum.arseniums.com/index.php,
cause of all the changes I made there with your help.
Do you think it's possible for you to help me with the uninstall of the old version and install
of the 2.0 version? :'(
Quote from: jossanaijr on July 15, 2008, 12:29:47 PM
Any idea about SMF 2.0?
Quote from: Soms on July 15, 2008, 02:00:57 PM
I think this is a great improvement on the previous one. Great work Sinan.
Quote from: Brenda on July 15, 2008, 02:57:12 PM
Are there any issues with the new 2.0 release? I still have 1.2 and would like to upgrade.
Ok, can someone please point me in the right direction for a manual uninstall of SP 1.2? I have a couple of error codes.
Quote from: NIBOGO on July 15, 2008, 06:37:58 PM
Really nice work
Thanks:
Sinan , Eliana Tamerin and Alundra
Request:
An option to have a Collapsables Blocks
Quote from: BOS4O on July 15, 2008, 07:21:00 PM
Hey how to center all the words in the all blocks ??
Quote from: Bancherd on July 16, 2008, 02:01:40 AM
Very nice :D The team did a great job!
I presume that this works with SMF2Beta3.1 as well? I could see the instructions for manual installation ???
Quote from: [SiNaN] on July 16, 2008, 09:03:40 AMQuote from: asudhakar on July 15, 2008, 11:47:47 AM
Hey SiNaN,
I had a installation issue, hope earlier i have sent you the modsettings file and you have remoded after installing version 1.2
Kindly help me to check the error in this and help me to uninstall the older version safely SiNaN.
Will fix them and attach.
Quote8: Undefined variable: txt
File: /mnt/web4/21/50/51458650/htdocs/Sources/SPortal.php
Line: 1515
Quotehttp://www.pestboxlive.com/pbl2/index.php
8: Undefined index: 0
File: /home/content/r/u/c/ruckstande/html/pbl2/Sources/SPortal.php
Line: 585
Quote
8: Undefined index: showright
File: /home/xpeng065/public_html/testforum/Themes/default/SPortal.template.php (main sub template - eval?)
Line: 145
<file name="$languagedir/Modifications.portuguese.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// SP General
$txt['sp-forum'] = 'Fórum';
$txt['sp-adminTitle'] = 'SPortal Admin';
$txt['sp-adminCatTitle'] = 'SimplePortal';
$txt['sp-articlesCategory'] = 'Artigo Categoria';
$txt['sp-articlesNoCategory'] = 'Não Publicar';
$txt['sp-make_article'] = 'Faça artigo';
$txt['error_sp_no_message_id'] = 'Inválido mensagem ID.';
$txt['error_sp_article_exists'] = 'Artigo já existe.';
$txt['error_sp_cannot_add_article'] = 'Você não tem permissão para adicionar artigo.';
$txt['error_sp_label_empty'] = 'Selo deixada esta vazio.';
$txt['error_sp_name_empty'] = 'O nome deixado esta vazio.';
// SP Permissions
$txt['permissiongroup_sp'] = 'SimplePortal';
$txt['permissionname_sp_moderate'] = 'Moderate portal';
$txt['permissionhelp_sp_moderate'] = 'Esta autorização permite que membros acessem o painel SimplePortal Admin.';
$txt['permissionname_sp_add_article'] = 'Posso acrescentar artigo';
$txt['permissionhelp_sp_add_article'] = 'Esta autorização permite aos membros adicionar artigos.';
$txt['permissionname_sp_auto_article_approval'] = 'Auto artigo aprovação';
$txt['permissionhelp_sp_auto_article_approval'] = 'Esta autorização permite aos membros adicionar artigos sem aprovação.';
// SP Blocks
$txt['sp-userpost'] = 'Postes';
$txt['sp-userkarma'] = 'Karma';
$txt['sp-usertmessage'] = 'Total de Mensagens';
$txt['sp-usernmessage'] = 'Novas mensagens';
$txt['sp-userprofile'] = 'Profile';
$txt['sp-userlogout'] = 'Sair';
$txt['sp-onlineguest'] = 'Visitantes On-Line';
$txt['sp-onlineuser'] = 'Membros On-Line';
$txt['sp-onlinehuser'] = 'membros Oculto';
$txt['sp-onlinetuser'] = 'Total Membros';
$txt['sp-onlineouser'] = 'Online Membros';
$txt['sp-statmember'] = 'Total Membros';
$txt['sp-statpost'] = 'Total Postes';
$txt['sp-stattopic'] = 'Total Tópico';
$txt['sp-statcategory'] = 'Total Categorias';
$txt['sp-statboard'] = 'Total quadros';
$txt['sp-qsearchsearch'] = 'Pesquisa';
$txt['sp-tposterpost'] = ' poste';
$txt['sp-tboardname'] = 'Quadro';
$txt['sp-tboardpost'] = 'Poste';
$txt['sp-ttopicname'] = 'Tópico';
$txt['sp-ttopicpost'] = 'Poste';
$txt['sp-grpictureviews'] = 'Ver:';
$txt['sp-grpicturesender'] = 'Por:';
$txt['sp-grpictureguest'] = 'Visitante';
$txt['sp-arcadeplay'] = 'O Top de jogadores';
$txt['sp-arcadewin'] = 'Número de vitórias :';
$txt['sp-arcadelate'] = 'Últimas pontuação elevada em ';
$txt['sp-arcadewit'] = 'com ';
$txt['sp-arcadeon'] = 'on ';]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.brazilian.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// SP General
$txt['sp-forum'] = 'Fórum';
$txt['sp-adminTitle'] = 'SPortal Admin';
$txt['sp-adminCatTitle'] = 'SimplePortal';
$txt['sp-articlesCategory'] = 'Artigo Categoria';
$txt['sp-articlesNoCategory'] = 'Não Publicar';
$txt['sp-make_article'] = 'Faça artigo';
$txt['error_sp_no_message_id'] = 'Inválido mensagem ID.';
$txt['error_sp_article_exists'] = 'Artigo já existe.';
$txt['error_sp_cannot_add_article'] = 'Você não tem permissão para adicionar artigo.';
$txt['error_sp_label_empty'] = 'Selo deixada esta vazio.';
$txt['error_sp_name_empty'] = 'O nome deixado esta vazio.';
// SP Permissions
$txt['permissiongroup_sp'] = 'SimplePortal';
$txt['permissionname_sp_moderate'] = 'Moderate portal';
$txt['permissionhelp_sp_moderate'] = 'Esta autorização permite que membros acessem o painel SimplePortal Admin.';
$txt['permissionname_sp_add_article'] = 'Posso acrescentar artigo';
$txt['permissionhelp_sp_add_article'] = 'Esta autorização permite aos membros adicionar artigos.';
$txt['permissionname_sp_auto_article_approval'] = 'Auto artigo aprovação';
$txt['permissionhelp_sp_auto_article_approval'] = 'Esta autorização permite aos membros adicionar artigos sem aprovação.';
// SP Blocks
$txt['sp-userpost'] = 'Postes';
$txt['sp-userkarma'] = 'Karma';
$txt['sp-usertmessage'] = 'Total de Mensagens';
$txt['sp-usernmessage'] = 'Novas mensagens';
$txt['sp-userprofile'] = 'Profile';
$txt['sp-userlogout'] = 'Sair';
$txt['sp-onlineguest'] = 'Visitantes On-Line';
$txt['sp-onlineuser'] = 'Membros On-Line';
$txt['sp-onlinehuser'] = 'membros Oculto';
$txt['sp-onlinetuser'] = 'Total Membros';
$txt['sp-onlineouser'] = 'Online Membros';
$txt['sp-statmember'] = 'Total Membros';
$txt['sp-statpost'] = 'Total Postes';
$txt['sp-stattopic'] = 'Total Tópico';
$txt['sp-statcategory'] = 'Total Categorias';
$txt['sp-statboard'] = 'Total quadros';
$txt['sp-qsearchsearch'] = 'Pesquisa';
$txt['sp-tposterpost'] = ' poste';
$txt['sp-tboardname'] = 'Quadro';
$txt['sp-tboardpost'] = 'Poste';
$txt['sp-ttopicname'] = 'Tópico';
$txt['sp-ttopicpost'] = 'Poste';
$txt['sp-grpictureviews'] = 'Ver:';
$txt['sp-grpicturesender'] = 'Por:';
$txt['sp-grpictureguest'] = 'Visitante';
$txt['sp-arcadeplay'] = 'O Top de jogadores';
$txt['sp-arcadewin'] = 'Número de vitórias :';
$txt['sp-arcadelate'] = 'Últimas pontuação elevada em ';
$txt['sp-arcadewit'] = 'com ';
$txt['sp-arcadeon'] = 'on ';]]></add>
</operation>
</file>
Quote8: Undefined variable: txtI found out it's the arcade block which is causing these errors. The undefined variable are available in the modification.english.php
File: /is/htdocs/.../.../.../Sources/SPortal.php
Line: 1514
Database Error
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 16
File: C:\xampp\htdocs\Sources\SPortal.php
Line: 155
Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.4, while your database is at version 1.1.4 . The above error might possibly go away if you execute the latest version of upgrade.php.
cleanRequest();
$context = array();
$context['TPortal'] = 'SimplePortal';
?>
// SP General
$txt['sp-forum'] = 'Forum';
$txt['sp-adminTitle'] = 'SPortal Admin';
$txt['sp-adminCatTitle'] = 'SimplePortal';
$txt['sp-articlesCategory'] = 'Article Category';
$txt['sp-articlesNoCategory'] = 'Do not Publish';
$txt['sp-make_article'] = 'Make Article';
$txt['error_sp_no_message_id'] = 'Invalid message ID.';
$txt['error_sp_article_exists'] = 'Article already exists.';
$txt['error_sp_cannot_add_article'] = 'You don\'t have permission to add article.';
$txt['error_sp_label_empty'] = 'Label is left empty.';
$txt['error_sp_name_empty'] = 'Name is left empty.';
$txt['error_sp_no_category'] = 'There is no article category created.';
// SP Permissions
$txt['permissiongroup_sp'] = 'SimplePortal';
$txt['permissionname_sp_moderate'] = 'Moderate portal';
$txt['permissionhelp_sp_moderate'] = 'This permission allows users to access the SimplePortal Admin panel.';
$txt['permissionname_sp_add_article'] = 'Can add article';
$txt['permissionhelp_sp_add_article'] = 'This permission allows users to add articles.';
$txt['permissionname_sp_auto_article_approval'] = 'Auto article approval';
$txt['permissionhelp_sp_auto_article_approval'] = 'This permission allows users to add articles without approval.';
// SP Blocks
$txt['sp-userpost'] = 'Posts';
$txt['sp-userkarma'] = 'Karma';
$txt['sp-usertmessage'] = 'Total Messages';
$txt['sp-usernmessage'] = 'New Messages';
$txt['sp-userprofile'] = 'Profile';
$txt['sp-userlogout'] = 'Logout';
$txt['sp-onlineguest'] = 'Online Guests';
$txt['sp-onlineuser'] = 'Online Users';
$txt['sp-onlinehuser'] = 'Hidden Users';
$txt['sp-onlinetuser'] = 'Total Users';
$txt['sp-onlineouser'] = 'Online Users';
$txt['sp-statmember'] = 'Total Members';
$txt['sp-statpost'] = 'Total Posts';
$txt['sp-stattopic'] = 'Total Topics';
$txt['sp-statcategory'] = 'Total Categories';
$txt['sp-statboard'] = 'Total Boards';
$txt['sp-qsearchsearch'] = 'Search';
$txt['sp-tposterpost'] = ' posts';
$txt['sp-tboardname'] = 'Board';
$txt['sp-tboardpost'] = 'Posts';
$txt['sp-ttopicname'] = 'Topic';
$txt['sp-ttopicpost'] = 'Posts';
$txt['sp-grpictureviews'] = 'Views:';
$txt['sp-grpicturesender'] = 'By:';
$txt['sp-grpictureguest'] = 'Guest';
$txt['sp-arcadeplay'] = 'The Top Players';
$txt['sp-arcadewin'] = 'Number Of Wins :';
$txt['sp-arcadelate'] = 'Latest High Score by ';
$txt['sp-arcadewit'] = 'with ';
$txt['sp-arcadeon'] = 'on ';
?>
<table cellpadding="5px" width="100%">
<table cellpadding="5px" width="100%" style="text-align: center;">
global $boardurl, $sourcedir, $modSettings, $scripturl, $db_prefix, $arcade, $best_players;
global $boardurl, $sourcedir, $modSettings, $scripturl, $db_prefix, $arcade, $best_players, $txt;
ORDER BY m.ID_MSG DESC
AND m.ID_MEMBER <> MEMBER_ID
ORDER BY m.ID_MSG DESC
foreach ($online['users'] as $user)
echo '<tr>
<td colspan="4" style="padding-left: 15px;"><img src="' . $settings['images_url'] . '/useron.gif" alt="user" /> ',$user['hidden'] ? '<i>' . $user['link'] . '</i>' : $user['link'],'</td>
</tr>';
echo '</table>';
$temp_array = array();
foreach ($online['users'] as $member)
$temp_array[] = $member['link'];
echo ' <tr>
<td colspan="4">', implode(', ', $temp_array), '</td>
</tr>';
echo '</table>';
Quote
Fatal error: Call to undefined function: changeblockrow() in /home/content/r/u/c/ruckstande/html/pbl2/Sources/SPortalAdmin.php on line 556
Quote from: asudhakar on July 16, 2008, 10:00:33 AM
Take Care of your health SiNaN, I was eagerly Waiting for response SiNaN :)
http://www.simplemachines.org/community/index.php?topic=227599.msg1616662#msg1616662
Quote from: [SiNaN] on July 19, 2008, 10:11:55 AMYes I'll send it to you. I really bastardized it I think.
Seems you like haven't added 'forum' action into the actions array in index.template.php file of your theme. Check it again. If you cannot do it, attach your index.template.php file here.
For you Rss question; see my looonngggg post. :) You can use "Search" function of your browser. :P
Note that it just fixes the recent posts. Do you need for recent topics too?
Thanks for you too, for using my mod. ;)
global $modSettings, $context, $user_info, $scripturl, $sc, $ID_MEMBER, $db_prefix, $GD_Installed, $gallery_picture;
global $modSettings, $context, $user_info, $scripturl, $sc, $ID_MEMBER, $db_prefix, $GD_Installed, $gallery_picture, $txt;
Quote from: [SiNaN] on July 19, 2008, 10:26:03 AM
Just about to forget yours Asudhakar. Attached.
Quote from: [SiNaN] on July 19, 2008, 10:26:03 AM
Manu0372, do not forget the changes you make. It will make it hard for you to upgrade the mod in the future if you. Thanks for using my mod. Glad you liked it.
Quote from: [SiNaN] on July 19, 2008, 11:00:31 AM
Advice: Do not code in hurry. :P
Quote from: [SiNaN] on July 19, 2008, 11:00:31 AMOh you are a doll. Thanks buddy. I'll check into the RSS thing when I get a chance. Right now the members will just have to deal with seeing my name 100 times. Thanks!
Sorry, use this.
Advice: Do not code in hurry. :P
Quote from: [SiNaN] on July 19, 2008, 10:26:03 AM
Just about to forget yours Asudhakar. Attached.
Quote from: [SiNaN] on July 19, 2008, 09:48:23 AM
Talismen:
You problem is about the language files. Download the attached file SPortal.english-utf8.php and copy it to your default theme's language directory. Then make this change in your Modifications.english-utf8.php file:
Find:Code Select?>
Replace:Code Select// SP General
$txt['sp-forum'] = 'Forum';
$txt['sp-adminTitle'] = 'SPortal Admin';
$txt['sp-adminCatTitle'] = 'SimplePortal';
$txt['sp-articlesCategory'] = 'Article Category';
$txt['sp-articlesNoCategory'] = 'Do not Publish';
$txt['sp-make_article'] = 'Make Article';
$txt['error_sp_no_message_id'] = 'Invalid message ID.';
$txt['error_sp_article_exists'] = 'Article already exists.';
$txt['error_sp_cannot_add_article'] = 'You don\'t have permission to add article.';
$txt['error_sp_label_empty'] = 'Label is left empty.';
$txt['error_sp_name_empty'] = 'Name is left empty.';
$txt['error_sp_no_category'] = 'There is no article category created.';
// SP Permissions
$txt['permissiongroup_sp'] = 'SimplePortal';
$txt['permissionname_sp_moderate'] = 'Moderate portal';
$txt['permissionhelp_sp_moderate'] = 'This permission allows users to access the SimplePortal Admin panel.';
$txt['permissionname_sp_add_article'] = 'Can add article';
$txt['permissionhelp_sp_add_article'] = 'This permission allows users to add articles.';
$txt['permissionname_sp_auto_article_approval'] = 'Auto article approval';
$txt['permissionhelp_sp_auto_article_approval'] = 'This permission allows users to add articles without approval.';
// SP Blocks
$txt['sp-userpost'] = 'Posts';
$txt['sp-userkarma'] = 'Karma';
$txt['sp-usertmessage'] = 'Total Messages';
$txt['sp-usernmessage'] = 'New Messages';
$txt['sp-userprofile'] = 'Profile';
$txt['sp-userlogout'] = 'Logout';
$txt['sp-onlineguest'] = 'Online Guests';
$txt['sp-onlineuser'] = 'Online Users';
$txt['sp-onlinehuser'] = 'Hidden Users';
$txt['sp-onlinetuser'] = 'Total Users';
$txt['sp-onlineouser'] = 'Online Users';
$txt['sp-statmember'] = 'Total Members';
$txt['sp-statpost'] = 'Total Posts';
$txt['sp-stattopic'] = 'Total Topics';
$txt['sp-statcategory'] = 'Total Categories';
$txt['sp-statboard'] = 'Total Boards';
$txt['sp-qsearchsearch'] = 'Search';
$txt['sp-tposterpost'] = ' posts';
$txt['sp-tboardname'] = 'Board';
$txt['sp-tboardpost'] = 'Posts';
$txt['sp-ttopicname'] = 'Topic';
$txt['sp-ttopicpost'] = 'Posts';
$txt['sp-grpictureviews'] = 'Views:';
$txt['sp-grpicturesender'] = 'By:';
$txt['sp-grpictureguest'] = 'Guest';
$txt['sp-arcadeplay'] = 'The Top Players';
$txt['sp-arcadewin'] = 'Number Of Wins :';
$txt['sp-arcadelate'] = 'Latest High Score by ';
$txt['sp-arcadewit'] = 'with ';
$txt['sp-arcadeon'] = 'on ';
?>
Will include the utf-8 files in the package in the first update.
Quote from: [SiNaN] on July 19, 2008, 09:48:23 AM
kandalf:
How did you solve that problem? What was causing that?
Can you be more spefic about the article error? How do you add articles? You can provide a screenshot if it's difficult to explain by words. I understand, English is not my native too.
Quote from: Talismen on July 19, 2008, 03:34:43 PMQuote from: [SiNaN] on July 19, 2008, 09:48:23 AM
Talismen:
You problem is about the language files. Download the attached file SPortal.english-utf8.php and copy it to your default theme's language directory. Then make this change in your Modifications.english-utf8.php file:
Find:Code Select?>
Replace:Code Select// SP General
$txt['sp-forum'] = 'Forum';
$txt['sp-adminTitle'] = 'SPortal Admin';
$txt['sp-adminCatTitle'] = 'SimplePortal';
$txt['sp-articlesCategory'] = 'Article Category';
$txt['sp-articlesNoCategory'] = 'Do not Publish';
$txt['sp-make_article'] = 'Make Article';
$txt['error_sp_no_message_id'] = 'Invalid message ID.';
$txt['error_sp_article_exists'] = 'Article already exists.';
$txt['error_sp_cannot_add_article'] = 'You don\'t have permission to add article.';
$txt['error_sp_label_empty'] = 'Label is left empty.';
$txt['error_sp_name_empty'] = 'Name is left empty.';
$txt['error_sp_no_category'] = 'There is no article category created.';
// SP Permissions
$txt['permissiongroup_sp'] = 'SimplePortal';
$txt['permissionname_sp_moderate'] = 'Moderate portal';
$txt['permissionhelp_sp_moderate'] = 'This permission allows users to access the SimplePortal Admin panel.';
$txt['permissionname_sp_add_article'] = 'Can add article';
$txt['permissionhelp_sp_add_article'] = 'This permission allows users to add articles.';
$txt['permissionname_sp_auto_article_approval'] = 'Auto article approval';
$txt['permissionhelp_sp_auto_article_approval'] = 'This permission allows users to add articles without approval.';
// SP Blocks
$txt['sp-userpost'] = 'Posts';
$txt['sp-userkarma'] = 'Karma';
$txt['sp-usertmessage'] = 'Total Messages';
$txt['sp-usernmessage'] = 'New Messages';
$txt['sp-userprofile'] = 'Profile';
$txt['sp-userlogout'] = 'Logout';
$txt['sp-onlineguest'] = 'Online Guests';
$txt['sp-onlineuser'] = 'Online Users';
$txt['sp-onlinehuser'] = 'Hidden Users';
$txt['sp-onlinetuser'] = 'Total Users';
$txt['sp-onlineouser'] = 'Online Users';
$txt['sp-statmember'] = 'Total Members';
$txt['sp-statpost'] = 'Total Posts';
$txt['sp-stattopic'] = 'Total Topics';
$txt['sp-statcategory'] = 'Total Categories';
$txt['sp-statboard'] = 'Total Boards';
$txt['sp-qsearchsearch'] = 'Search';
$txt['sp-tposterpost'] = ' posts';
$txt['sp-tboardname'] = 'Board';
$txt['sp-tboardpost'] = 'Posts';
$txt['sp-ttopicname'] = 'Topic';
$txt['sp-ttopicpost'] = 'Posts';
$txt['sp-grpictureviews'] = 'Views:';
$txt['sp-grpicturesender'] = 'By:';
$txt['sp-grpictureguest'] = 'Guest';
$txt['sp-arcadeplay'] = 'The Top Players';
$txt['sp-arcadewin'] = 'Number Of Wins :';
$txt['sp-arcadelate'] = 'Latest High Score by ';
$txt['sp-arcadewit'] = 'with ';
$txt['sp-arcadeon'] = 'on ';
?>
Will include the utf-8 files in the package in the first update.
Thanks so much Sinan! I'll give this a shot, and let you know.
Take Care! ;)
Quote from: Talismen on July 20, 2008, 11:15:23 AMQuote from: Talismen on July 19, 2008, 03:34:43 PMQuote from: [SiNaN] on July 19, 2008, 09:48:23 AM
Talismen:
You problem is about the language files. Download the attached file SPortal.english-utf8.php and copy it to your default theme's language directory. Then make this change in your Modifications.english-utf8.php file:
Find:Code Select?>
Replace:Code Select// SP General
$txt['sp-forum'] = 'Forum';
$txt['sp-adminTitle'] = 'SPortal Admin';
$txt['sp-adminCatTitle'] = 'SimplePortal';
$txt['sp-articlesCategory'] = 'Article Category';
$txt['sp-articlesNoCategory'] = 'Do not Publish';
$txt['sp-make_article'] = 'Make Article';
$txt['error_sp_no_message_id'] = 'Invalid message ID.';
$txt['error_sp_article_exists'] = 'Article already exists.';
$txt['error_sp_cannot_add_article'] = 'You don\'t have permission to add article.';
$txt['error_sp_label_empty'] = 'Label is left empty.';
$txt['error_sp_name_empty'] = 'Name is left empty.';
$txt['error_sp_no_category'] = 'There is no article category created.';
// SP Permissions
$txt['permissiongroup_sp'] = 'SimplePortal';
$txt['permissionname_sp_moderate'] = 'Moderate portal';
$txt['permissionhelp_sp_moderate'] = 'This permission allows users to access the SimplePortal Admin panel.';
$txt['permissionname_sp_add_article'] = 'Can add article';
$txt['permissionhelp_sp_add_article'] = 'This permission allows users to add articles.';
$txt['permissionname_sp_auto_article_approval'] = 'Auto article approval';
$txt['permissionhelp_sp_auto_article_approval'] = 'This permission allows users to add articles without approval.';
// SP Blocks
$txt['sp-userpost'] = 'Posts';
$txt['sp-userkarma'] = 'Karma';
$txt['sp-usertmessage'] = 'Total Messages';
$txt['sp-usernmessage'] = 'New Messages';
$txt['sp-userprofile'] = 'Profile';
$txt['sp-userlogout'] = 'Logout';
$txt['sp-onlineguest'] = 'Online Guests';
$txt['sp-onlineuser'] = 'Online Users';
$txt['sp-onlinehuser'] = 'Hidden Users';
$txt['sp-onlinetuser'] = 'Total Users';
$txt['sp-onlineouser'] = 'Online Users';
$txt['sp-statmember'] = 'Total Members';
$txt['sp-statpost'] = 'Total Posts';
$txt['sp-stattopic'] = 'Total Topics';
$txt['sp-statcategory'] = 'Total Categories';
$txt['sp-statboard'] = 'Total Boards';
$txt['sp-qsearchsearch'] = 'Search';
$txt['sp-tposterpost'] = ' posts';
$txt['sp-tboardname'] = 'Board';
$txt['sp-tboardpost'] = 'Posts';
$txt['sp-ttopicname'] = 'Topic';
$txt['sp-ttopicpost'] = 'Posts';
$txt['sp-grpictureviews'] = 'Views:';
$txt['sp-grpicturesender'] = 'By:';
$txt['sp-grpictureguest'] = 'Guest';
$txt['sp-arcadeplay'] = 'The Top Players';
$txt['sp-arcadewin'] = 'Number Of Wins :';
$txt['sp-arcadelate'] = 'Latest High Score by ';
$txt['sp-arcadewit'] = 'with ';
$txt['sp-arcadeon'] = 'on ';
?>
Will include the utf-8 files in the package in the first update.
Thanks so much Sinan! I'll give this a shot, and let you know.
Take Care! ;)
Ok...this worked. Woohoo!
Will begin testing on my test site, to see if all functions are working normally.
I'll make sure to refer back to this support thread for the fixes given for other issues, before I ask a fresh question in here.
Thanks again Sinan! ;)
Tal
Quote from: SoulHunt on July 23, 2008, 07:34:59 AM
Isn't there a way to get an extra button on it? Now the portal works but there is noway to get to the forum. Only when you view a topic.
Or am I doing something wrong?
Cheers
Quote from: [SiNaN] on July 23, 2008, 07:37:55 AM
Package only makes edits for the SMF Core Default theme. If you are using a different theme, you should add the button manually from index.template.php file of your theme.
You can see this links for help about that: How do you add custom tabs to the Core (default) theme menu? (http://docs.simplemachines.org/index.php?topic=564).
Quote from: [SiNaN] on July 23, 2008, 04:13:56 AM
mymktp1 and kandalf:
Unfortunately I couldn't reproduce the error you are getting, tried a lot but everything is working as they should. But anyway, I made some changes about that part, which -I hope- solves your problem too. Try updating the mod. If the problem continues, I'd be glad if both of you could give an account having the SP Moderate permission.
ALTER TABLE smf_sp_articles CHANGE ID_MESSAGE ID_MESSAGE INT( 10 ) UNSIGNED DEFAULT 0 NOT NULL
Quote from: [SiNaN] on July 23, 2008, 09:08:53 AM
SoulHunt:
Can you attach your index.template.php file here?
[
Quote from: [SiNaN] on July 23, 2008, 10:02:09 AMWoohoo!
ruckstande:
Tomorrow...
doughty:
Please.
<IfModule mod_security.c>
# Turn off mod_security filtering. SMF is a big boy, it doesn't need its hands held.
SecFilterEngine Off
# The below probably isn't needed, but better safe than sorry.
SecFilterScanPOST Off
</IfModule>
Quote from: [SiNaN] on July 23, 2008, 12:08:26 PM
Okay, happy that its not a bug in SP. :)
Try this for the mod_security issue;
Add this to your .htaccess file:Code Select<IfModule mod_security.c>
# Turn off mod_security filtering. SMF is a big boy, it doesn't need its hands held.
SecFilterEngine Off
# The below probably isn't needed, but better safe than sorry.
SecFilterScanPOST Off
</IfModule>
global $txt, $scripturl, $context, $settings, $sc, $sourcedir
global $txt, $scripturl, $context, $settings, $sc, $sourcedir, $db_prefix
Quote from: ruckstande on July 23, 2008, 01:03:56 PM
Ugh. I just upgraded to 2.0.1 and now I'm getting this when I go to the SPortal Admin.
Table 'PestBoxLive.themes' doesn't exist
File: /home/content/r/u/c/ruckstande/html/pbl2/Sources/SPortalAdmin.php
Line: 144
Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.5, while your database is at version 1.1.2. The above error might possibly go away if you execute the latest version of upgrade.php.
Quote from: [SiNaN] on July 23, 2008, 01:30:15 PM
ruckstande:
Forgot that change in the upgrade. Will add to the update tomorrow.
For now do this:
SPortalAdmin.php
Find:Code Selectglobal $txt, $scripturl, $context, $settings, $sc, $sourcedir
Replace:Code Selectglobal $txt, $scripturl, $context, $settings, $sc, $sourcedir, $db_prefix
Quote from: [SiNaN] on July 23, 2008, 04:13:56 AM
caniol52:
Why not using the Package Manager? If you will install manually just copy it to your SMF root and call from browser.
About the template error you are getting; you probably made a mistake while installing it manually. Use the package parse here (http://sleepycode.com/PackageParser/index.php) as the one in the mod site have some problems with it.
Quote from: [SiNaN] on July 24, 2008, 02:34:52 AM
caniol52:
All the problems are solved?
Quote from: [SiNaN] on July 23, 2008, 09:08:53 AM
kandalf:
You're right, I've missed that. Run this query from PhpMyAdmin and you will have no problems:Code SelectALTER TABLE smf_sp_articles CHANGE ID_MESSAGE ID_MESSAGE INT( 10 ) UNSIGNED DEFAULT 0 NOT NULL
Tomorrow will release an update.
Quote from: [SiNaN] on July 24, 2008, 12:13:56 PM
Hoochie Coochie Man:
Thanks HCM. I hope so. We are growing, have some news. Will announce soon.
Quote from: [SiNaN] on July 24, 2008, 12:00:41 PM
caniol52:
Are you sure about the changes made in the Post.template.php? Check it again. If you cannot solve, attach it here.
Thanks, be sure upgrade the mod too. ;)
Quote from: [SiNaN] on July 24, 2008, 01:25:42 PM
caniol52:
Not yet but, you can use the SSI function.
Quote from: [SiNaN] on July 24, 2008, 12:00:41 PMThanks man, I will work on it some more and stop bugging you. The problem with the Users is that with 1.2 it use to say "Total Users: 187" which was correct. Right now it says "Total Users: 3".
Manu0372:
Update it, because it makes some other changes too. You do not need to take the fix back if you've already done it. Do not be afraid of updating, I always test them.
caniol52:
Are you sure about the changes made in the Post.template.php? Check it again. If you cannot solve, attach it here.
ruckstande:
If you're having problems with RSS Feed Poster Mod, please ask to the author of that mod. If you have the ID of you RSS Feed Poster I can prevent the block to show their posts.
Couldn't understand your users online problem?
kandalf:
Thanks, be sure upgrade the mod too. ;)
Quote from: LHVWB on July 24, 2008, 04:52:57 AM
You have to enable it in the "SPortal Admin" area, check the "Portal is active?" setting.
<file name="$languagedir/Modifications.portuguese-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// SP General
$txt['sp-forum'] = 'Fórum';
$txt['sp-adminTitle'] = 'SPortal Admin';
$txt['sp-adminCatTitle'] = 'SimplePortal';
$txt['sp-articlesCategory'] = 'Artigo Categoria';
$txt['sp-articlesNoCategory'] = 'Não Publicar';
$txt['sp-make_article'] = 'Façar artigo';
$txt['error_sp_no_message_id'] = 'Inválido mensagem ID.';
$txt['error_sp_article_exists'] = 'Artigo já existe.';
$txt['error_sp_cannot_add_article'] = 'Você não tem permissão para adicionar artigo.';
$txt['error_sp_label_empty'] = 'Selo deixada esta vazio.';
$txt['error_sp_name_empty'] = 'O nome deixado esta vazio.';
$txt['error_sp_no_category'] = 'Não existe nenhum artigo categoria criada.';
// SP Permissions
$txt['permissiongroup_sp'] = 'SimplePortal';
$txt['permissionname_sp_moderate'] = 'Moderate portal';
$txt['permissionhelp_sp_moderate'] = 'Esta autorização permite que membros acessem o painel SimplePortal Admin.';
$txt['permissionname_sp_add_article'] = 'Posso acrescentar artigo';
$txt['permissionhelp_sp_add_article'] = 'Esta autorização permite aos membros adicionar artigos.';
$txt['permissionname_sp_auto_article_approval'] = 'Auto artigo aprovação';
$txt['permissionhelp_sp_auto_article_approval'] = 'Esta autorização permite aos membros adicionar artigos sem aprovação.';
// SP Blocks
$txt['sp-userpost'] = 'Postes';
$txt['sp-userkarma'] = 'Karma';
$txt['sp-usertmessage'] = 'Total de Mensagens';
$txt['sp-usernmessage'] = 'Novas mensagens';
$txt['sp-userprofile'] = 'Profile';
$txt['sp-userlogout'] = 'Sair';
$txt['sp-onlineguest'] = 'Visitantes On-Line';
$txt['sp-onlineuser'] = 'Membros On-Line';
$txt['sp-onlinehuser'] = 'membros Oculto';
$txt['sp-onlinetuser'] = 'Total Membros';
$txt['sp-onlineouser'] = 'Online Membros';
$txt['sp-statmember'] = 'Total Membros';
$txt['sp-statpost'] = 'Total Postes';
$txt['sp-stattopic'] = 'Total Tópico';
$txt['sp-statcategory'] = 'Total Categorias';
$txt['sp-statboard'] = 'Total quadros';
$txt['sp-qsearchsearch'] = 'Pesquisa';
$txt['sp-tposterpost'] = ' poste';
$txt['sp-tboardname'] = 'Quadro';
$txt['sp-tboardpost'] = 'Poste';
$txt['sp-ttopicname'] = 'Tópico';
$txt['sp-ttopicpost'] = 'Poste';
$txt['sp-grpictureviews'] = 'Ver:';
$txt['sp-grpicturesender'] = 'Por:';
$txt['sp-grpictureguest'] = 'Visitante';
$txt['sp-arcadeplay'] = 'O Top de jogadores';
$txt['sp-arcadewin'] = 'Número de vitórias :';
$txt['sp-arcadelate'] = 'Últimas pontuação elevada em ';
$txt['sp-arcadewit'] = 'com ';
$txt['sp-arcadeon'] = 'on ';]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.brazilian-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// SP General
$txt['sp-forum'] = 'Fórum';
$txt['sp-adminTitle'] = 'SPortal Admin';
$txt['sp-adminCatTitle'] = 'SimplePortal';
$txt['sp-articlesCategory'] = 'Artigo Categoria';
$txt['sp-articlesNoCategory'] = 'Não Publicar';
$txt['sp-make_article'] = 'Façar artigo';
$txt['error_sp_no_message_id'] = 'Inválido mensagem ID.';
$txt['error_sp_article_exists'] = 'Artigo já existe.';
$txt['error_sp_cannot_add_article'] = 'Você não tem permissão para adicionar artigo.';
$txt['error_sp_label_empty'] = 'Selo deixada esta vazio.';
$txt['error_sp_name_empty'] = 'O nome deixado esta vazio.';
$txt['error_sp_no_category'] = 'Não existe nenhum artigo categoria criada.';
// SP Permissions
$txt['permissiongroup_sp'] = 'SimplePortal';
$txt['permissionname_sp_moderate'] = 'Moderate portal';
$txt['permissionhelp_sp_moderate'] = 'Esta autorização permite que membros acessem o painel SimplePortal Admin.';
$txt['permissionname_sp_add_article'] = 'Posso acrescentar artigo';
$txt['permissionhelp_sp_add_article'] = 'Esta autorização permite aos membros adicionar artigos.';
$txt['permissionname_sp_auto_article_approval'] = 'Auto artigo aprovação';
$txt['permissionhelp_sp_auto_article_approval'] = 'Esta autorização permite aos membros adicionar artigos sem aprovação.';
// SP Blocks
$txt['sp-userpost'] = 'Postes';
$txt['sp-userkarma'] = 'Karma';
$txt['sp-usertmessage'] = 'Total de Mensagens';
$txt['sp-usernmessage'] = 'Novas mensagens';
$txt['sp-userprofile'] = 'Profile';
$txt['sp-userlogout'] = 'Sair';
$txt['sp-onlineguest'] = 'Visitantes On-Line';
$txt['sp-onlineuser'] = 'Membros On-Line';
$txt['sp-onlinehuser'] = 'membros Oculto';
$txt['sp-onlinetuser'] = 'Total Membros';
$txt['sp-onlineouser'] = 'Online Membros';
$txt['sp-statmember'] = 'Total Membros';
$txt['sp-statpost'] = 'Total Postes';
$txt['sp-stattopic'] = 'Total Tópico';
$txt['sp-statcategory'] = 'Total Categorias';
$txt['sp-statboard'] = 'Total quadros';
$txt['sp-qsearchsearch'] = 'Pesquisa';
$txt['sp-tposterpost'] = ' poste';
$txt['sp-tboardname'] = 'Quadro';
$txt['sp-tboardpost'] = 'Poste';
$txt['sp-ttopicname'] = 'Tópico';
$txt['sp-ttopicpost'] = 'Poste';
$txt['sp-grpictureviews'] = 'Ver:';
$txt['sp-grpicturesender'] = 'Por:';
$txt['sp-grpictureguest'] = 'Visitante';
$txt['sp-arcadeplay'] = 'O Top de jogadores';
$txt['sp-arcadewin'] = 'Número de vitórias :';
$txt['sp-arcadelate'] = 'Últimas pontuação elevada em ';
$txt['sp-arcadewit'] = 'com ';
$txt['sp-arcadeon'] = 'on ';]]></add>
</operation>
</file>
<file name="$languagedir/Who.portuguese-utf8.php" error="skip">
<operation>
<search position="end"><![CDATA[$txt['who_index'] = 'Vendo o índice do quadro <a href="' . $scripturl . '">' . $context['forum_name'] . '</a>.';]]></search>
<add><![CDATA[$txt['who_index'] = 'Vendo <a href="' . $scripturl . '">Portal</a>.';
$txt['whoall_forum'] = 'Vendo <a href="' . $scripturl . '?action=forum">Fórum</a>.';]]></add>
</operation>
</file>
<file name="$languagedir/Who.brazilian-utf8.php" error="skip">
<operation>
<search position="replace"><![CDATA[$txt['who_index'] = 'Vendo o índice do quadro <a href="' . $scripturl . '">' . $context['forum_name'] . '</a>.';]]></search>
<add><![CDATA[$txt['who_index'] = 'Vendo <a href="' . $scripturl . '">Portal</a>.';
$txt['whoall_forum'] = 'Vendo <a href="' . $scripturl . '?action=forum">Fórum</a>.';]]></add>
</operation>
</file>
Quote from: erisa on July 24, 2008, 10:56:08 PM
I have switched from TP to SP. A big difference. But TP lags my forum and I just need something simple.
I'm new to SP. Just to find out, SP only opens on homepage and not forum page and the rest right?
// Positions
$txt['sp-positionLeft'] = 'Left';
$txt['sp-positionMiddleTop'] = 'Middle-Top';
$txt['sp-positionMiddleBottom'] = 'Middle-Bottom';
$txt['sp-positionRight'] = 'Right';
QuoteNow that I am looking at it I understand now what total users means. I could have sworn with 1.2 it meant "Total Members" because the number was 187 instead of 2 or 3, etc.
ruckstande:
I've checked your site. There was 1 guest and 1 user. Total user count was 2. Can you post a screenshot when the problem appears?
Quote from: [SiNaN] on July 26, 2008, 07:07:13 AM
NIBOGO:
Okay, no problem. I could check your file if you want.
Quote from: LHVWB on July 26, 2008, 07:07:54 PM
@I AM Legend and tuggaming,
Make sure that you have checked the "Portal is active?" setting in the "SPortal Admin" part of the admin section, also make sure that you have added some blocks and they are active.
Quote from: tuggaming on July 26, 2008, 08:51:45 PMQuote from: LHVWB on July 26, 2008, 07:07:54 PM
@I AM Legend and tuggaming,
Make sure that you have checked the "Portal is active?" setting in the "SPortal Admin" part of the admin section, also make sure that you have added some blocks and they are active.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.hdd.pt%2F%2Fthumbs%2F%2F1105203293.jpg&hash=96c8ba83b0abd14d2b1e73f0f63178ef8a13fbc9) (http://www.hdd.pt/imagens/1105203293.jpg)
The problem is hear :(
Quote from: [SiNaN] on July 27, 2008, 08:14:06 AM
tuggaming:
That's probably a bug related to SMF Shop Mod.
asudhakar:
Thanks Asudhakar.
Quote'findmember' => array('Subs-Auth.php', 'JSMembers'),
Quote'findmember' => array('Subs-Auth.php', 'JSMembers'), 'forum' => array('BoardIndex.php', 'BoardIndex'), 'spadmin' => array('SPortalAdmin.php', 'SPortalAdmin'),
Quote
<?php
// Try to handle it with the upper level index.php. (it should know what to do.)
if (file_exists(dirname(dirname(__FILE__)) . '/index.php'))
include (dirname(dirname(__FILE__)) . '/index.php');
else
exit;
?>
// Begin SMFShop code 'shop' => array('shop/Shop.php', 'Shop'), 'shop_general' => array('shop/ShopAdmin.php', 'ShopGeneral'), 'shop_inventory' => array('shop/ShopAdmin.php', 'ShopInventory'), 'shop_items_add' => array('shop/ShopAdmin.php', 'ShopItemsAdd'), 'shop_items_edit' => array('shop/ShopAdmin.php', 'ShopItemsEdit'), 'shop_restock' => array('shop/ShopAdmin.php', 'ShopRestock'), 'shop_usergroup' => array('shop/ShopAdmin.php', 'ShopUserGroup'), 'shop_cat' => array('shop/ShopAdmin.php', 'ShopCategories'), // End SMFShop code
Quote from: [SiNaN] on July 27, 2008, 07:06:35 AM
NIBOGO:
Not at all NIBOGO, glad that you've chosen SimplePortal. Be sure that it will grow unbelievably.
I AM Legend:
I've answered your question before. Think of this; when you close the forum for guests, can they see your Board Index? No. It's the same. When your site is not open for guests, the portal page will not be shown too.
tuggaming:
As all said, if you are using a different language than English, you need to make language file edits for your language files too. You can translate them or use in English too.
Just make the change which should be don in Modifications.english.php in your language's Modifications language file. And copy SPortal.english.php and name as SPortal.{your_language}.php. You can translate the parts that are viewable by your guests.
We hope to make some work about this language issue soon.
Quote from: [SiNaN] on July 27, 2008, 02:48:38 PM
reece_thompson:
Do you want it to be in a definite width?
avf:
Thanks for using my mod. I'll code a block for you. ;)
Quote from: [SiNaN] on July 28, 2008, 03:23:36 AM
tuggaming:
You've installed the mod. What you need is, just making the template file edits for your custom themes too. Package manager makes the source file and default theme files edits for you.
Quote from: [SiNaN] on July 28, 2008, 08:03:10 AM
I really didn't understand yet what you are trying to do... In this file, some edits are okay, but some are not. Do you have any idea why?
Quote from: [SiNaN] on July 28, 2008, 08:27:34 AM
Santaji:
I can't see the screenshot. What is the language you are using? It should be because of that you are not using English language.
Dowload the package you've installed. Upload it via FTP to the Packages directory. Then [Uninstall].
Quote from: [SiNaN] on July 28, 2008, 08:27:34 AM
tuggaming:
Will reply until tomorrow tuggaming.
Santaji:
I can't see the screenshot. What is the language you are using? It should be because of that you are not using English language.
Dowload the package you've installed. Upload it via FTP to the Packages directory. Then [Uninstall].
Quote from: [SiNaN] on July 28, 2008, 08:27:34 AMJust tried that, didn't work, still says "Unable to find package file!"
Dowload the package you've installed. Upload it via FTP to the Packages directory. Then [Uninstall].
Quote from: ccbtimewiz on July 28, 2008, 11:06:01 AM
Santaji, is your forum set to English or utf8-english?
Do check, go to Admin > Server Settings
Quote from: [SiNaN] on July 29, 2008, 10:37:47 AMYou're very kind :)
Not at all Dark-Wolf. We're here for support.
Quote from: [SiNaN] on July 29, 2008, 10:37:47 AMYes! IMHO is best solution ;)
I use that too. Test both, then you will use the one that suits your needs. ;)
Quote from: [SiNaN] on July 29, 2008, 12:30:07 PMThanks!
Dark-Wolf:
I don't know whether they are compatible or not but it should be. Maybe there could be a problem with the article pagination stuff. I'll check until tomorrow and will inform you.
Quote from: [SiNaN] on July 29, 2008, 12:30:07 PMVery good! :)
Yes, it will be compatible with all of the themes from the Theme Site perfectly. ;)
Quote from: akl on July 29, 2008, 06:16:34 PM
Nope.
Can you fix this problem yourself?
If so I'll pm you the details.. :(
Quote from: ccbtimewiz on July 29, 2008, 06:20:47 PMQuote from: akl on July 29, 2008, 06:16:34 PM
Nope.
Can you fix this problem yourself?
If so I'll pm you the details.. :(
Well alright. PM the URL and details for an admin account.
Quote from: [SiNaN] on July 29, 2008, 09:40:54 AMThanks! :)
No worries. Can you attach your
index.php
Sources/Display.php
Sources/Load.php
Sources/ManagePermissions.php
Sources/Post.php
Sources/Subs.php
Sources/Subs-Post.php
index.template.php
Display.template.php
Post.template.php
I'll remove it manually for you.
Quote from: [SiNaN] on July 30, 2008, 06:57:31 AM
Santaji:
I'm looking at them.
Quote from: [SiNaN] on July 30, 2008, 01:00:38 PM
Does your template include languages directory and Modifications.english.php?
<a href="%url" target="%tar"><img src="%img" alt="*" border="0" /></a>
Unknown column 'mem.radioTitle' in 'field list'
Ficheiro: C:\xampp\htdocs\Sources\Load.php
Linha: 913
Quote from: kandalf on July 30, 2008, 06:12:55 PM
I tried to install this mod "SMF Radio v1.1.1" but this problem came up:Code SelectUnknown column 'mem.radioTitle' in 'field list'
Ficheiro: C:\xampp\htdocs\Sources\Load.php
Linha: 913
How can I fix it?
Quote from: akl on July 30, 2008, 06:05:03 PM
ccbtimewiz
Can you reply to me, I sent you a PM?
Quote from: [SiNaN] on July 30, 2008, 11:24:28 AM
Santaji:
Your files are attached.
Quote from: akl on July 31, 2008, 09:09:39 AM
[SiNaN] or ccbtimewiz
Can either of you add me on MSN, and help me?
[SiNaN] you told me to remove some files, yes? The guy who has the files says he already did do that, still the double mod hasn't been removed. Can you fix it?
My MSN : [email protected]
Quote from: [SiNaN] on July 27, 2008, 02:48:38 PM
reece_thompson:
Do you want it to be in a definite width?
avf:
Thanks for using my mod. I'll code a block for you. ;)
Quote from: [SiNaN] on July 31, 2008, 08:51:13 AM
asudhakar:
Just attach the files needed as all do. See Santaji, I did for him and can do for you too.
// SP General
$txt['sp-forum'] = 'Forum';
$txt['sp-adminTitle'] = 'SPortal Administration';
$txt['sp-adminCatTitle'] = 'SimplePortal';
$txt['sp-articlesCategory'] = 'Artikelkategorie';
$txt['sp-articlesNoCategory'] = 'Nicht veröffentlichen';
$txt['sp-make_article'] = 'Artikel erstellen';
$txt['error_sp_no_message_id'] = 'Ungültige Beitrags-ID.';
$txt['error_sp_article_exists'] = 'Artikel existiert bereits.';
$txt['error_sp_cannot_add_article'] = 'Sie haben nicht die Berechtigung einen Artikel zuerstellen.';
$txt['error_sp_label_empty'] = 'Es wurde kein Titel eingegeben.';
$txt['error_sp_name_empty'] = 'Es wurde kein Namen eingegeben.';
$txt['error_sp_no_category'] = 'Es wurde keine Artikelkategorie erstellt.';
// SP Permissions
$txt['permissiongroup_sp'] = 'SimplePortal';
$txt['permissionname_sp_moderate'] = 'Portal moderieren';
$txt['permissionhelp_sp_moderate'] = 'Diese Berechtigung gibt Mitglieder Zugang zum SimplePortal Adminbereich.';
$txt['permissionname_sp_add_article'] = 'Darf Artikel erstellen';
$txt['permissionhelp_sp_add_article'] = 'Diese Berechtigung erlaubt Mitgliedern Artikel zu erstellen.';
$txt['permissionname_sp_auto_article_approval'] = 'Automatisch Artikel zulassen';
$txt['permissionhelp_sp_auto_article_approval'] = 'Diese Berechtigung erlaubt Mitgliedern Artikel ohne Zustimmung zu erstellen.';
// SP Blocks
$txt['sp-userpost'] = 'Beiträge';
$txt['sp-userkarma'] = 'Karma';
$txt['sp-usertmessage'] = 'Gesamte Nachrichten';
$txt['sp-usernmessage'] = 'Neue Nachrichten';
$txt['sp-userprofile'] = 'Profil';
$txt['sp-userlogout'] = 'Abmelden';
$txt['sp-onlineguest'] = 'Online Gäste';
$txt['sp-onlineuser'] = 'Online Mitglieder';
$txt['sp-onlinehuser'] = 'Versteckte Mitglieder';
$txt['sp-onlinetuser'] = 'Mitglieder insgesamt';
$txt['sp-onlineouser'] = 'Mitglieder online';
$txt['sp-statmember'] = 'Mitglieder insgesamt';
$txt['sp-statpost'] = 'Beiträge';
$txt['sp-stattopic'] = 'Themen';
$txt['sp-statcategory'] = 'Kategorien';
$txt['sp-statboard'] = 'Foren';
$txt['sp-qsearchsearch'] = 'Suche';
$txt['sp-tposterpost'] = ' Beiträge';
$txt['sp-tboardname'] = 'Forum';
$txt['sp-tboardpost'] = 'Beiträge';
$txt['sp-ttopicname'] = 'Thema';
$txt['sp-ttopicpost'] = 'Beiträge';
$txt['sp-grpictureviews'] = 'Angeschaut:';
$txt['sp-grpicturesender'] = 'von:';
$txt['sp-grpictureguest'] = 'Gast';
$txt['sp-arcadeplay'] = 'Die Top-Spieler';
$txt['sp-arcadewin'] = 'Anzahl der Gewinne :';
$txt['sp-arcadelate'] = 'letzter High-Score von ';
$txt['sp-arcadewit'] = 'mit ';
$txt['sp-arcadeon'] = 'in ';
// SP General
$txt['sp-forum'] = 'Forum';
$txt['sp-adminTitle'] = 'SPortal Administration';
$txt['sp-adminCatTitle'] = 'SimplePortal';
$txt['sp-articlesCategory'] = 'Artikelkategorie';
$txt['sp-articlesNoCategory'] = 'Nicht veröffentlichen';
$txt['sp-make_article'] = 'Artikel erstellen';
$txt['error_sp_no_message_id'] = 'Ungültige Beitrags-ID.';
$txt['error_sp_article_exists'] = 'Artikel existiert bereits.';
$txt['error_sp_cannot_add_article'] = 'Sie haben nicht die Berechtigung einen Artikel zuerstellen.';
$txt['error_sp_label_empty'] = 'Es wurde kein Titel eingegeben.';
$txt['error_sp_name_empty'] = 'Es wurde kein Namen eingegeben.';
$txt['error_sp_no_category'] = 'Es wurde keine Artikelkategorie erstellt.';
// SP Permissions
$txt['permissiongroup_sp'] = 'SimplePortal';
$txt['permissionname_sp_moderate'] = 'Portal moderieren';
$txt['permissionhelp_sp_moderate'] = 'Diese Berechtigung gibt Mitglieder Zugang zum SimplePortal Adminbereich.';
$txt['permissionname_sp_add_article'] = 'Darf Artikel erstellen';
$txt['permissionhelp_sp_add_article'] = 'Diese Berechtigung erlaubt Mitgliedern Artikel zu erstellen.';
$txt['permissionname_sp_auto_article_approval'] = 'Automatisch Artikel zulassen';
$txt['permissionhelp_sp_auto_article_approval'] = 'Diese Berechtigung erlaubt Mitgliedern Artikel ohne Zustimmung zu erstellen.';
// SP Blocks
$txt['sp-userpost'] = 'Beiträge';
$txt['sp-userkarma'] = 'Karma';
$txt['sp-usertmessage'] = 'Gesamte Nachrichten';
$txt['sp-usernmessage'] = 'Neue Nachrichten';
$txt['sp-userprofile'] = 'Profil';
$txt['sp-userlogout'] = 'Abmelden';
$txt['sp-onlineguest'] = 'Online Gäste';
$txt['sp-onlineuser'] = 'Online Mitglieder';
$txt['sp-onlinehuser'] = 'Versteckte Mitglieder';
$txt['sp-onlinetuser'] = 'Mitglieder insgesamt';
$txt['sp-onlineouser'] = 'Mitglieder online';
$txt['sp-statmember'] = 'Mitglieder insgesamt';
$txt['sp-statpost'] = 'Beiträge';
$txt['sp-stattopic'] = 'Themen';
$txt['sp-statcategory'] = 'Kategorien';
$txt['sp-statboard'] = 'Foren';
$txt['sp-qsearchsearch'] = 'Suche';
$txt['sp-tposterpost'] = ' Beiträge';
$txt['sp-tboardname'] = 'Forum';
$txt['sp-tboardpost'] = 'Beiträge';
$txt['sp-ttopicname'] = 'Thema';
$txt['sp-ttopicpost'] = 'Beiträge';
$txt['sp-grpictureviews'] = 'Angeschaut:';
$txt['sp-grpicturesender'] = 'von:';
$txt['sp-grpictureguest'] = 'Gast';
$txt['sp-arcadeplay'] = 'Die Top-Spieler';
$txt['sp-arcadewin'] = 'Anzahl der Gewinne :';
$txt['sp-arcadelate'] = 'letzter High-Score von ';
$txt['sp-arcadewit'] = 'mit ';
$txt['sp-arcadeon'] = 'in ';
// Positions
$txt['sp-positionLeft'] = 'Left';
$txt['sp-positionMiddleTop'] = 'Middle-Top';
$txt['sp-positionMiddleBottom'] = 'Middle-Bottom';
$txt['sp-positionRight'] = 'Right';
Quote from: LHVWB on August 01, 2008, 07:52:04 AM
@Manu0372,
I am pretty sure that you haven't actually translated all of the language strings, there are actually more language strings for this mod in the 'Sportal.english.php' file that need to be translated.
But thank you for translating the ones that you have, there are a huge number of them, because this is a huge mod! ;)
if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm')))
$current_action = $context['current_action'];
if ($context['current_action'] == 'search2')
$current_action = 'search';
if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm', 'forum', 'spadmin')))
$current_action = $context['current_action'];
if ($context['current_action'] == 'search2')
$current_action = 'search';
if (isset($_GET['board']) || isset($_GET['topic']))
$current_action = 'forum';
if ($context['current_action']=='spadmin')
$current_action = 'admin';
// Show the [help] button.
echo ($current_action == 'help' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '<td class="maintab_off_' . $first . '"> </td>' , '
<td valign="top" class="maintab_' , $current_action == 'help' ? 'active_back' : 'off_back' , '">
<a href="', $scripturl, '?action=help">' , $txt[119] , '</a>
</td>' , $current_action == 'help' ? '<td class="maintab_active_' . $last . '"> </td>' : '<td class="maintab_off_' . $last . '"> </td>';
echo ($current_action=='forum' || $context['browser']['is_ie4']) ? '<td class="maintab_active_first"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action=='forum' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=forum">'.$txt['sp-forum'].'</a>
</td>' , $current_action=='forum' ? '<td class="maintab_active_last"> </td>' : '';
// Show the [help] button.
echo ($current_action == 'help' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '<td class="maintab_off_' . $first . '"> </td>' , '
<td valign="top" class="maintab_' , $current_action == 'help' ? 'active_back' : 'off_back' , '">
<a href="', $scripturl, '?action=help">' , $txt[119] , '</a>
</td>' , $current_action == 'help' ? '<td class="maintab_active_' . $last . '"> </td>' : '<td class="maintab_off_' . $last . '"> </td>';
// Show the page index... "Pages: [1]".
echo '
if ($context['can_make_article'])
$normal_buttons['article'] = array('text' => 'sp-make_article', 'image' => 'addarticle.gif', 'lang' => true, 'url' => $scripturl . '?sa=addarticle;message=' . $context['topic_first_message'] . ';return=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id']);
// Show the page index... "Pages: [1]".
echo '
Quote./Themes/default/index.template.php
./Themes/default/Display.template.php
./Themes/default/Post.template.php
./Themes/default/languages/Modifications.english.php
./Themes/default/languages/Who.english.php
./Themes/default/languages/Modifications.english-utf8.php
./Themes/default/languages/Who.english-utf8.php
Quote from: LHVWB on August 01, 2008, 07:52:04 AM
@asudhakar,
I have removed all of the changes and attached those files to this post.
Quote from: LHVWB on August 01, 2008, 09:25:25 AM
@asudhakar,
You should be able to do either, although I would recommend uninstalling the mod and then copying the files, just make sure that you back up all of the old files before you do it.
Quote from: LHVWB on August 01, 2008, 09:25:25 AM
@asudhakar,
You should be able to do either, although I would recommend uninstalling the mod and then copying the files, just make sure that you back up all of the old files before you do it.
Quote from: [SiNaN] on August 01, 2008, 11:50:08 AMThank you. I should have read the manual instructions too... it works now. Thank you.
xodeus:
Copy the language strings added into the Modifcations.english.php by mod to your Modifications language file.
Quote from: [SiNaN] on August 01, 2008, 12:57:27 PMdo you have any suggestions on how to do that?
xodeus:
Try adding it using php or html blocks.
Quote from: [SiNaN] on August 01, 2008, 12:57:27 PMI found it... :P Sorry.
For the statistics, we have the Board Stats block.
Quote from: [SiNaN] on August 01, 2008, 01:01:28 PM
xodeus:
Some news site support iframe, and just include that iframe. It depends on what that news site supports.
Quote from: [SiNaN] on August 01, 2008, 01:18:06 PM
Fixed Post.template.php. No, seems like you don't have utf-8 language files. You need them, just if you are using utf-8.
Quote from: [SiNaN] on August 01, 2008, 01:29:46 PM
Just click to the Add Block tab in SPortal Admin. Then select php block and add this codes as the content.
Quote from: [SiNaN] on August 01, 2008, 01:42:20 PM
You can create unlimited number of php, html and bbc blocks. And change their positions from the SPortal Admin.
Quote from: [SiNaN] on August 01, 2008, 02:05:40 PM
Use Board News block then. ;)
Quote from: [SiNaN] on August 01, 2008, 02:05:40 PM
Use Board News block then. ;)
Quote from: [SiNaN] on August 01, 2008, 02:47:39 PM
NIBOGO:
Will make the changes for you. ;)
Quote from: [SiNaN] on August 01, 2008, 03:46:54 PM
I'll give you the edit tomorrow.
$topic['first_post']['icon_url'],
. I am an idiot when it comes to php and have no idea where to do this.Quote from: [SiNaN] on August 02, 2008, 10:43:57 AM
MarioH:
So you say that you cannot turn the mod security off?
Quote from: MarioH on August 02, 2008, 10:50:46 AMQuote from: [SiNaN] on August 02, 2008, 10:43:57 AM
MarioH:
So you say that you cannot turn the mod security off?
no me hes posible desactivarla, devido a que mi servidor no lo permite
I hes not possible turn it off, due to my host does not allow it :'(
Quote from: [SiNaN] on August 02, 2008, 12:00:18 PM
Maybe we would understand you two too?
Quote from: ccbtimewiz on August 02, 2008, 12:01:25 PMQuote from: [SiNaN] on August 02, 2008, 12:00:18 PM
Maybe we would understand you two too?
Sorry mate. ^^;
I basically said that he needs to disable mod_security if he wants the mod to function correctly.
// SP General $txt['sp-forum'] = 'Forum'; $txt['sp-adminTitle'] = 'SPortal Admin'; $txt['sp-adminCatTitle'] = 'SimplePortal'; $txt['sp-articlesCategory'] = 'Article Category'; $txt['sp-articlesNoCategory'] = 'Do not Publish'; $txt['sp-make_article'] = 'Make Article'; $txt['error_sp_no_message_id'] = 'Invalid message ID.'; $txt['error_sp_article_exists'] = 'Article already exists.'; $txt['error_sp_cannot_add_article'] = 'You don\'t have permission to add article.'; $txt['error_sp_label_empty'] = 'Label is left empty.'; $txt['error_sp_name_empty'] = 'Name is left empty.'; $txt['error_sp_no_category'] = 'There is no article category created.'; // SP Permissions $txt['permissiongroup_sp'] = 'SimplePortal'; $txt['permissionname_sp_moderate'] = 'Moderate portal'; $txt['permissionhelp_sp_moderate'] = 'This permission allows users to access the SimplePortal Admin panel.'; $txt['permissionname_sp_add_article'] = 'Can add article'; $txt['permissionhelp_sp_add_article'] = 'This permission allows users to add articles.'; $txt['permissionname_sp_auto_article_approval'] = 'Auto article approval'; $txt['permissionhelp_sp_auto_article_approval'] = 'This permission allows users to add articles without approval.'; // SP Blocks $txt['sp-userpost'] = 'Posts'; $txt['sp-userkarma'] = 'Karma'; $txt['sp-usertmessage'] = 'Total Messages'; $txt['sp-usernmessage'] = 'New Messages'; $txt['sp-userprofile'] = 'Profile'; $txt['sp-userlogout'] = 'Logout'; $txt['sp-onlineguest'] = 'Online Guests'; $txt['sp-onlineuser'] = 'Online Users'; $txt['sp-onlinehuser'] = 'Hidden Users'; $txt['sp-onlinetuser'] = 'Total Users'; $txt['sp-onlineouser'] = 'Online Users'; $txt['sp-statmember'] = 'Total Members'; $txt['sp-statpost'] = 'Total Posts'; $txt['sp-stattopic'] = 'Total Topics'; $txt['sp-statcategory'] = 'Total Categories'; $txt['sp-statboard'] = 'Total Boards'; $txt['sp-qsearchsearch'] = 'Search'; $txt['sp-tposterpost'] = ' posts'; $txt['sp-tboardname'] = 'Board'; $txt['sp-tboardpost'] = 'Posts'; $txt['sp-ttopicname'] = 'Topic'; $txt['sp-ttopicpost'] = 'Posts'; $txt['sp-grpictureviews'] = 'Views:'; $txt['sp-grpicturesender'] = 'By:'; $txt['sp-grpictureguest'] = 'Guest'; $txt['sp-arcadeplay'] = 'The Top Players'; $txt['sp-arcadewin'] = 'Number Of Wins :'; $txt['sp-arcadelate'] = 'Latest High Score by '; $txt['sp-arcadewit'] = 'with '; $txt['sp-arcadeon'] = 'on ';
Table 'cobalaf6_CCon.smf_sp_blocks' doesn't exist
File: /home/cobalaf6/public_html/smf/Sources/Subs-SPortal.php
Line: 36
Quote from: avf on July 31, 2008, 11:43:26 AMQuote from: [SiNaN] on July 27, 2008, 02:48:38 PM
reece_thompson:
Do you want it to be in a definite width?
avf:
Thanks for using my mod. I'll code a block for you. ;)
Hi Sinan,
Awesome Support from you. Were you able to get around to members can see their own posts on your portal by adding some PHP Code.
Hi Sinan,
My members are really appreciating your mod. Thanks .
Is it possible for you write the php code that i can use so that members can see their own posts on your portal
Thanks again
avf
Quote from: [SiNaN] on August 02, 2008, 10:43:57 AM
asudhakar:
You can try ssi_recentPoll function.
Quote from: kandalf on July 24, 2008, 09:34:33 AMQuote from: [SiNaN] on July 23, 2008, 09:08:53 AM
kandalf:
You're right, I've missed that. Run this query from PhpMyAdmin and you will have no problems:Code SelectALTER TABLE smf_sp_articles CHANGE ID_MESSAGE ID_MESSAGE INT( 10 ) UNSIGNED DEFAULT 0 NOT NULL
Tomorrow will release an update.
global $context, $settings, $scripturl, $txt, $db_prefix, $ID_MEMBER;
global $user_info, $modSettings, $func;
if($context['user']['is_guest'])
return;
if (!empty($modSettings['recycle_enable']) && $modSettings['recycle_board'] > 0)
$exclude_boards = array($modSettings['recycle_board']);
else
$exclude_boards = array();
$request = db_query("
SELECT
m.posterTime, m.subject, m.ID_TOPIC, m.ID_MEMBER, m.ID_MSG, m.ID_BOARD, b.name AS bName,
IFNULL(mem.realName, m.posterName) AS posterName, LEFT(m.body, 384) AS body, m.smileysEnabled
FROM ({$db_prefix}messages AS m, {$db_prefix}boards AS b)
LEFT JOIN {$db_prefix}members AS mem ON (mem.ID_MEMBER = m.ID_MEMBER)
WHERE m.ID_MSG >= " . ($modSettings['maxMsgID'] - 25 * min(10, 5)) . "
AND b.ID_BOARD = m.ID_BOARD" . (empty($exclude_boards) ? '' : "
AND b.ID_BOARD NOT IN (" . implode(', ', $exclude_boards) . ")") . "
AND $user_info[query_see_board]
AND m.ID_MEMBER = $ID_MEMBER
ORDER BY m.ID_MSG DESC
LIMIT 10", __FILE__, __LINE__);
$posts = array();
while ($row = mysql_fetch_assoc($request))
{
$row['body'] = strip_tags(strtr(parse_bbc($row['body'], $row['smileysEnabled'], $row['ID_MSG']), array('<br />' => '')));
if ($func['strlen']($row['body']) > 128)
$row['body'] = $func['substr']($row['body'], 0, 128) . '...';
censorText($row['subject']);
censorText($row['body']);
$posts[] = array(
'board' => array(
'id' => $row['ID_BOARD'],
'name' => $row['bName'],
'href' => $scripturl . '?board=' . $row['ID_BOARD'] . '.0',
'link' => '<a href="' . $scripturl . '?board=' . $row['ID_BOARD'] . '.0">' . $row['bName'] . '</a>'
),
'topic' => $row['ID_TOPIC'],
'poster' => array(
'id' => $row['ID_MEMBER'],
'name' => $row['posterName'],
'href' => empty($row['ID_MEMBER']) ? '' : $scripturl . '?action=profile;u=' . $row['ID_MEMBER'],
'link' => empty($row['ID_MEMBER']) ? $row['posterName'] : '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '">' . $row['posterName'] . '</a>'
),
'subject' => $row['subject'],
'short_subject' => shorten_subject($row['subject'], 25),
'preview' => $row['body'],
'time' => timeformat($row['posterTime']),
'timestamp' => forum_time(true, $row['posterTime']),
'href' => $scripturl . '?topic=' . $row['ID_TOPIC'] . '.msg' . $row['ID_MSG'] . ';topicseen#new',
'link' => '<a href="' . $scripturl . '?topic=' . $row['ID_TOPIC'] . '.msg' . $row['ID_MSG'] . '#msg' . $row['ID_MSG'] . '">' . $row['subject'] . '</a>',
);
}
mysql_free_result($request);
if(empty($posts))
return;
echo '
<table border="0" class="ssi_table">';
foreach ($posts as $post)
echo '
<tr>
<td align="left" valign="top" nowrap="nowrap">
<a href="', $post['href'], '">', $post['subject'], '</a><br />
[', $post['board']['link'], ']<br />
', $post['time'], '
<hr />
</td>
</tr>';
echo '
</table>';
AND t.ID_POLL = p.ID_POLL
AND b.ID_BOARD = t.ID_BOARD
AND t.ID_POLL = p.ID_POLL
AND b.ID_BOARD = t.ID_BOARD
AND b.ID_BOARD = 68
// Show the [help] button.
// Show the [forum] button.
echo ($current_action=='forum' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '<td class="maintab_off_' . $first . '"> </td>' , '
<td valign="top" class="maintab_' , $current_action == 'forum' ? 'active_back' : 'off_back' , '">
<a href="', $scripturl, '?action=forum">' , $txt['wow_forum_button_forum'] , '</a>
</td>' , $current_action == 'forum' ? '<td class="maintab_active_' . $last . '"> </td>' : '<td class="maintab_off_' . $last . '"> </td>';
// Show the [help] button.
'login', 'help', 'pm'
'login', 'help', 'pm', 'forum', 'spadmin'
$current_action = 'search';
$current_action = 'search';
if (isset($_GET['board']) || isset($_GET['topic']))
$current_action = 'forum';
if ($context['current_action']=='spadmin')
$current_action = 'admin';
// SP General
$txt['sp-forum'] = 'Forum';
$txt['sp-adminTitle'] = 'SPortal Admin';
$txt['sp-adminCatTitle'] = 'SimplePortal';
$txt['sp-articlesCategory'] = 'Article Category';
$txt['sp-articlesNoCategory'] = 'Do not Publish';
$txt['sp-make_article'] = 'Make Article';
$txt['error_sp_no_message_id'] = 'Invalid message ID.';
$txt['error_sp_article_exists'] = 'Article already exists.';
$txt['error_sp_cannot_add_article'] = 'You don\'t have permission to add article.';
$txt['error_sp_label_empty'] = 'Label is left empty.';
$txt['error_sp_name_empty'] = 'Name is left empty.';
$txt['error_sp_no_category'] = 'There is no article category created.';
// SP Permissions
$txt['permissiongroup_sp'] = 'SimplePortal';
$txt['permissionname_sp_moderate'] = 'Moderate portal';
$txt['permissionhelp_sp_moderate'] = 'This permission allows users to access the SimplePortal Admin panel.';
$txt['permissionname_sp_add_article'] = 'Can add article';
$txt['permissionhelp_sp_add_article'] = 'This permission allows users to add articles.';
$txt['permissionname_sp_auto_article_approval'] = 'Auto article approval';
$txt['permissionhelp_sp_auto_article_approval'] = 'This permission allows users to add articles without approval.';
// SP Blocks
$txt['sp-userpost'] = 'Posts';
$txt['sp-userkarma'] = 'Karma';
$txt['sp-usertmessage'] = 'Total Messages';
$txt['sp-usernmessage'] = 'New Messages';
$txt['sp-userprofile'] = 'Profile';
$txt['sp-userlogout'] = 'Logout';
$txt['sp-onlineguest'] = 'Online Guests';
$txt['sp-onlineuser'] = 'Online Users';
$txt['sp-onlinehuser'] = 'Hidden Users';
$txt['sp-onlinetuser'] = 'Total Users';
$txt['sp-onlineouser'] = 'Online Users';
$txt['sp-statmember'] = 'Total Members';
$txt['sp-statpost'] = 'Total Posts';
$txt['sp-stattopic'] = 'Total Topics';
$txt['sp-statcategory'] = 'Total Categories';
$txt['sp-statboard'] = 'Total Boards';
$txt['sp-qsearchsearch'] = 'Search';
$txt['sp-tposterpost'] = ' posts';
$txt['sp-tboardname'] = 'Board';
$txt['sp-tboardpost'] = 'Posts';
$txt['sp-ttopicname'] = 'Topic';
$txt['sp-ttopicpost'] = 'Posts';
$txt['sp-grpictureviews'] = 'Views:';
$txt['sp-grpicturesender'] = 'By:';
$txt['sp-grpictureguest'] = 'Guest';
$txt['sp-arcadeplay'] = 'The Top Players';
$txt['sp-arcadewin'] = 'Number Of Wins :';
$txt['sp-arcadelate'] = 'Latest High Score by ';
$txt['sp-arcadewit'] = 'with ';
$txt['sp-arcadeon'] = 'on ';
ALTER TABLE smf_sp_articles CHANGE ID_ARTICLE ID_ARTICLE INT( 10 ) UNSIGNED DEFAULT 0 NOT NULL
Quote from: [SiNaN] on August 06, 2008, 08:21:54 AM
asudhakar:
../SSI.php
Find:Code SelectAND t.ID_POLL = p.ID_POLL
AND b.ID_BOARD = t.ID_BOARD
Replace:Code SelectAND t.ID_POLL = p.ID_POLL
AND b.ID_BOARD = t.ID_BOARD
AND b.ID_BOARD = 68
Quote from: dgandy on August 02, 2008, 07:08:00 AM
Hi SiNaN. :)
This mod is fantastic. Thank you for your hard work.
I have the Thumbnail on Topic mod by vbgamer45 (http://custom.simplemachines.org/mods/index.php?mod=1151). When I set up a board news block, I would like the thumbnail image of the topic I selected to show. I think I need to incorporate this line somewhere..Code Select$topic['first_post']['icon_url'],
. I am an idiot when it comes to php and have no idea where to do this.
Can you help?
Quote from: kriskd on August 09, 2008, 08:04:22 AM
With 50 pages of posts, it's likely this has been asked, but the search topic feature only seems to return the original post. ???
Anyway, is there anyway I can get some of the block to appear on my board index, say to the left of the list of boards? I don't need the full portal, but a who's online block on the board index might be useful to me. :)
Quote from: jmil on August 08, 2008, 03:00:44 PM
I installed Simple POrtal on my site (1.1.5, Black 45 Theme). Using the Instructions in this thread, I do not see all the changes to make it work properly. The install went fine (no errors) - but when I enable it - my current Board goes blank, turning it off and all returns fine.
Update Got most of it working now but When I turn on the profile block all the icons for post, karma, etc show the dreaded red (x)
Any assitance and/or instructions would be appreciated. I have attached my display.template.php and index.template.php from my theme.
The Chief
Quote from: jmil on August 08, 2008, 03:00:44 PM
I installed Simple POrtal on my site (1.1.5, Black 45 Theme). Using the Instructions in this thread, I do not see all the changes to make it work properly. The install went fine (no errors) - but when I enable it - my current Board goes blank, turning it off and all returns fine.
Any assitance and/or instructions would be appreciated. I have attached my display.template.php and index.template.php from my theme.
The Chief
Quote from: jmil on August 10, 2008, 08:16:36 AM
Sounds simple but where are those gifs? ???
Quote from: jmil on August 10, 2008, 08:18:30 AM
Never mind - Found them!!!
Quote from: [SiNaN] on March 11, 2008, 02:49:05 AMQuote from: Eliana Tamerin on March 10, 2008, 11:22:35 PM
Interesting portal. Definitely a good start to one. I would suggest, though, the option to make a frontpage that's just an article or text, instead of including forum posts.
Thanks. This is just start. ;)
ALTER TABLE smf_sp_articles CHANGE ID_ARTICLE ID_ARTICLE INT( 10 ) UNSIGNED DEFAULT 0 NOT NULL
ALTER TABLE smf_sp_articles CHANGE ID_MESSAGE ID_MESSAGE INT( 10 ) UNSIGNED DEFAULT 0 NOT NULL
Quote from: asudhakar on August 10, 2008, 08:19:48 AMQuote from: jmil on August 10, 2008, 08:16:36 AM
Sounds simple but where are those gifs? ???
Hi JMIl , if you have installed this mod. The Gif files named dot.gif and arrow.gif will be there in you forum/default/images/ folder.
Just copy those files and update in your current theme folder.
Or simply down the simple portal pacakge and unzip to get those two files. - Click to download (http://custom.simplemachines.org/mods/index.php?mod=1104)
Updated :
Nice JMIl you got it.
Quote from: [SiNaN] on August 11, 2008, 05:43:45 AM
asudhakar:
Are you sure that you are using the ssi_recentpoll function and not showpoll block?
global $boarddir;
require_once($boarddir . '/SSI.php');
ssi_recentPoll();
Quote from: [SiNaN] on August 11, 2008, 08:21:25 AM
Use this code and create a new php block:Code Select
global $boarddir;
require_once($boarddir . '/SSI.php');
ssi_recentPoll();
Quote from: [SiNaN] on August 11, 2008, 05:43:45 AM
tuggaming:
What I was going to do with those files? Remove or install?
Quote from: jmil on August 11, 2008, 10:45:55 AM
This Portal is really taking off and looking good, thanks in part to the support here.
I have a minor question - Please look at the screen shot I have here - the Postings only fill to the left leaving an open space on the right. Can I stretch these out or center them a bit more to clean it up?
Also, can I center the titles of the individual Blocks if so desired?
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi300.photobucket.com%2Falbums%2Fnn3%2FThe_Chief_2008%2FMisc%2FForum-1.jpg&hash=543b68660b990c572e3eb95a82aebb69d67d7938)
This appears to only be an issue with Internet Explorer. Firefox displays it correctly. I brought this up in a post last week. I don't know if there's anything you can do aboout it.
Quote from: [SiNaN] on August 11, 2008, 05:43:45 AM
dgandy:
Do you modification in articles or board news block? You want it to work like vbgamer's mod, right?
Quote from: [SiNaN] on August 11, 2008, 11:06:42 AM
tuggaming:
Okay, I'll do it.
Quote from: [SiNaN] on August 11, 2008, 11:06:42 AM
tuggaming:
Okay, I'll do it.
jmil and caniol52
Fixed in 2.0.3. Now I'm testing the package. Then will upload it.
Quote from: [SiNaN] on August 12, 2008, 02:19:15 PM
dgandy:
I'll look at that.
tuguex:
You should add it from index.template.php. See this topics in Documentation:
How do you add custom tabs to the Core (default) theme menu? (http://docs.simplemachines.org/index.php?topic=564)
If you cannot figure it out, attach and I'll do it for you.
By the way, the new upgrade package is being tested. We hope to release it soon.
<?php
// Version: 1.1; Display
function template_main()
{
global $context, $settings, $options, $txt, $scripturl, $modSettings;
//Display ads on the thread page
if (function_exists("show_threadAds"))
{
$ads = show_threadAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}
//Display ads on the thread page
if (function_exists("show_threadAds"))
{
$ads = show_threadAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}
// Show the anchor for the top and for the first message. If the first message is new, say so.
echo '
<a name="top"></a>
<a name="msg', $context['first_message'], '"></a>', $context['first_new_message'] ? '<a name="new"></a>' : '';
// Show the linktree
echo '
<div>', theme_linktree(), '</div>';
// Is this topic also a poll?
if ($context['is_poll'])
{
echo '
<table cellpadding="3" cellspacing="0" border="0" width="100%" class="tborder" style="padding-top: 0; margin-bottom: 2ex;">
<tr>
<td class="titlebg" colspan="2" valign="middle" style="padding-left: 6px;">
<img src="', $settings['images_url'], '/topic/', $context['poll']['is_locked'] ? 'normal_poll_locked' : 'normal_poll', '.gif" alt="" align="bottom" /> ', $txt['smf43'], '
</td>
</tr>
<tr>
<td width="5%" valign="top" class="windowbg"><b>', $txt['smf21'], ':</b></td>
<td class="windowbg">
', $context['poll']['question'];
if (!empty($context['poll']['expire_time']))
echo '
(', ($context['poll']['is_expired'] ? $txt['poll_expired_on'] : $txt['poll_expires_on']), ': ', $context['poll']['expire_time'], ')';
// Are they not allowed to vote but allowed to view the options?
if ($context['poll']['show_results'] || !$context['allow_vote'])
{
echo '
<table>
<tr>
<td style="padding-top: 2ex;">
<table border="0" cellpadding="0" cellspacing="0">';
// Show each option with its corresponding percentage bar.
foreach ($context['poll']['options'] as $option)
echo '
<tr>
<td style="padding-right: 2ex;', $option['voted_this'] ? 'font-weight: bold;' : '', '">', $option['option'], '</td>', $context['allow_poll_view'] ? '
<td nowrap="nowrap">' . $option['bar'] . ' ' . $option['votes'] . ' (' . $option['percent'] . '%)</td>' : '', '
</tr>';
echo '
</table>
</td>
<td valign="bottom" style="padding-left: 15px;">';
// If they are allowed to revote - show them a link!
if ($context['allow_change_vote'])
echo '
<a href="', $scripturl, '?action=vote;topic=', $context['current_topic'], '.', $context['start'], ';poll=', $context['poll']['id'], ';sesc=', $context['session_id'], '">', $txt['poll_change_vote'], '</a><br />';
// If we're viewing the results... maybe we want to go back and vote?
if ($context['poll']['show_results'] && $context['allow_vote'])
echo '
<a href="', $scripturl, '?topic=', $context['current_topic'], '.', $context['start'], '">', $txt['poll_return_vote'], '</a><br />';
// If they're allowed to lock the poll, show a link!
if ($context['poll']['lock'])
echo '
<a href="', $scripturl, '?action=lockVoting;topic=', $context['current_topic'], '.', $context['start'], ';sesc=', $context['session_id'], '">', !$context['poll']['is_locked'] ? $txt['smf30'] : $txt['smf30b'], '</a><br />';
// If they're allowed to edit the poll... guess what... show a link!
if ($context['poll']['edit'])
echo '
<a href="', $scripturl, '?action=editpoll;topic=', $context['current_topic'], '.', $context['start'], '">', $txt['smf39'], '</a>';
echo '
</td>
</tr>', $context['allow_poll_view'] ? '
<tr>
<td colspan="2"><b>' . $txt['smf24'] . ': ' . $context['poll']['total_votes'] . '</b></td>
</tr>' : '', '
</table><br />';
}
// They are allowed to vote! Go to it!
else
{
echo '
<form action="', $scripturl, '?action=vote;topic=', $context['current_topic'], '.', $context['start'], ';poll=', $context['poll']['id'], '" method="post" accept-charset="', $context['character_set'], '" style="margin: 0px;">
<table>
<tr>
<td colspan="2">';
// Show a warning if they are allowed more than one option.
if ($context['poll']['allowed_warning'])
echo '
', $context['poll']['allowed_warning'], '
</td>
</tr><tr>
<td>';
// Show each option with its button - a radio likely.
foreach ($context['poll']['options'] as $option)
echo '
', $option['vote_button'], ' ', $option['option'], '<br />';
echo '
</td>
<td valign="bottom" style="padding-left: 15px;">';
// Allowed to view the results? (without voting!)
if ($context['allow_poll_view'])
echo '
<a href="', $scripturl, '?topic=', $context['current_topic'], '.', $context['start'], ';viewResults">', $txt['smf29'], '</a><br />';
// Show a link for locking the poll as well...
if ($context['poll']['lock'])
echo '
<a href="', $scripturl, '?action=lockVoting;topic=', $context['current_topic'], '.', $context['start'], ';sesc=', $context['session_id'], '">', (!$context['poll']['is_locked'] ? $txt['smf30'] : $txt['smf30b']), '</a><br />';
// Want to edit it? Click right here......
if ($context['poll']['edit'])
echo '
<a href="', $scripturl, '?action=editpoll;topic=', $context['current_topic'], '.', $context['start'], '">', $txt['smf39'], '</a>';
echo '
</td>
</tr><tr>
<td colspan="2"><input type="submit" value="', $txt['smf23'], '" /></td>
</tr>
</table>
<input type="hidden" name="sc" value="', $context['session_id'], '" />
</form>';
}
echo '
</td>
</tr>
</table>';
}
// Does this topic have some events linked to it?
if (!empty($context['linked_calendar_events']))
{
echo '
<table cellpadding="3" cellspacing="0" border="0" width="100%" class="tborder" style="padding-top: 0; margin-bottom: 3ex;">
<tr>
<td class="titlebg" valign="middle" align="left" style="padding-left: 6px;">
', $txt['calendar_linked_events'], '
</td>
</tr>
<tr>
<td width="5%" valign="top" class="windowbg">
<ul>';
foreach ($context['linked_calendar_events'] as $event)
echo '
<li>
', ($event['can_edit'] ? '<a href="' . $event['modify_href'] . '" style="color: red;">*</a> ' : ''), '<b>', $event['title'], '</b>: ', $event['start_date'], ($event['start_date'] != $event['end_date'] ? ' - ' . $event['end_date'] : ''), '
</li>';
echo '
</ul>
</td>
</tr>
</table>';
}
// Build the normal button array.
$normal_buttons = array(
'reply' => array('test' => 'can_reply', 'text' => 146, 'image' => 'reply.gif', 'lang' => true, 'url' => $scripturl . '?action=post;topic=' . $context['current_topic'] . '.' . $context['start'] . ';num_replies=' . $context['num_replies']),
'notify' => array('test' => 'can_mark_notify', 'text' => 125, 'image' => 'notify.gif', 'lang' => true, 'custom' => 'onclick="return confirm(\'' . ($context['is_marked_notify'] ? $txt['notification_disable_topic'] : $txt['notification_enable_topic']) . '\');"', 'url' => $scripturl . '?action=notify;sa=' . ($context['is_marked_notify'] ? 'off' : 'on') . ';topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id']),
'custom' => array(),
'send' => array('test' => 'can_send_topic', 'text' => 707, 'image' => 'sendtopic.gif', 'lang' => true, 'url' => $scripturl . '?action=sendtopic;topic=' . $context['current_topic'] . '.0'),
'print' => array('text' => 465, 'image' => 'print.gif', 'lang' => true, 'custom' => 'target="_blank"', 'url' => $scripturl . '?action=printpage;topic=' . $context['current_topic'] . '.0'),
);
// Special case for the custom one.
if ($context['user']['is_logged'] && $settings['show_mark_read'])
$normal_buttons['custom'] = array('text' => 'mark_unread', 'image' => 'markunread.gif', 'lang' => true, 'url' => $scripturl . '?action=markasread;sa=topic;t=' . $context['mark_unread_time'] . ';topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id']);
elseif ($context['can_add_poll'])
$normal_buttons['custom'] = array('text' => 'add_poll', 'image' => 'add_poll.gif', 'lang' => true, 'url' => $scripturl . '?action=editpoll;add;topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id']);
else
unset($normal_buttons['custom']);
// Make Article Button
if ($context['can_make_article'])
$normal_buttons['article'] = array('text' => 'sp-make_article', 'image' => 'addarticle.gif', 'lang' => true, 'url' => $scripturl . '?sa=addarticle;message=' . $context['topic_first_message'] . ';return=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id']);
// Show the page index... "Pages: [1]".
echo '
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="middletext" valign="bottom" style="padding-bottom: 4px;">', $txt[139], ': ', $context['page_index'], !empty($modSettings['topbottomEnable']) ? $context['menu_separator'] . ' <a href="#lastPost"><b>' . $txt['topbottom5'] . '</b></a>' : '', '</td>
<td align="right" style="padding-right: 1ex;">
<div class="nav" style="margin-bottom: 2px;"> ', $context['previous_next'], '</div>
<table cellpadding="0" cellspacing="0">
<tr>
', template_button_strip($normal_buttons, 'bottom'), '
</tr>
</table>
</td>
</tr>
</table>';
// Show the topic information - icon, subject, etc.
echo '
<table width="100%" cellpadding="3" cellspacing="0" border="0" class="tborder" style="border-bottom: 0;">
<tr class="catbg3">
<td valign="middle" width="2%" style="padding-left: 6px;">
<img src="', $settings['images_url'], '/topic/', $context['class'], '.gif" align="bottom" alt="" />
</td>
<td width="13%"> ', $txt[29], '</td>
<td valign="middle" width="85%" style="padding-left: 6px;" id="top_subject">
', $txt[118], ': ', $context['subject'], ' (', $txt[641], ' ', $context['num_views'], ' ', $txt[642], ')
</td>
</tr>';
if (!empty($settings['display_who_viewing']))
{
echo '
<tr>
<td colspan="3" class="smalltext">';
// Show just numbers...?
if ($settings['display_who_viewing'] == 1)
echo count($context['view_members']), ' ', count($context['view_members']) == 1 ? $txt['who_member'] : $txt[19];
// Or show the actual people viewing the topic?
else
echo empty($context['view_members_list']) ? '0 ' . $txt[19] : implode(', ', $context['view_members_list']) . ((empty($context['view_num_hidden']) || $context['can_moderate_forum']) ? '' : ' (+ ' . $context['view_num_hidden'] . ' ' . $txt['hidden'] . ')');
// Now show how many guests are here too.
echo $txt['who_and'], $context['view_num_guests'], ' ', $context['view_num_guests'] == 1 ? $txt['guest'] : $txt['guests'], $txt['who_viewing_topic'], '
</td>
</tr>';
}
echo '
</table>';
echo '
<form action="', $scripturl, '?action=quickmod2;topic=', $context['current_topic'], '.', $context['start'], '" method="post" accept-charset="', $context['character_set'], '" name="quickModForm" id="quickModForm" style="margin: 0;" onsubmit="return in_edit_mode == 1 ? modify_save(\'' . $context['session_id'] . '\') : confirm(\'' . $txt['quickmod_confirm'] . '\');">';
// These are some cache image buttons we may want.
$reply_button = create_button('quote.gif', 145, 'smf240', 'align="middle"');
$modify_button = create_button('modify.gif', 66, 17, 'align="middle"');
$remove_button = create_button('delete.gif', 121, 31, 'align="middle"');
$split_button = create_button('split.gif', 'smf251', 'smf251', 'align="middle"');
// Time to display all the posts
echo '
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="bordercolor">';
//Ad Counter
$adcounter =0;
//Ad Counter
$adcounter =0;
// Get all the messages...
while ($message = $context['get_message']())
{
$adcounter++;
$adcounter++;
echo '
<tr><td style="padding: 1px 1px 0 1px;">';
// Show the message anchor and a "new" anchor if this message is new.
if ($message['id'] != $context['first_message'])
echo '
<a name="msg', $message['id'], '"></a>', $message['first_new'] ? '<a name="new"></a>' : '';
echo '
<table width="100%" cellpadding="3" cellspacing="0" border="0">
<tr><td class="', $message['alternate'] == 0 ? 'windowbg' : 'windowbg2', '">';
// Show information about the poster of this message.
echo '
<table width="100%" cellpadding="5" cellspacing="0" style="table-layout: fixed;">
<tr>
<td valign="top" width="16%" rowspan="2" style="overflow: hidden;">
<b>', $message['member']['link'], '</b>
<div class="smalltext">';
// Show the member's custom title, if they have one.
if (isset($message['member']['title']) && $message['member']['title'] != '')
echo '
', $message['member']['title'], '<br />';
// Show the member's primary group (like 'Administrator') if they have one.
if (isset($message['member']['group']) && $message['member']['group'] != '')
echo '
', $message['member']['group'], '<br />';
// Don't show these things for guests.
if (!$message['member']['is_guest'])
{
// Show the post group if and only if they have no other group or the option is on, and they are in a post group.
if ((empty($settings['hide_post_group']) || $message['member']['group'] == '') && $message['member']['post_group'] != '')
echo '
', $message['member']['post_group'], '<br />';
echo '
', $message['member']['group_stars'], '<br />';
// Is karma display enabled? Total or +/-?
if ($modSettings['karmaMode'] == '1')
echo '
<br />
', $modSettings['karmaLabel'], ' ', $message['member']['karma']['good'] - $message['member']['karma']['bad'], '<br />';
elseif ($modSettings['karmaMode'] == '2')
echo '
<br />
', $modSettings['karmaLabel'], ' +', $message['member']['karma']['good'], '/-', $message['member']['karma']['bad'], '<br />';
// Is this user allowed to modify this member's karma?
if ($message['member']['karma']['allow'])
echo '
<a href="', $scripturl, '?action=modifykarma;sa=applaud;uid=', $message['member']['id'], ';topic=', $context['current_topic'], '.' . $context['start'], ';m=', $message['id'], ';sesc=', $context['session_id'], '">', $modSettings['karmaApplaudLabel'], '</a>
<a href="', $scripturl, '?action=modifykarma;sa=smite;uid=', $message['member']['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';m=', $message['id'], ';sesc=', $context['session_id'], '">', $modSettings['karmaSmiteLabel'], '</a><br />';
// Show online and offline buttons?
if (!empty($modSettings['onlineEnable']) && !$message['member']['is_guest'])
echo '
', $context['can_send_pm'] ? '<a href="' . $message['member']['online']['href'] . '" title="' . $message['member']['online']['label'] . '">' : '', $settings['use_image_buttons'] ? '<img src="' . $message['member']['online']['image_href'] . '" alt="' . $message['member']['online']['text'] . '" border="0" style="margin-top: 2px;" />' : $message['member']['online']['text'], $context['can_send_pm'] ? '</a>' : '', $settings['use_image_buttons'] ? '<span class="smalltext"> ' . $message['member']['online']['text'] . '</span>' : '', '<br /><br />';
// Show the member's gender icon?
if (!empty($settings['show_gender']) && $message['member']['gender']['image'] != '')
echo '
', $txt[231], ': ', $message['member']['gender']['image'], '<br />';
// Show how many posts they have made.
// echo '
// ', $txt[26], ': ', $message['member']['posts'], '<br />
// <br />';
// BEGIN SMFShop MOD New Version Code
// Removed one <br /> from end of post count line.
echo '
', $txt[26], ': ', $message['member']['posts'], '<br />
';
echo '
', $modSettings['shopCurrencyPrefix'], $message['member']['money'], $modSettings['shopCurrencySuffix'], '<br /><br />
<a href="', $scripturl, '?action=shop;do=invother2;member=', $message['member']['username'], '">View Inventory</a><br />
<a href="', $scripturl, '?action=shop;do=sendmoney;member=', $message['member']['username'], '">Send Money to ', $message['member']['name'], '</a><br />';
//END SMFShop code
// Show avatars, images, etc.?
if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']))
echo '
<div style="overflow: auto; width: 100%;">', $message['member']['avatar']['image'], '</div><br />';
// Show their personal text?
if (!empty($settings['show_blurb']) && $message['member']['blurb'] != '')
echo '
', $message['member']['blurb'], '<br />
<br />';
// This shows the popular messaging icons.
echo '
', $message['member']['icq']['link'], '
', $message['member']['msn']['link'], '
', $message['member']['aim']['link'], '
', $message['member']['yim']['link'], '<br />';
// Show the profile, website, email address, and personal message buttons.
if ($settings['show_profile_buttons'])
{
// Don't show the profile button if you're not allowed to view the profile.
if ($message['member']['can_view_profile'])
echo '
<a href="', $message['member']['href'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/icons/profile_sm.gif" alt="' . $txt[27] . '" title="' . $txt[27] . '" border="0" />' : $txt[27]), '</a>';
// Don't show an icon if they haven't specified a website.
if ($message['member']['website']['url'] != '')
echo '
<a href="', $message['member']['website']['url'], '" title="' . $message['member']['website']['title'] . '" target="_blank">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/www_sm.gif" alt="' . $txt[515] . '" border="0" />' : $txt[515]), '</a>';
// Don't show the email address if they want it hidden.
if (empty($message['member']['hide_email']))
echo '
<a href="mailto:', $message['member']['email'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt[69] . '" title="' . $txt[69] . '" border="0" />' : $txt[69]), '</a>';
// Since we know this person isn't a guest, you *can* message them.
if ($context['can_send_pm'])
echo '
<a href="', $scripturl, '?action=pm;sa=send;u=', $message['member']['id'], '" title="', $message['member']['online']['label'], '">', $settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/im_' . ($message['member']['online']['is_online'] ? 'on' : 'off') . '.gif" alt="' . $message['member']['online']['label'] . '" border="0" />' : $message['member']['online']['label'], '</a>';
}
}
// Otherwise, show the guest's email.
elseif (empty($message['member']['hide_email']))
echo '
<br />
<br />
<a href="mailto:', $message['member']['email'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt[69] . '" title="' . $txt[69] . '" border="0" />' : $txt[69]), '</a>';
// Done with the information about the poster... on to the post itself.
echo '
</div>
</td>
<td valign="top" width="85%" height="100%">
<table width="100%" border="0"><tr>
<td valign="middle"><a href="', $message['href'], '"><img src="', $message['icon_url'] . '" alt="" border="0" /></a></td>
<td valign="middle">
<div style="font-weight: bold;" id="subject_', $message['id'], '">
<a href="', $message['href'], '">', $message['subject'], '</a>
</div>';
// If this is the first post, (#0) just say when it was posted - otherwise give the reply #.
echo '
<div class="smalltext">&#171; <b>', !empty($message['counter']) ? $txt[146] . ' #' . $message['counter'] : '', ' ', $txt[30], ':</b> ', $message['time'], ' &#187;</div></td>
<td align="', !$context['right_to_left'] ? 'right' : 'left', '" valign="bottom" height="20" style="font-size: smaller;">';
// Can they reply? Have they turned on quick reply?
if ($context['can_reply'] && !empty($options['display_quick_reply']))
echo '
<a href="', $scripturl, '?action=post;quote=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';num_replies=', $context['num_replies'], ';sesc=', $context['session_id'], '" onclick="doQuote(', $message['id'], ', \'', $context['session_id'], '\'); return false;">', $reply_button, '</a>';
// So... quick reply is off, but they *can* reply?
elseif ($context['can_reply'])
echo '
<a href="', $scripturl, '?action=post;quote=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';num_replies=', $context['num_replies'], ';sesc=', $context['session_id'], '">', $reply_button, '</a>';
// Can the user modify the contents of this post?
if ($message['can_modify'])
echo '
<a href="', $scripturl, '?action=post;msg=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';sesc=', $context['session_id'], '">', $modify_button, '</a>';
// How about... even... remove it entirely?!
if ($message['can_remove'])
echo '
<a href="', $scripturl, '?action=deletemsg;topic=', $context['current_topic'], '.', $context['start'], ';msg=', $message['id'], ';sesc=', $context['session_id'], '" onclick="return confirm(\'', $txt[154], '?\');">', $remove_button, '</a>';
// What about splitting it off the rest of the topic?
if ($context['can_split'])
echo '
<a href="', $scripturl, '?action=splittopics;topic=', $context['current_topic'], '.0;at=', $message['id'], '">', $split_button, '</a>';
// Show a checkbox for quick moderation?
if (!empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1 && $message['can_remove'])
echo '
<input type="checkbox" name="msgs[]" value="', $message['id'], '" class="check" ', empty($settings['use_tabs']) ? 'onclick="document.getElementById(\'quickmodSubmit\').style.display = \'\';"' : '', ' />';
// Show the post itself, finally!
echo '
</td>
</tr></table>
<hr width="100%" size="1" class="hrcolor" />
<div class="post"', $message['can_modify'] ? ' id="msg_' . $message['id'] . '"' : '', '>', $message['body'], '</div>', $message['can_modify'] ? '
<img src="' . $settings['images_url'] . '/icons/modify_inline.gif" alt="" align="right" id="modify_button_' . $message['id'] . '" style="cursor: pointer; display: none;" onclick="modify_msg(\'' . $message['id'] . '\', \'' . $context['session_id'] . '\')" />' : '' , '
</td>
</tr>';
// Now for the attachments, signature, ip logged, etc...
echo '
<tr>
<td valign="bottom" class="smalltext" width="85%">
<table width="100%" border="0" style="table-layout: fixed;"><tr>
<td colspan="2" class="smalltext" width="100%">';
// Assuming there are attachments...
if (!empty($message['attachment']))
{
echo '
<hr width="100%" size="1" class="hrcolor" />
<div style="overflow: auto; width: 100%;">';
foreach ($message['attachment'] as $attachment)
{
if ($attachment['is_image'])
{
if ($attachment['thumbnail']['has_thumb'])
echo '
<a href="', $attachment['href'], ';image" id="link_', $attachment['id'], '" onclick="', $attachment['thumbnail']['javascript'], '"><img src="', $attachment['thumbnail']['href'], '" alt="" id="thumb_', $attachment['id'], '" border="0" /></a><br />';
else
echo '
<img src="' . $attachment['href'] . ';image" alt="" width="' . $attachment['width'] . '" height="' . $attachment['height'] . '" border="0" /><br />';
}
echo '
<a href="' . $attachment['href'] . '"><img src="' . $settings['images_url'] . '/icons/clip.gif" align="middle" alt="*" border="0" /> ' . $attachment['name'] . '</a> (', $attachment['size'], ($attachment['is_image'] ? ', ' . $attachment['real_width'] . 'x' . $attachment['real_height'] . ' - ' . $txt['attach_viewed'] : ' - ' . $txt['attach_downloaded']) . ' ' . $attachment['downloads'] . ' ' . $txt['attach_times'] . '.)<br />';
}
echo '
</div>';
}
echo '
</td>
</tr><tr>
<td valign="bottom" class="smalltext" id="modified_', $message['id'], '">';
// Show "« Last Edit: Time by Person »" if this post was edited.
if ($settings['show_modify'] && !empty($message['modified']['name']))
echo '
&#171; <i>', $txt[211], ': ', $message['modified']['time'], ' ', $txt[525], ' ', $message['modified']['name'], '</i> &#187;';
echo '
</td>
<td align="', !$context['right_to_left'] ? 'right' : 'left', '" valign="bottom" class="smalltext">';
// Maybe they want to report this post to the moderator(s)?
if ($context['can_report_moderator'])
echo '
<a href="', $scripturl, '?action=reporttm;topic=', $context['current_topic'], '.', $message['counter'], ';msg=', $message['id'], '">', $txt['rtm1'], '</a> ';
echo '
<img src="', $settings['images_url'], '/ip.gif" alt="" border="0" />';
// Show the IP to this user for this post - because you can moderate?
if ($context['can_moderate_forum'] && !empty($message['member']['ip']))
echo '
<a href="', $scripturl, '?action=trackip;searchip=', $message['member']['ip'], '">', $message['member']['ip'], '</a> <a href="', $scripturl, '?action=helpadmin;help=see_admin_ip" onclick="return reqWin(this.href);" class="help">(?)</a>';
// Or, should we show it because this is you?
elseif ($message['can_see_ip'])
echo '
<a href="', $scripturl, '?action=helpadmin;help=see_member_ip" onclick="return reqWin(this.href);" class="help">', $message['member']['ip'], '</a>';
// Okay, are you at least logged in? Then we can show something about why IPs are logged...
elseif (!$context['user']['is_guest'])
echo '
<a href="', $scripturl, '?action=helpadmin;help=see_member_ip" onclick="return reqWin(this.href);" class="help">', $txt[511], '</a>';
// Otherwise, you see NOTHING!
else
echo '
', $txt[511];
echo '
</td>
</tr></table>';
// Show the member's signature?
if (!empty($message['member']['signature']) && empty($options['show_no_signatures']))
echo '
<hr width="100%" size="1" class="hrcolor" />
<div class="signature">', $message['member']['signature'], '</div>';
echo '
</td>
</tr>
</table>
</td></tr>
</table>
</td></tr>';
if (function_exists("show_posts"))
{
if ($adpost = show_posts($adcounter))
{
if($modSettings['ads_lookLikePosts'])
{
echo '
<tr><td style="padding: 1px 1px 0 1px;">
<table width="100%" cellpadding="3" cellspacing="0" border="0">
<tr><td class="windowbg3">
<table width="100%" cellpadding="5" cellspacing="0" style="table-layout: fixed;">
<tr>
<td valign="top" width="16%" rowspan="2" style="overflow: hidden;">
<b>', $context['forum_name'], '</b>
<div class="smalltext">
</div>
</td>
<td valign="top" width="85%" height="100%">
<table width="100%" border="0"><tr>
<td valign="middle"><img src="', $message['icon_url'] . '" alt="" border="0" /></td>
<td valign="middle">
<div style="font-weight: bold;" id="subject_', $message['id'], '">
<a href="', $message['href'], '">', $message['subject'], '</a>
</div>
<div class="smalltext">&#171; <b>', !empty($message['counter']) ? $txt[146] . ' #' . $message['counter'] : '', ' ', $txt[30], ':</b> ', $message['time'], ' &#187;</div></td>
<td align="', !$context['right_to_left'] ? 'right' : 'left', '" valign="bottom" height="20" style="font-size: smaller;">';
if ($context['can_reply'] && !empty($options['display_quick_reply']))
echo '
', $reply_button, '';
// So... quick reply is off, but they *can* reply?
elseif ($context['can_reply'])
echo '
', $reply_button, '';
// Can the user modify the contents of this post?
if ($message['can_modify'])
echo '
', $modify_button, '';
// How about... even... remove it entirely?!
if ($message['can_remove'])
echo '
', $remove_button, '';
// What about splitting it off the rest of the topic?
if ($context['can_split'])
echo '
', $split_button, '';
echo '
</td>
</tr></table>
<hr width="100%" size="1" class="hrcolor" />
<div class="post">', $adpost['type'] == 0 ? $adpost['content'] : eval($adpost['content']) , '</div>
</td>
</tr>
<tr>
<td valign="bottom" class="smalltext" width="85%">
<table width="100%" border="0" style="table-layout: fixed;"><tr>
<td colspan="2" class="smalltext" width="100%">
</tr><tr>
<td valign="bottom" class="smalltext" id="modified_', $message['id'], '">
</td>
<td align="', !$context['right_to_left'] ? 'right' : 'left', '" valign="bottom" class="smalltext">
<img src="', $settings['images_url'], '/ip.gif" alt="" border="0" /> ', $txt[511], '
</td>
</tr></table>
</tr>
</table>
</td></tr>
</table>
</td></tr>';
}
else
echo '
<tr><td style="padding: 1px 1px 0 1px;">
<table width="100%" cellpadding="3" cellspacing="0" border="0">
<tr>
<td class="windowbg3">', $adpost['type'] == 0 ? $adpost['content'] : eval($adpost['content']) , '</td>
</tr>
</table>
</td></tr>';
}
}
}
if(function_exists("show_lastpostAds") && function_exists("show_posts"))
{
if(($ads = show_lastpostAds()) && !show_posts($adcounter))
{
if($modSettings['ads_lookLikePosts'])
{
echo '
<tr><td style="padding: 1px 1px 0 1px;">
<table width="100%" cellpadding="3" cellspacing="0" border="0">
<tr><td class="windowbg3">
<table width="100%" cellpadding="5" cellspacing="0" style="table-layout: fixed;">
<tr>
<td valign="top" width="16%" rowspan="2" style="overflow: hidden;">
<b>', $context['forum_name'], '</b>
<div class="smalltext">
</div>
</td>
<td valign="top" width="85%" height="100%">
<table width="100%" border="0"><tr>
<td valign="middle"> </td>
<td valign="middle">
</td>
<td align="', !$context['right_to_left'] ? 'right' : 'left', '" valign="bottom" height="20" style="font-size: smaller;">';
if ($context['can_reply'] && !empty($options['display_quick_reply']))
echo '
', $reply_button, '';
// So... quick reply is off, but they *can* reply?
elseif ($context['can_reply'])
echo '
', $reply_button, '';
echo '
</td>
</tr></table>
<hr width="100%" size="1" class="hrcolor" />
<div class="post">', $ads['type'] == 0 ? $ads['content'] : eval($ads['content']) , '</div>
</td>
</tr>
<tr>
<td valign="bottom" class="smalltext" width="85%">
<table width="100%" border="0" style="table-layout: fixed;"><tr>
<td colspan="2" class="smalltext" width="100%">
</tr><tr>
<td valign="bottom" class="smalltext" id="modified_', $message['id'], '">
</td>
<td align="', !$context['right_to_left'] ? 'right' : 'left', '" valign="bottom" class="smalltext">
<img src="', $settings['images_url'], '/ip.gif" alt="" border="0" /> ', $txt[511], '
</td>
</tr></table>
</tr>
</table>
</td></tr>
</table>
</td></tr>';
}
else
echo '
<tr><td style="padding: 1px 1px 0 1px;">
<table width="100%" cellpadding="3" cellspacing="0" border="0">
<tr>
<td class="windowbg3">', $ads['type'] == 0 ? $ads['content'] : eval($ads['content']) , '</td>
</tr>
</table>
</td></tr>';
}
}
echo '
<tr><td style="padding: 0 0 1px 0;"></td></tr>
</table>
<a name="lastPost"></a>';
// As before, build the custom button right.
if ($context['can_add_poll'])
$normal_buttons['custom'] = array('text' => 'add_poll', 'image' => 'add_poll.gif', 'lang' => true, 'url' => $scripturl . '?action=editpoll;add;topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id']);
elseif ($context['user']['is_logged'] && $settings['show_mark_read'])
$normal_buttons['custom'] = array('text' => 'mark_unread', 'image' => 'markunread.gif', 'lang' => true, 'url' => $scripturl . '?action=markasread;sa=topic;t=' . $context['mark_unread_time'] . ';topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id']);
echo '
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="middletext">', $txt[139], ': ', $context['page_index'], !empty($modSettings['topbottomEnable']) ? $context['menu_separator'] . ' <a href="#top"><b>' . $txt['topbottom4'] . '</b></a>' : '', '</td>
<td align="right" style="padding-right: 1ex;">
<table cellpadding="0" cellspacing="0">
<tr>
', template_button_strip($normal_buttons, 'top', true), '
</tr>
</table>
</td>
</tr>
</table>';
if ($context['show_spellchecking'])
echo '
<script language="JavaScript" type="text/javascript" src="' . $settings['default_theme_url'] . '/spellcheck.js"></script>';
echo '
<script language="JavaScript" type="text/javascript" src="' . $settings['default_theme_url'] . '/xml_topic.js"></script>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
quickReplyCollapsed = ', !empty($options['display_quick_reply']) && $options['display_quick_reply'] == 2 ? 'false' : 'true', ';
smf_topic = ', $context['current_topic'], ';
smf_start = ', $context['start'], ';
smf_show_modify = ', $settings['show_modify'] ? '1' : '0', ';
// On quick modify, this is what the body will look like.
var smf_template_body_edit = \'<div id="error_box" style="padding: 4px; color: red;"></div><textarea class="editor" name="message" rows="12" style="width: 94%; margin-bottom: 10px;">%body%</textarea><br /><input type="hidden" name="sc" value="', $context['session_id'], '" /><input type="hidden" name="topic" value="', $context['current_topic'], '" /><input type="hidden" name="msg" value="%msg_id%" /><div style="text-align: center;"><input type="submit" name="post" value="', $txt[10], '" onclick="return modify_save(\\\'' . $context['session_id'] . '\\\');" accesskey="s" /> ', $context['show_spellchecking'] ? '<input type="button" value="' . $txt['spell_check'] . '" onclick="spellCheck(\\\'quickModForm\\\', \\\'message\\\');" /> ' : '', '<input type="submit" name="cancel" value="', $txt['modify_cancel'], '" onclick="return modify_cancel();" /></div>\';
// And this is the replacement for the subject.
var smf_template_subject_edit = \'<input type="text" name="subject" value="%subject%" size="60" style="width: 99%;" maxlength="80" />\';
// Restore the message to this after editing.
var smf_template_body_normal = \'%body%\';
var smf_template_subject_normal = \'<a href="', $scripturl, '?topic=', $context['current_topic'], '.msg%msg_id%#msg%msg_id%">%subject%</a>\';
var smf_template_top_subject = "', $txt[118], ': %subject% (', $txt[641], ' ', $context['num_views'], ' ', $txt[642], ')"
if (window.XMLHttpRequest)
showModifyButtons();
// ]]></script>
<table border="0" width="100%" cellpadding="0" cellspacing="0" style="margin-bottom: 1ex;">
<tr>';
if ($settings['linktree_inline'])
echo '
<td valign="top">', theme_linktree(), '</td> ';
echo '
<td valign="top" align="', !$context['right_to_left'] ? 'right' : 'left', '" class="nav"> ', $context['previous_next'], '</td>
</tr>
</table>';
$mod_buttons = array(
'move' => array('test' => 'can_move', 'text' => 132, 'image' => 'admin_move.gif', 'lang' => true, 'url' => $scripturl . '?action=movetopic;topic=' . $context['current_topic'] . '.0'),
'delete' => array('test' => 'can_delete', 'text' => 63, 'image' => 'admin_rem.gif', 'lang' => true, 'custom' => 'onclick="return confirm(\'' . $txt[162] . '\');"', 'url' => $scripturl . '?action=removetopic2;topic=' . $context['current_topic'] . '.0;sesc=' . $context['session_id']),
'lock' => array('test' => 'can_lock', 'text' => empty($context['is_locked']) ? 'smf279' : 'smf280', 'image' => 'admin_lock.gif', 'lang' => true, 'url' => $scripturl . '?action=lock;topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id']),
'sticky' => array('test' => 'can_sticky', 'text' => empty($context['is_sticky']) ? 'smf277' : 'smf278', 'image' => 'admin_sticky.gif', 'lang' => true, 'url' => $scripturl . '?action=sticky;topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id']),
'merge' => array('test' => 'can_merge', 'text' => 'smf252', 'image' => 'merge.gif', 'lang' => true, 'url' => $scripturl . '?action=mergetopics;board=' . $context['current_board'] . '.0;from=' . $context['current_topic']),
'remove_poll' => array('test' => 'can_remove_poll', 'text' => 'poll_remove', 'image' => 'admin_remove_poll.gif', 'lang' => true, 'custom' => 'onclick="return confirm(\'' . $txt['poll_remove_warn'] . '\');"', 'url' => $scripturl . '?action=removepoll;topic=' . $context['current_topic'] . '.' . $context['start']),
'calendar' => array('test' => 'calendar_post', 'text' => 'calendar37', 'image' => 'linktocal.gif', 'lang' => true, 'url' => $scripturl . '?action=post;calendar;msg=' . $cont
Quote from: tuguex on August 12, 2008, 03:46:43 PM
I still don't know create custom tabs ::) , i follow the tutorial, but i can't search some essencial "keywords" .
Can you do it for me? ;)
Here is my index.template.php file from default theme ;)Code Select<?php
// Version: 1.1; Display
function template_main()
{
global $context, $settings, $options, $txt, $scripturl, $modSettings;
//Display ads on the thread page
if (function_exists("show_threadAds"))
{
$ads = show_threadAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}
//Display ads on the thread page
if (function_exists("show_threadAds"))
{
$ads = show_threadAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}
// Show the anchor for the top and for the first message. If the first message is new, say so.
echo '
<a name="top"></a>
<a name="msg', $context['first_message'], '"></a>', $context['first_new_message'] ? '<a name="new"></a>' : '';
// Show the linktree
echo '
<div>', theme_linktree(), '</div>';
// Is this topic also a poll?
if ($context['is_poll'])
{
echo '
<table cellpadding="3" cellspacing="0" border="0" width="100%" class="tborder" style="padding-top: 0; margin-bottom: 2ex;">
<tr>
<td class="titlebg" colspan="2" valign="middle" style="padding-left: 6px;">
<img src="', $settings['images_url'], '/topic/', $context['poll']['is_locked'] ? 'normal_poll_locked' : 'normal_poll', '.gif" alt="" align="bottom" /> ', $txt['smf43'], '
</td>
</tr>
<tr>
<td width="5%" valign="top" class="windowbg"><b>', $txt['smf21'], ':</b></td>
<td class="windowbg">
', $context['poll']['question'];
if (!empty($context['poll']['expire_time']))
echo '
(', ($context['poll']['is_expired'] ? $txt['poll_expired_on'] : $txt['poll_expires_on']), ': ', $context['poll']['expire_time'], ')';
// Are they not allowed to vote but allowed to view the options?
if ($context['poll']['show_results'] || !$context['allow_vote'])
{
echo '
<table>
<tr>
<td style="padding-top: 2ex;">
<table border="0" cellpadding="0" cellspacing="0">';
// Show each option with its corresponding percentage bar.
foreach ($context['poll']['options'] as $option)
echo '
<tr>
<td style="padding-right: 2ex;', $option['voted_this'] ? 'font-weight: bold;' : '', '">', $option['option'], '</td>', $context['allow_poll_view'] ? '
<td nowrap="nowrap">' . $option['bar'] . ' ' . $option['votes'] . ' (' . $option['percent'] . '%)</td>' : '', '
</tr>';
echo '
</table>
</td>
<td valign="bottom" style="padding-left: 15px;">';
// If they are allowed to revote - show them a link!
if ($context['allow_change_vote'])
echo '
<a href="', $scripturl, '?action=vote;topic=', $context['current_topic'], '.', $context['start'], ';poll=', $context['poll']['id'], ';sesc=', $context['session_id'], '">', $txt['poll_change_vote'], '</a><br />';
// If we're viewing the results... maybe we want to go back and vote?
if ($context['poll']['show_results'] && $context['allow_vote'])
echo '
<a href="', $scripturl, '?topic=', $context['current_topic'], '.', $context['start'], '">', $txt['poll_return_vote'], '</a><br />';
// If they're allowed to lock the poll, show a link!
if ($context['poll']['lock'])
echo '
<a href="', $scripturl, '?action=lockVoting;topic=', $context['current_topic'], '.', $context['start'], ';sesc=', $context['session_id'], '">', !$context['poll']['is_locked'] ? $txt['smf30'] : $txt['smf30b'], '</a><br />';
// If they're allowed to edit the poll... guess what... show a link!
if ($context['poll']['edit'])
echo '
<a href="', $scripturl, '?action=editpoll;topic=', $context['current_topic'], '.', $context['start'], '">', $txt['smf39'], '</a>';
echo '
</td>
</tr>', $context['allow_poll_view'] ? '
<tr>
<td colspan="2"><b>' . $txt['smf24'] . ': ' . $context['poll']['total_votes'] . '</b></td>
</tr>' : '', '
</table><br />';
}
// They are allowed to vote! Go to it!
else
{
echo '
<form action="', $scripturl, '?action=vote;topic=', $context['current_topic'], '.', $context['start'], ';poll=', $context['poll']['id'], '" method="post" accept-charset="', $context['character_set'], '" style="margin: 0px;">
<table>
<tr>
<td colspan="2">';
// Show a warning if they are allowed more than one option.
if ($context['poll']['allowed_warning'])
echo '
', $context['poll']['allowed_warning'], '
</td>
</tr><tr>
<td>';
// Show each option with its button - a radio likely.
foreach ($context['poll']['options'] as $option)
echo '
', $option['vote_button'], ' ', $option['option'], '<br />';
echo '
</td>
<td valign="bottom" style="padding-left: 15px;">';
// Allowed to view the results? (without voting!)
if ($context['allow_poll_view'])
echo '
<a href="', $scripturl, '?topic=', $context['current_topic'], '.', $context['start'], ';viewResults">', $txt['smf29'], '</a><br />';
// Show a link for locking the poll as well...
if ($context['poll']['lock'])
echo '
<a href="', $scripturl, '?action=lockVoting;topic=', $context['current_topic'], '.', $context['start'], ';sesc=', $context['session_id'], '">', (!$context['poll']['is_locked'] ? $txt['smf30'] : $txt['smf30b']), '</a><br />';
// Want to edit it? Click right here......
if ($context['poll']['edit'])
echo '
<a href="', $scripturl, '?action=editpoll;topic=', $context['current_topic'], '.', $context['start'], '">', $txt['smf39'], '</a>';
echo '
</td>
</tr><tr>
<td colspan="2"><input type="submit" value="', $txt['smf23'], '" /></td>
</tr>
</table>
<input type="hidden" name="sc" value="', $context['session_id'], '" />
</form>';
}
echo '
</td>
</tr>
</table>';
}
// Does this topic have some events linked to it?
if (!empty($context['linked_calendar_events']))
{
echo '
<table cellpadding="3" cellspacing="0" border="0" width="100%" class="tborder" style="padding-top: 0; margin-bottom: 3ex;">
<tr>
<td class="titlebg" valign="middle" align="left" style="padding-left: 6px;">
', $txt['calendar_linked_events'], '
</td>
</tr>
<tr>
<td width="5%" valign="top" class="windowbg">
<ul>';
foreach ($context['linked_calendar_events'] as $event)
echo '
<li>
', ($event['can_edit'] ? '<a href="' . $event['modify_href'] . '" style="color: red;">*</a> ' : ''), '<b>', $event['title'], '</b>: ', $event['start_date'], ($event['start_date'] != $event['end_date'] ? ' - ' . $event['end_date'] : ''), '
</li>';
echo '
</ul>
</td>
</tr>
</table>';
}
// Build the normal button array.
$normal_buttons = array(
'reply' => array('test' => 'can_reply', 'text' => 146, 'image' => 'reply.gif', 'lang' => true, 'url' => $scripturl . '?action=post;topic=' . $context['current_topic'] . '.' . $context['start'] . ';num_replies=' . $context['num_replies']),
'notify' => array('test' => 'can_mark_notify', 'text' => 125, 'image' => 'notify.gif', 'lang' => true, 'custom' => 'onclick="return confirm('' . ($context['is_marked_notify'] ? $txt['notification_disable_topic'] : $txt['notification_enable_topic']) . '');"', 'url' => $scripturl . '?action=notify;sa=' . ($context['is_marked_notify'] ? 'off' : 'on') . ';topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id']),
'custom' => array(),
'send' => array('test' => 'can_send_topic', 'text' => 707, 'image' => 'sendtopic.gif', 'lang' => true, 'url' => $scripturl . '?action=sendtopic;topic=' . $context['current_topic'] . '.0'),
'print' => array('text' => 465, 'image' => 'print.gif', 'lang' => true, 'custom' => 'target="_blank"', 'url' => $scripturl . '?action=printpage;topic=' . $context['current_topic'] . '.0'),
);
// Special case for the custom one.
if ($context['user']['is_logged'] && $settings['show_mark_read'])
$normal_buttons['custom'] = array('text' => 'mark_unread', 'image' => 'markunread.gif', 'lang' => true, 'url' => $scripturl . '?action=markasread;sa=topic;t=' . $context['mark_unread_time'] . ';topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id']);
elseif ($context['can_add_poll'])
$normal_buttons['custom'] = array('text' => 'add_poll', 'image' => 'add_poll.gif', 'lang' => true, 'url' => $scripturl . '?action=editpoll;add;topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id']);
else
unset($normal_buttons['custom']);
// Make Article Button
if ($context['can_make_article'])
$normal_buttons['article'] = array('text' => 'sp-make_article', 'image' => 'addarticle.gif', 'lang' => true, 'url' => $scripturl . '?sa=addarticle;message=' . $context['topic_first_message'] . ';return=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id']);
// Show the page index... "Pages: [1]".
echo '
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="middletext" valign="bottom" style="padding-bottom: 4px;">', $txt[139], ': ', $context['page_index'], !empty($modSettings['topbottomEnable']) ? $context['menu_separator'] . ' <a href="#lastPost"><b>' . $txt['topbottom5'] . '</b></a>' : '', '</td>
<td align="right" style="padding-right: 1ex;">
<div class="nav" style="margin-bottom: 2px;"> ', $context['previous_next'], '</div>
<table cellpadding="0" cellspacing="0">
<tr>
', template_button_strip($normal_buttons, 'bottom'), '
</tr>
</table>
</td>
</tr>
</table>';
// Show the topic information - icon, subject, etc.
echo '
<table width="100%" cellpadding="3" cellspacing="0" border="0" class="tborder" style="border-bottom: 0;">
<tr class="catbg3">
<td valign="middle" width="2%" style="padding-left: 6px;">
<img src="', $settings['images_url'], '/topic/', $context['class'], '.gif" align="bottom" alt="" />
</td>
<td width="13%"> ', $txt[29], '</td>
<td valign="middle" width="85%" style="padding-left: 6px;" id="top_subject">
', $txt[118], ': ', $context['subject'], ' (', $txt[641], ' ', $context['num_views'], ' ', $txt[642], ')
</td>
</tr>';
if (!empty($settings['display_who_viewing']))
{
echo '
<tr>
<td colspan="3" class="smalltext">';
// Show just numbers...?
if ($settings['display_who_viewing'] == 1)
echo count($context['view_members']), ' ', count($context['view_members']) == 1 ? $txt['who_member'] : $txt[19];
// Or show the actual people viewing the topic?
else
echo empty($context['view_members_list']) ? '0 ' . $txt[19] : implode(', ', $context['view_members_list']) . ((empty($context['view_num_hidden']) || $context['can_moderate_forum']) ? '' : ' (+ ' . $context['view_num_hidden'] . ' ' . $txt['hidden'] . ')');
// Now show how many guests are here too.
echo $txt['who_and'], $context['view_num_guests'], ' ', $context['view_num_guests'] == 1 ? $txt['guest'] : $txt['guests'], $txt['who_viewing_topic'], '
</td>
</tr>';
}
echo '
</table>';
echo '
<form action="', $scripturl, '?action=quickmod2;topic=', $context['current_topic'], '.', $context['start'], '" method="post" accept-charset="', $context['character_set'], '" name="quickModForm" id="quickModForm" style="margin: 0;" onsubmit="return in_edit_mode == 1 ? modify_save('' . $context['session_id'] . '') : confirm('' . $txt['quickmod_confirm'] . '');">';
// These are some cache image buttons we may want.
$reply_button = create_button('quote.gif', 145, 'smf240', 'align="middle"');
$modify_button = create_button('modify.gif', 66, 17, 'align="middle"');
$remove_button = create_button('delete.gif', 121, 31, 'align="middle"');
$split_button = create_button('split.gif', 'smf251', 'smf251', 'align="middle"');
// Time to display all the posts
echo '
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="bordercolor">';
//Ad Counter
$adcounter =0;
//Ad Counter
$adcounter =0;
// Get all the messages...
while ($message = $context['get_message']())
{
$adcounter++;
$adcounter++;
echo '
<tr><td style="padding: 1px 1px 0 1px;">';
// Show the message anchor and a "new" anchor if this message is new.
if ($message['id'] != $context['first_message'])
echo '
<a name="msg', $message['id'], '"></a>', $message['first_new'] ? '<a name="new"></a>' : '';
echo '
<table width="100%" cellpadding="3" cellspacing="0" border="0">
<tr><td class="', $message['alternate'] == 0 ? 'windowbg' : 'windowbg2', '">';
// Show information about the poster of this message.
echo '
<table width="100%" cellpadding="5" cellspacing="0" style="table-layout: fixed;">
<tr>
<td valign="top" width="16%" rowspan="2" style="overflow: hidden;">
<b>', $message['member']['link'], '</b>
<div class="smalltext">';
// Show the member's custom title, if they have one.
if (isset($message['member']['title']) && $message['member']['title'] != '')
echo '
', $message['member']['title'], '<br />';
// Show the member's primary group (like 'Administrator') if they have one.
if (isset($message['member']['group']) && $message['member']['group'] != '')
echo '
', $message['member']['group'], '<br />';
// Don't show these things for guests.
if (!$message['member']['is_guest'])
{
// Show the post group if and only if they have no other group or the option is on, and they are in a post group.
if ((empty($settings['hide_post_group']) || $message['member']['group'] == '') && $message['member']['post_group'] != '')
echo '
', $message['member']['post_group'], '<br />';
echo '
', $message['member']['group_stars'], '<br />';
// Is karma display enabled? Total or +/-?
if ($modSettings['karmaMode'] == '1')
echo '
<br />
', $modSettings['karmaLabel'], ' ', $message['member']['karma']['good'] - $message['member']['karma']['bad'], '<br />';
elseif ($modSettings['karmaMode'] == '2')
echo '
<br />
', $modSettings['karmaLabel'], ' +', $message['member']['karma']['good'], '/-', $message['member']['karma']['bad'], '<br />';
// Is this user allowed to modify this member's karma?
if ($message['member']['karma']['allow'])
echo '
<a href="', $scripturl, '?action=modifykarma;sa=applaud;uid=', $message['member']['id'], ';topic=', $context['current_topic'], '.' . $context['start'], ';m=', $message['id'], ';sesc=', $context['session_id'], '">', $modSettings['karmaApplaudLabel'], '</a>
<a href="', $scripturl, '?action=modifykarma;sa=smite;uid=', $message['member']['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';m=', $message['id'], ';sesc=', $context['session_id'], '">', $modSettings['karmaSmiteLabel'], '</a><br />';
// Show online and offline buttons?
if (!empty($modSettings['onlineEnable']) && !$message['member']['is_guest'])
echo '
', $context['can_send_pm'] ? '<a href="' . $message['member']['online']['href'] . '" title="' . $message['member']['online']['label'] . '">' : '', $settings['use_image_buttons'] ? '<img src="' . $message['member']['online']['image_href'] . '" alt="' . $message['member']['online']['text'] . '" border="0" style="margin-top: 2px;" />' : $message['member']['online']['text'], $context['can_send_pm'] ? '</a>' : '', $settings['use_image_buttons'] ? '<span class="smalltext"> ' . $message['member']['online']['text'] . '</span>' : '', '<br /><br />';
// Show the member's gender icon?
if (!empty($settings['show_gender']) && $message['member']['gender']['image'] != '')
echo '
', $txt[231], ': ', $message['member']['gender']['image'], '<br />';
// Show how many posts they have made.
// echo '
// ', $txt[26], ': ', $message['member']['posts'], '<br />
// <br />';
// BEGIN SMFShop MOD New Version Code
// Removed one <br /> from end of post count line.
echo '
', $txt[26], ': ', $message['member']['posts'], '<br />
';
echo '
', $modSettings['shopCurrencyPrefix'], $message['member']['money'], $modSettings['shopCurrencySuffix'], '<br /><br />
<a href="', $scripturl, '?action=shop;do=invother2;member=', $message['member']['username'], '">View Inventory</a><br />
<a href="', $scripturl, '?action=shop;do=sendmoney;member=', $message['member']['username'], '">Send Money to ', $message['member']['name'], '</a><br />';
//END SMFShop code
// Show avatars, images, etc.?
if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']))
echo '
<div style="overflow: auto; width: 100%;">', $message['member']['avatar']['image'], '</div><br />';
// Show their personal text?
if (!empty($settings['show_blurb']) && $message['member']['blurb'] != '')
echo '
', $message['member']['blurb'], '<br />
<br />';
// This shows the popular messaging icons.
echo '
', $message['member']['icq']['link'], '
', $message['member']['msn']['link'], '
', $message['member']['aim']['link'], '
', $message['member']['yim']['link'], '<br />';
// Show the profile, website, email address, and personal message buttons.
if ($settings['show_profile_buttons'])
{
// Don't show the profile button if you're not allowed to view the profile.
if ($message['member']['can_view_profile'])
echo '
<a href="', $message['member']['href'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/icons/profile_sm.gif" alt="' . $txt[27] . '" title="' . $txt[27] . '" border="0" />' : $txt[27]), '</a>';
// Don't show an icon if they haven't specified a website.
if ($message['member']['website']['url'] != '')
echo '
<a href="', $message['member']['website']['url'], '" title="' . $message['member']['website']['title'] . '" target="_blank">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/www_sm.gif" alt="' . $txt[515] . '" border="0" />' : $txt[515]), '</a>';
// Don't show the email address if they want it hidden.
if (empty($message['member']['hide_email']))
echo '
<a href="mailto:', $message['member']['email'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt[69] . '" title="' . $txt[69] . '" border="0" />' : $txt[69]), '</a>';
// Since we know this person isn't a guest, you *can* message them.
if ($context['can_send_pm'])
echo '
<a href="', $scripturl, '?action=pm;sa=send;u=', $message['member']['id'], '" title="', $message['member']['online']['label'], '">', $settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/im_' . ($message['member']['online']['is_online'] ? 'on' : 'off') . '.gif" alt="' . $message['member']['online']['label'] . '" border="0" />' : $message['member']['online']['label'], '</a>';
}
}
// Otherwise, show the guest's email.
elseif (empty($message['member']['hide_email']))
echo '
<br />
<br />
<a href="mailto:', $message['member']['email'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt[69] . '" title="' . $txt[69] . '" border="0" />' : $txt[69]), '</a>';
// Done with the information about the poster... on to the post itself.
echo '
</div>
</td>
<td valign="top" width="85%" height="100%">
<table width="100%" border="0"><tr>
<td valign="middle"><a href="', $message['href'], '"><img src="', $message['icon_url'] . '" alt="" border="0" /></a></td>
<td valign="middle">
<div style="font-weight: bold;" id="subject_', $message['id'], '">
<a href="', $message['href'], '">', $message['subject'], '</a>
</div>';
// If this is the first post, (#0) just say when it was posted - otherwise give the reply #.
echo '
<div class="smalltext">« <b>', !empty($message['counter']) ? $txt[146] . ' #' . $message['counter'] : '', ' ', $txt[30], ':</b> ', $message['time'], ' »</div></td>
<td align="', !$context['right_to_left'] ? 'right' : 'left', '" valign="bottom" height="20" style="font-size: smaller;">';
// Can they reply? Have they turned on quick reply?
if ($context['can_reply'] && !empty($options['display_quick_reply']))
echo '
<a href="', $scripturl, '?action=post;quote=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';num_replies=', $context['num_replies'], ';sesc=', $context['session_id'], '" onclick="doQuote(', $message['id'], ', '', $context['session_id'], ''); return false;">', $reply_button, '</a>';
// So... quick reply is off, but they *can* reply?
elseif ($context['can_reply'])
echo '
<a href="', $scripturl, '?action=post;quote=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';num_replies=', $context['num_replies'], ';sesc=', $context['session_id'], '">', $reply_button, '</a>';
// Can the user modify the contents of this post?
if ($message['can_modify'])
echo '
<a href="', $scripturl, '?action=post;msg=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';sesc=', $context['session_id'], '">', $modify_button, '</a>';
// How about... even... remove it entirely?!
if ($message['can_remove'])
echo '
<a href="', $scripturl, '?action=deletemsg;topic=', $context['current_topic'], '.', $context['start'], ';msg=', $message['id'], ';sesc=', $context['session_id'], '" onclick="return confirm('', $txt[154], '?');">', $remove_button, '</a>';
// What about splitting it off the rest of the topic?
if ($context['can_split'])
echo '
<a href="', $scripturl, '?action=splittopics;topic=', $context['current_topic'], '.0;at=', $message['id'], '">', $split_button, '</a>';
// Show a checkbox for quick moderation?
if (!empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1 && $message['can_remove'])
echo '
<input type="checkbox" name="msgs[]" value="', $message['id'], '" class="check" ', empty($settings['use_tabs']) ? 'onclick="document.getElementById('quickmodSubmit').style.display = '';"' : '', ' />';
// Show the post itself, finally!
echo '
</td>
</tr></table>
<hr width="100%" size="1" class="hrcolor" />
<div class="post"', $message['can_modify'] ? ' id="msg_' . $message['id'] . '"' : '', '>', $message['body'], '</div>', $message['can_modify'] ? '
<img src="' . $settings['images_url'] . '/icons/modify_inline.gif" alt="" align="right" id="modify_button_' . $message['id'] . '" style="cursor: pointer; display: none;" onclick="modify_msg('' . $message['id'] . '', '' . $context['session_id'] . '')" />' : '' , '
</td>
</tr>';
// Now for the attachments, signature, ip logged, etc...
echo '
<tr>
<td valign="bottom" class="smalltext" width="85%">
<table width="100%" border="0" style="table-layout: fixed;"><tr>
<td colspan="2" class="smalltext" width="100%">';
// Assuming there are attachments...
if (!empty($message['attachment']))
{
echo '
<hr width="100%" size="1" class="hrcolor" />
<div style="overflow: auto; width: 100%;">';
foreach ($message['attachment'] as $attachment)
{
if ($attachment['is_image'])
{
if ($attachment['thumbnail']['has_thumb'])
echo '
<a href="', $attachment['href'], ';image" id="link_', $attachment['id'], '" onclick="', $attachment['thumbnail']['javascript'], '"><img src="', $attachment['thumbnail']['href'], '" alt="" id="thumb_', $attachment['id'], '" border="0" /></a><br />';
else
echo '
<img src="' . $attachment['href'] . ';image" alt="" width="' . $attachment['width'] . '" height="' . $attachment['height'] . '" border="0" /><br />';
}
echo '
<a href="' . $attachment['href'] . '"><img src="' . $settings['images_url'] . '/icons/clip.gif" align="middle" alt="*" border="0" /> ' . $attachment['name'] . '</a> (', $attachment['size'], ($attachment['is_image'] ? ', ' . $attachment['real_width'] . 'x' . $attachment['real_height'] . ' - ' . $txt['attach_viewed'] : ' - ' . $txt['attach_downloaded']) . ' ' . $attachment['downloads'] . ' ' . $txt['attach_times'] . '.)<br />';
}
echo '
</div>';
}
echo '
</td>
</tr><tr>
<td valign="bottom" class="smalltext" id="modified_', $message['id'], '">';
// Show "« Last Edit: Time by Person »" if this post was edited.
if ($settings['show_modify'] && !empty($message['modified']['name']))
echo '
« <i>', $txt[211], ': ', $message['modified']['time'], ' ', $txt[525], ' ', $message['modified']['name'], '</i> »';
echo '
</td>
<td align="', !$context['right_to_left'] ? 'right' : 'left', '" valign="bottom" class="smalltext">';
// Maybe they want to report this post to the moderator(s)?
if ($context['can_report_moderator'])
echo '
<a href="', $scripturl, '?action=reporttm;topic=', $context['current_topic'], '.', $message['counter'], ';msg=', $message['id'], '">', $txt['rtm1'], '</a> ';
echo '
<img src="', $settings['images_url'], '/ip.gif" alt="" border="0" />';
// Show the IP to this user for this post - because you can moderate?
if ($context['can_moderate_forum'] && !empty($message['member']['ip']))
echo '
<a href="', $scripturl, '?action=trackip;searchip=', $message['member']['ip'], '">', $message['member']['ip'], '</a> <a href="', $scripturl, '?action=helpadmin;help=see_admin_ip" onclick="return reqWin(this.href);" class="help">(?)</a>';
// Or, should we show it because this is you?
elseif ($message['can_see_ip'])
echo '
<a href="', $scripturl, '?action=helpadmin;help=see_member_ip" onclick="return reqWin(this.href);" class="help">', $message['member']['ip'], '</a>';
// Okay, are you at least logged in? Then we can show something about why IPs are logged...
elseif (!$context['user']['is_guest'])
echo '
<a href="', $scripturl, '?action=helpadmin;help=see_member_ip" onclick="return reqWin(this.href);" class="help">', $txt[511], '</a>';
// Otherwise, you see NOTHING!
else
echo '
', $txt[511];
echo '
</td>
</tr></table>';
// Show the member's signature?
if (!empty($message['member']['signature']) && empty($options['show_no_signatures']))
echo '
<hr width="100%" size="1" class="hrcolor" />
<div class="signature">', $message['member']['signature'], '</div>';
echo '
</td>
</tr>
</table>
</td></tr>
</table>
</td></tr>';
if (function_exists("show_posts"))
{
if ($adpost = show_posts($adcounter))
{
if($modSettings['ads_lookLikePosts'])
{
echo '
<tr><td style="padding: 1px 1px 0 1px;">
<table width="100%" cellpadding="3" cellspacing="0" border="0">
<tr><td class="windowbg3">
<table width="100%" cellpadding="5" cellspacing="0" style="table-layout: fixed;">
<tr>
<td valign="top" width="16%" rowspan="2" style="overflow: hidden;">
<b>', $context['forum_name'], '</b>
<div class="smalltext">
</div>
</td>
<td valign="top" width="85%" height="100%">
<table width="100%" border="0"><tr>
<td valign="middle"><img src="', $message['icon_url'] . '" alt="" border="0" /></td>
<td valign="middle">
<div style="font-weight: bold;" id="subject_', $message['id'], '">
<a href="', $message['href'], '">', $message['subject'], '</a>
</div>
<?php
// Version: 1.1.4; index
/* This template is, perhaps, the most important template in the theme. It
contains the main template layer that displays the header and footer of
the forum, namely with main_above and main_below. It also contains the
menu sub template, which appropriately displays the menu; the init sub
template, which is there to set the theme up; (init can be missing.) and
the linktree sub template, which sorts out the link tree.
The init sub template should load any data and set any hardcoded options.
The main_above sub template is what is shown above the main content, and
should contain anything that should be shown up there.
The main_below sub template, conversely, is shown after the main content.
It should probably contain the copyright statement and some other things.
The linktree sub template should display the link tree, using the data
in the $context['linktree'] variable.
The menu sub template should display all the relevant buttons the user
wants and or needs.
For more information on the templating system, please see the site at:
http://www.simplemachines.org/
*/
// Initialize the template... mainly little settings.
function template_init()
{
global $context, $settings, $options, $txt;
/* Use images from default theme when using templates from the default theme?
if this is 'always', images from the default theme will be used.
if this is 'defaults', images from the default theme will only be used with default templates.
if this is 'never' or isn't set at all, images from the default theme will not be used. */
$settings['use_default_images'] = 'never';
/* What document type definition is being used? (for font size and other issues.)
'xhtml' for an XHTML 1.0 document type definition.
'html' for an HTML 4.01 document type definition. */
$settings['doctype'] = 'xhtml';
/* The version this template/theme is for.
This should probably be the version of SMF it was created for. */
$settings['theme_version'] = '1.1';
/* Set a setting that tells the theme that it can render the tabs. */
$settings['use_tabs'] = true;
/* Use plain buttons - as oppossed to text buttons? */
$settings['use_buttons'] = true;
/* Show sticky and lock status seperate from topic icons? */
$settings['seperate_sticky_lock'] = true;
// Color changer
if(!$context['user']['is_guest'] && isset($_POST['options']['theme_color']))
{
include_once($GLOBALS['sourcedir'] . '/Profile.php');
makeThemeChanges($context['user']['id'], $settings['theme_id']);
$options['theme_color'] = $_POST['options']['theme_color'];
}
elseif ($context['user']['is_guest'])
{
if (isset($_POST['options']['theme_color']))
{
$_SESSION['theme_color'] = $_POST['options']['theme_color'];
$options['theme_color'] = $_SESSION['theme_color'];
}
elseif (isset($_SESSION['theme_color']))
$options['theme_color'] = $_SESSION['theme_color'];
}
}
// The main sub template above the content.
function template_main_above()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;
// Show right to left and the character set for ease of translating.
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"', $context['right_to_left'] ? ' dir="rtl"' : '', '><head>
<meta http-equiv="Content-Type" content="text/html; charset=', $context['character_set'], '" />
<meta name="description" content="', $context['page_title'], '" />', empty($context['robot_no_index']) ? '' : '
<meta name="robots" content="noindex" />', '
<meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />
<script type="text/javascript" src="', $settings['default_theme_url'], '/script.js?fin11"></script>
<script type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "', $settings['theme_url'], '";
var smf_images_url = "', $settings['images_url'], '";
var smf_scripturl = "', $scripturl, '";
var smf_iso_case_folding = ', $context['server']['iso_case_folding'] ? 'true' : 'false', ';
var smf_charset = "', $context['character_set'], '";
// ]]></script>
<title>', $context['page_title'], '</title>';
// Any color set by user?
if (isset($options['theme_color']))
$settings['theme_main_color'] = $options['theme_color'];
// If not set, or if not allowed to set
if(!isset($options['theme_color']) || (isset($settings['allow_color_change']) && $settings['allow_color_change'] == 'no'))
{
// Defaults.
$options['theme_color'] = isset($settings['theme_main_color']) ? $settings['theme_main_color'] : 'blue';
$settings['theme_main_color'] = $options['theme_color'];
}
// The ?fin11 part of this link is just here to make sure browsers don't cache it wrongly.
echo '
<link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/style_' , $settings['theme_main_color'] , '.css?fin11" />
<link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/print.css?fin11" media="print" />
<!--[if IE]>
<style type="text/css">
/* IE hack to emulate the :hover & :focus pseudo-classes
Add the selectors below that required the extra attributes */
.hoverbox { behavior: url("', $settings['theme_url'], '/pseudo-hover.htc"); }
</style>
<![endif]-->';
/* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...)
Thus, in Internet Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.
Note that this is affected by whether IE 6 is in standards compliance mode.. if not, it will also be big.
Standards compliance mode happens when you use xhtml... */
if ($context['browser']['needs_size_fix'])
echo '
<link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/fonts-compat.css" />';
// Show all the relative links, such as help, search, contents, and the like.
echo '
<link rel="help" href="', $scripturl, '?action=help" target="_blank" />
<link rel="search" href="' . $scripturl . '?action=search" />
<link rel="contents" href="', $scripturl, '" />';
// If RSS feeds are enabled, advertise the presence of one.
if (!empty($modSettings['xmlnews_enable']))
echo '
<link rel="alternate" type="application/rss+xml" title="', $context['forum_name'], ' - RSS" href="', $scripturl, '?type=rss;action=.xml" />';
// If we're viewing a topic, these should be the previous and next topics, respectively.
if (!empty($context['current_topic']))
echo '
<link rel="prev" href="', $scripturl, '?topic=', $context['current_topic'], '.0;prev_next=prev" />
<link rel="next" href="', $scripturl, '?topic=', $context['current_topic'], '.0;prev_next=next" />';
// If we're in a board, or a topic for that matter, the index will be the board's index.
if (!empty($context['current_board']))
echo '
<link rel="index" href="' . $scripturl . '?board=' . $context['current_board'] . '.0" />';
// We'll have to use the cookie to remember the header...
if ($context['user']['is_guest'])
$options['collapse_header'] = !empty($_COOKIE['upshrink']);
// Output any remaining HTML headers. (from mods, maybe?)
echo $context['html_headers'], '
<script type="text/javascript"><!-- // --><![CDATA[
var current_header = ', empty($options['collapse_header']) ? 'false' : 'true', ';
function shrinkHeader(mode)
{';
// Guests don't have theme options!!
if ($context['user']['is_guest'])
echo '
document.cookie = "upshrink=" + (mode ? 1 : 0);';
else
echo '
smf_setThemeOption("collapse_header", mode ? 1 : 0, null, "', $context['session_id'], '");';
echo '
document.getElementById("upshrink").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");
document.getElementById("upshrinkHeader").style.display = mode ? "none" : "";
document.getElementById("upshrinkHeader2").style.display = mode ? "none" : "";
current_header = mode;
}
// ]]></script>';
// the routine for the info center upshrink
echo '
<script type="text/javascript"><!-- // --><![CDATA[
var current_header_ic = ', empty($options['collapse_header_ic']) ? 'false' : 'true', ';
function shrinkHeaderIC(mode) {';
if ($context['user']['is_guest'])
echo '
document.cookie = "upshrinkIC=" + (mode ? 1 : 0);';
else
echo '
smf_setThemeOption("collapse_header_ic", mode ? 1 : 0, null, "', $context['session_id'], '");';
echo '
document.getElementById("upshrink_ic").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");
document.getElementById("upshrinkHeaderIC").style.display = mode ? "none" : "";
current_header_ic = mode;
}
// ]]></script>
</head>
<body onload="PreloadFlag = true;">';
//Display ads on the top of the page
if (function_exists("show_topofpageAds"))
{
$ads = show_topofpageAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}
echo '
<table cellspacing="0" cellpadding="0" align="center" style="border:0 none;width:' , (isset($settings['page_div_width']) && !empty($settings['page_div_width'])) ? $settings['page_div_width'] : '100%' , '">
<tr>
<td class="border_left"></td>
<td class="content">
<div class="topbar">
<table cellspacing="0" cellpadding="0" border="0" style="width:100%;">
<tr>
<td id="header_logo" width="1">';
// Show the logo. It'll be either the default image, or one you set in the Theme Settings. The stock logo is logo.gif in the images directory for each color.
if (empty($settings['header_logo_url']))
echo '
<a href="', $scripturl, '" class="topimg"><img src="', $settings['images_url'] . '/'. $settings['theme_main_color'], '/logo.gif" style="margin: 0px;border: 0 none;height: 89px" ', (empty($settings['show_name_near_logo'])) ? 'alt="'.$context['forum_name'].'"' : 'alt=""' ,' title="', $context['forum_name'], '" /></a>';
else echo '
<a href="', $scripturl, '" title="', $context['forum_name'], '" class="topimg"><img src="', $settings['header_logo_url'], '" style="border: 0 none;vertical-align:middle;margin: 0px;" ', (empty($settings['show_name_near_logo'])) ? 'alt="'.$context['forum_name'].'"' : 'alt=""' ,' /></a>';
echo '
</td>';
// Show the name near the logo, if it's wanted.
if (!empty($settings['show_name_near_logo']))
echo '
<td>
<span class="toptitle">', $context['forum_name'], '</span>
</td>';
// If set, show the search box or login box in the header.
if ($context['user']['is_guest'])
echo '
<td id="header_right">
<script type="text/javascript" src="', $settings['default_theme_url'], '/sha1.js"></script>
<form action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '" ', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '><br />
<input class="login_bg" type="text" name="user" alt="',$txt[35],'" title="',$txt[35],'" /><br />
<input class="login_bg" type="password" name="passwrd" maxlength="32" alt="', $txt[36], '" title="', $txt[36], '" /><br />
<input type="hidden" name="cookielength" value="-1" />
<input type="submit" class="login_bg_submit" name="login" value="', $txt[34], '" />
<input type="hidden" name="hash_passwrd" value="" />
</form>
</td>';
echo '
</tr>
</table>
</div>';
// Here we got another bar! This one serves up random news lines, the current time, and those neat little bar peanuts!
echo '
<div style="width: 100%; padding-top: 4px;" id="bg_header_bar">
<table border="0" cellspacing="0" cellpadding="0" style="width: 100%;">
<tr style="vertical-align:middle">';
// Show a random news item? (or you could pick one from news_lines...)
if (!empty($settings['enable_news']))
echo '
<td class="smalltext" style="vertical-align:middle;padding-left:20px; padding-top:0px; padding-bottom:0px;">
<strong>', $txt[102], '</strong>: ', $context['random_news_line'], '
</td>';
echo '
<td class="smalltext" style="vertical-align:middle;text-align:right;padding-right:10px; padding-top:0px; padding-bottom:0px;font-weight:bold">
' , $context['current_time'], '
</td>
</tr>
</table>
</div>';
// Show that lovable template menu.
template_menu();
// Start the contect section.
echo '
<div class="content">';
// Below the menu ads go here, oh boy!
if (function_exists("show_indexAds")) {
$ads = show_indexAds();
if(!empty($ads)) {
echo '
<div class="memberbardiv" align="center">';
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
echo '</div>';
}
unset($ads);
}
// PM box, from Apollo.
if ($context['user']['is_logged'] && $context['allow_pm'] && $context['user']['unread_messages']>=1)
echo '
<div id="pm_new" align="center"><a class="hoverbox" href="', $scripturl, '?action=pm">', $txt[660], ' ', $context['user']['unread_messages'], ' ', $context['user']['unread_messages'] == 1 ? $txt[471] : $txt[153], '. ', $txt[661], ' ', $txt[662], ' ', $txt[663], '</a></div>';
// We start with the member bar. Guests only have a thin bar with the guest greeting and color chooser.
// In the settings, you can also set whether guests/users see a login box/search box here, like in Dilber MC.
// Members have the greeting, color changer, avatar, PM links, new post links, and some warnings.
echo '
<div class="memberbardiv">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td width="20"></td>
<td class="memberbar">';
if($context['user']['is_logged'])
echo '
', $txt['hello_member_ndt'], ' <strong>', $context['user']['name'] , '</strong>';
else
echo $txt['welcome_guest'];
echo '
</td>
<td class="middletext" align="right" valign="top" style="padding-right:10px; padding-left:10px;">
<a style="float:right" href="#" onclick="shrinkHeader(!current_header); return false;"><img id="upshrink" src="', $settings['images_url'], '/', empty($options['collapse_header']) ? 'collapse.gif' : 'expand.gif', '" alt="*" title="', $txt['upshrink_description'], '" style="vertical-align:top" /></a>
</td>
</tr>
<tr id="upshrinkHeader"', empty($options['collapse_header']) ? '' : ' style="display: none;"', '>
<td valign="middle" width="1" style="padding-right:10px; padding-left:10px;">';
// Complicated stuff! If you're logged in and have an avatar, show it. If you're
// logged in and don't have one, show a "No Avatar" avatar based on your color and
// language. Otherwise, show a "Guest" avatar based on your color and language.
if($context['user']['is_logged'])
echo '
', !empty($context['user']['avatar']) ? $context['user']['avatar']['image'] : '<img src="'. $settings['images_url']. '/'. $context['user']['language']. '/'. $settings['theme_main_color']. '/no_avatar.gif" width="80" height="80" alt="" />';
else echo '
<img src="', $settings['images_url'], '/', $context['user']['language'], '/', $settings['theme_main_color'], '/guest_avatar.gif" width="80" height="80" alt="" />';
echo '
</td>
<td class="memberbar">';
// If you're logged in, show PM info and links to new posts.
if($context['user']['is_logged'])
echo '
<br />
<span class="middletext">'
, $context['allow_pm'] ? '<strong>' . $txt[152] . ' <a href="' . $scripturl . '?action=pm">' . $context['user']['messages'] . ' ' . ($context['user']['messages'] != 1 ? $txt[153] : $txt[471]) . '</a>' . $txt['newmessages4'] . ' ' . $context['user']['unread_messages'] . ' ' . ($context['user']['unread_messages'] == 1 ? $txt['newmessages0'] : $txt['newmessages1']).'</strong>' : '<br/>', '.<br/><br/>
» <a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a> <br />
» <a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a><br />
</span>';
echo '
</td>
<td class="middletext" style="text-align:right;vertical-align:top;padding-right:10px; padding-left:10px;">
<br />';
// Are they logged in?
if ($context['user']['is_logged']) {
// Show the total time logged in?
if (!empty($context['user']['total_time_logged_in'])) {
echo '
', $txt['totalTimeLogged1'];
// If days is just zero, don't bother to show it.
if ($context['user']['total_time_logged_in']['days'] > 0)
echo $context['user']['total_time_logged_in']['days'] . $txt['totalTimeLogged2'];
// Same with hours - only show it if it's above zero.
if ($context['user']['total_time_logged_in']['hours'] > 0)
echo $context['user']['total_time_logged_in']['hours'] . $txt['totalTimeLogged3'];
// But, let's always show minutes - Time wasted here: 0 minutes ;).
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
}
// Is the forum in maintenance mode?
if ($context['in_maintenance'] && $context['user']['is_admin'])
echo '
<strong>', $txt[616], '</strong><br />';
// Are there any members waiting for approval?
if (!empty($context['unapproved_members']))
echo '
', $context['unapproved_members'] == 1 ? $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="', $scripturl, '?action=viewmembers;sa=browse;type=approve">', $context['unapproved_members'] == 1 ? $txt['approve_member'] : $context['unapproved_members'] . ' ' . $txt['approve_members'], '</a> ', $txt['approve_members_waiting'], '<br />';
// If searching is allowed, and you can't show the boxes in the header, put it here.
if(!empty($settings['boxes_in_header']) && ($context['allow_search'])) {
echo '
<br />
<form action="', $scripturl, '?action=search2" method="post" accept-charset="', $context['character_set'], '">
<a href="', $scripturl, '?action=search;advanced"><img src="'.$settings['images_url'].'/filter.gif" alt="" /></a>
<input type="text" name="search" value="" />
<input type="submit" name="submit" value="', $txt[182], '" style="vertical-align:top" />
<input type="hidden" name="advanced" value="0" />';
// Search within current topic?
if (!empty($context['current_topic']))
echo '
<input type="hidden" name="topic" value="', $context['current_topic'], '" />';
// If we're on a certain board, limit it to this board ;).
elseif (!empty($context['current_board']))
echo '
<input type="hidden" name="brd[', $context['current_board'], ']" value="', $context['current_board'], '" />';
echo '
</form>';
}
}
// If they're guests, and you can't put the boxes in the header, put them here.
elseif (!empty($settings['boxes_in_header'])) {
echo '
<script type="text/javascript" src="', $settings['default_theme_url'], '/sha1.js"></script>
<form action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '" style="margin: 3px 1ex 1px 0;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>
<input type="text" name="user" size="10" /> <input type="password" name="passwrd" size="10" /><br />
<select name="cookielength">
<option value="60">', $txt['smf53'], '</option>
<option value="1440">', $txt['smf47'], '</option>
<option value="10080">', $txt['smf48'], '</option>
<option value="43200">', $txt['smf49'], '</option>
<option value="-1" selected="selected">', $txt['smf50'], '</option>
</select>
<input type="submit" value="', $txt[34], '" /><br />
<input type="hidden" name="hash_passwrd" value="" />
</form>';
}
echo '
</td>
</tr>
<tr id="upshrinkHeader2"', empty($options['collapse_header']) ? '' : ' style="display: none;"', '>
<td colspan="3" valign="middle" style="padding: 0 10px">';
// color selection box
if(isset($settings['allow_color_change']) && $settings['allow_color_change'] == 'box')
echo '
<div style="float:right">
<form action="', $scripturl, '" method="post" class="smalltext">
<select name="options[theme_color]">
<option value="black"' ,$settings['theme_main_color'] == 'black' ? ' selected="selected"': '', '>',$txt['apollobb_color_black'],'</option>
<option value="blue"' ,$settings['theme_main_color'] == 'blue' ? ' selected="selected"': '', '>',$txt['apollobb_color_blue'],'</option>
<option value="green"' ,$settings['theme_main_color'] == 'green' ? ' selected="selected"': '', '>',$txt['apollobb_color_green'],'</option>
<option value="purple"',$settings['theme_main_color'] == 'purple' ? ' selected="selected"': '', '>',$txt['apollobb_color_purple'],'</option>
<option value="red"' ,$settings['theme_main_color'] == 'red' ? ' selected="selected"': '', '>',$txt['apollobb_color_red'],'</option>
</select>
<input type="submit" name="submit" value="Change" style="width: 11ex;" />
</form>
</div>';
if(isset($settings['allow_color_change']) && $settings['allow_color_change'] == 'bars')
echo '
<div style="float:right;padding-top:5px">
<form action="', $scripturl, '" method="post" class="smalltext">
<input style="border:solid 2px #6C7F93;background:#6C7F93;color:#6C7F93;width:20px;height:20px;font-size:1px" type="submit" value="black" name="options[theme_color]"/>
<input style="border:solid 2px #6699CC;background:#6699CC;color:#6699CC;width:20px;height:20px;font-size:1px" type="submit" value="blue" name="options[theme_color]"/>
<input style="border:solid 2px #4DB45D;background:#4DB45D;color:#4DB45D;width:20px;height:20px;font-size:1px" type="submit" value="green" name="options[theme_color]"/>
<input style="border:solid 2px #A185D6;background:#A185D6;color:#A185D6;width:20px;height:20px;font-size:1px" type="submit" value="purple" name="options[theme_color]"/>
<input style="border:solid 2px #E15050;background:#E15050;color:#E15050;width:20px;height:20px;font-size:1px" type="submit" value="red" name="options[theme_color]"/>
</form>
</div>';
echo '
</td>
</tr>
</table>
</div>';
//Welcome Ads
if (function_exists("show_welcomeAds")) {
$ads = show_welcomeAds();
if(!empty($ads)) {
echo '<div class="memberbardiv" align="center">';
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
echo '</div>';
}
unset($ads);
}
// Extra stuff here.
if(!empty($settings['custom_global_html']))
echo '
<div align="center" style="width: 90%; margin-left: auto; margin-right: auto; margin-top:10px; border: 0px solid;" class="middletext">
', $settings['custom_global_html'], '
</div>';
//Below the menu ads
if (function_exists("show_towerleftAds") && function_exists("show_towerrightAds")) {
//Tower left Ads
$ads = show_towerleftAds();
if(!empty($ads))
echo '<table><tr><td valign="top">', $ads['type']==0 ? $ads['content'] : eval($ads['content']) ,'</td><td width="100%" valign="top">';
unset($ads);
//Tower Right Ads
$ads = show_towerrightAds();
if(!empty($ads))
echo '<table><tr><td width="100%" valign="top">';
unset($ads);
}
// Congrats, we're done! Let's go the content!
}
function template_main_below()
{
global $context, $settings, $options, $scripturl, $txt;
// What?! Done already? Fine, let's get to the footer.
//Close table for towerright ads
if (function_exists("show_towerrightAds") && function_exists("show_towerleftAds") && function_exists("show_bottomAds"))
{
$ads = show_towerrightAds();
if(!empty($ads))
echo '</td><td valign="top">', $ads['type']==0 ? $ads['content'] : eval($ads['content']) ,'</td></tr></table>';
unset($ads);
//Close table for towerleft ads
$ads = show_towerleftAds();
if(!empty($ads))
echo '</td></tr></table>';
unset($ads);
//Show ads on the bottom of the page
$ads = show_bottomAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}
// The following will be used to let the user know that some AJAX process is running
echo '
<div id="ajax_in_progress" class="ajax_in_progress" style="display: none;', $context['browser']['is_ie'] && !$context['browser']['is_ie7'] ? 'position: absolute;' : '', '">', $txt['ajax_in_progress'], '</div>';
// Now we close out the content, and move on to the footers.
echo '
</div>
<div id="footer">
<span class="smalltext">
Theme by <a href="http://www.hvmdesign.com" title="Theme by High Velocity Media Web Design">HVMDesign</a>
and <a href="http://www.dizzytechnology.com">Dizzy Technology</a>';
// Show custom copyright?
if ($settings['custom_copyright']!="")
echo '<br />
',$settings['custom_copyright'];
// Show the load time?
if ($context['show_load_time'])
echo '<br />
', $txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'];
echo '
<br />
</span>
</div><br />
<div id="bg_footer">
<div id="footer_left" class="smalltext">',theme_copyright(),'</div>
<div id="footer_right" class="smalltext">
<a href="http://validator.w3.org/check/referer" title="',$txt['valid_xhtml'],'">', $txt['apollobb_footer_xhtml'],'</a> |
<a href="http://jigsaw.w3.org/css-validator/check/referer" title="', $txt['valid_css'], '">',$txt['apollobb_footer_css'],'</a> |
<a href="http://www.php.net/" title="', $txt['powered_by_php'], '">',$txt['apollobb_footer_php'],'</a> |
<a href="http://www.mysql.com/" title="', $txt['powered_by_mysql'], '">',$txt['apollobb_footer_sql'],'</a>
</div>
</div>
</td>
<td class="border_right"></td>
</tr>
</table>';
// Don't even worry about this stuff. Things do screw up without it, at least I think.
// This is an interesting bug in Internet Explorer AND Safari. Rather annoying, it makes overflows just not tall enough.
if (($context['browser']['is_ie'] && !$context['browser']['is_ie4']) || $context['browser']['is_mac_ie'] || $context['browser']['is_safari'] || $context['browser']['is_firefox'])
{
// The purpose of this code is to fix the height of overflow: auto div blocks, because IE can't figure it out for itself.
echo '
<script type="text/javascript"><!-- // --><![CDATA[';
// Unfortunately, Safari does not have a "getComputedStyle" implementation yet, so we have to just do it to code...
if ($context['browser']['is_safari'])
echo '
window.addEventListener("load", smf_codeFix, false);
function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");
for (var i = 0; i < codeFix.length; i++)
{
if ((codeFix[i].className == "code" || codeFix[i].className == "post" || codeFix[i].className == "signature") && codeFix[i].offsetHeight < 20)
codeFix[i].style.height = (codeFix[i].offsetHeight + 20) + "px";
}
}';
elseif ($context['browser']['is_firefox'])
echo '
window.addEventListener("load", smf_codeFix, false);
function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");
for (var i = 0; i < codeFix.length; i++)
{
if (codeFix[i].className == "code" && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0))
codeFix[i].style.overflow = "scroll";
}
}';
else
echo '
var window_oldOnload = window.onload;
window.onload = smf_codeFix;
function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");
for (var i = codeFix.length - 1; i > 0; i--)
{
if (codeFix[i].currentStyle.overflow == "auto" && (codeFix[i].currentStyle.height == "" || codeFix[i].currentStyle.height == "auto") && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0) && (codeFix[i].offsetHeight != 0 || codeFix[i].className == "code"))
codeFix[i].style.height = (codeFix[i].offsetHeight + 36) + "px";
}
if (window_oldOnload)
{
window_oldOnload();
window_oldOnload = null;
}
}';
echo '
// ]]></script>';
}
echo '
</body>
</html>';
}
// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"...
// Has a nice, cool style from Apollo.
function theme_linktree()
{
global $context, $settings, $options, $txt;
echo '
<table width="100%" cellspacing="1" cellpadding="0" border="0" align="center" class="nav" style="width:100%;margin:2px 0">
<tr>
<td class="nav" style="padding-left:4px" align="left">';
// Each tree item has a URL and name. Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{
// Show something before the link?
if (isset($tree['extra_before']))
echo $tree['extra_before'];
$navcond = '';
// If we're at the last link, make the link discolored.
if ($link_num == count($context['linktree']) -1)
$navcond = 'nav-current';
// Show the link, including a URL if it should have one.
echo '<strong>', $settings['linktree_link'] && isset($tree['url']) ? '<a href="' . $tree['url'] . '" class="nav '.$navcond.'">' . $tree['name'] . '</a>' : $tree['name'], '</strong>';
// Show something after the link...?
if (isset($tree['extra_after']))
echo $tree['extra_after'];
// Don't show a separator for the last one.
if ($link_num != count($context['linktree']) - 1)
echo ' » ';
}
echo '
</td>
</tr>
</table><br />';
}
// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context, $settings, $options, $scripturl, $txt;
// Work out where we currently are.
$current_action = 'home';
if (in_array($context['current_action'], array('admin', 'ban', 'boardrecount', 'cleanperms', 'detailedversion', 'dumpdb', 'featuresettings', 'featuresettings2', 'findmember', 'maintain', 'manageattachments', 'manageboards', 'managecalendar', 'managesearch', 'membergroups', 'modlog', 'news', 'optimizetables', 'packageget', 'packages', 'permissions', 'pgdownload', 'postsettings', 'regcenter', 'repairboards', 'reports', 'serversettings', 'serversettings2', 'smileys', 'viewErrorLog', 'viewmembers')))
$current_action = 'admin';
if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm')))
$current_action = $context['current_action'];
if ($context['current_action'] == 'search2')
$current_action = 'search';
if ($context['current_action'] == 'theme')
$current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' ? 'profile' : 'admin';
// Open up our <div>.
echo'
<div id="bg_nav_links">';
// Show the [home] button.
echo '
<a href="', $scripturl, '" ' , $current_action == 'home' ? 'class="nav_important"' : '' , '>' , $txt[103] , '</a> |';
// Show the [Arcade] button.
echo '
<a href="', $scripturl, '?action=arcade" ' , $current_action == 'arcade' ? 'class="nav_important"' : '' , '>
' , $txt['arcade'] , '</a> |';
echo '
<a href="', $scripturl, '?action=help" ' , $current_action == 'help' ? 'class="nav_important"' : '' , '>' , $txt[119] , '</a> |';
// How about the [search] button?
if ($context['allow_search'])
echo '
<a href="', $scripturl, '?action=search" ' , $current_action == 'search' ? 'class="nav_important"' : '' , '>' , $txt[182] , '</a> |';
// Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])
echo '
<a href="', $scripturl, '?action=admin" ' , $current_action == 'admin' ? 'class="nav_important"' : '' , '>' , $txt[2] , '</a> |';
// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo '
<a href="', $scripturl, '?action=profile" ' , $current_action == 'profile' ? 'class="nav_important"' : '' , '>' , $txt[79] , '</a> |';
// Go to PM center... [pm]
if ($context['user']['is_logged'] && $context['allow_pm'])
echo '
<a href="', $scripturl, '?action=pm" ' , $current_action == 'pm' ? 'class="nav_important"' : '' , '>' , $txt['pm_short'] , ' ('. $context['user']['unread_messages'] . ')' , '</a> |';
// The [calendar]!
if ($context['allow_calendar'])
echo '
<a href="', $scripturl, '?action=calendar" ' , $current_action == 'calendar' ? 'class="nav_important"' : '' , '>' , $txt['calendar24'] , '</a> |';
// the [member] list button
if ($context['allow_memberlist'])
echo '
<a href="', $scripturl, '?action=mlist" ' , $current_action == 'mlist' ? 'class="nav_important"' : '' , '>' , $txt[331] , '</a> |';
// If the user is a guest, show [login] button.
if ($context['user']['is_guest'])
echo '
<a href="', $scripturl, '?action=login" ' , $current_action == 'login' ? 'class="nav_important"' : '' , '>' , $txt[34] , '</a> |';
// If the user is a guest, also show [register] button.
if ($context['user']['is_guest'])
echo '
<a href="', $scripturl, '?action=register" ' , $current_action == 'register' ? 'class="nav_important"' : '' , '>' , $txt[97] , '</a>';
// Otherwise, they might want to [logout]...
if ($context['user']['is_logged'])
echo '
<a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '" ' , $current_action == 'logout' ? 'class="nav_important"' : '' , '>' , $txt[108] , '</a>';
// Dummy place holder, to end things
echo'
</div>';
}
// Generate a strip of buttons.
function template_button_strip($button_strip, $direction = 'top', $force_reset = false, $custom_td = '')
{
global $settings, $buttons, $context, $txt, $scripturl;
// Create the buttons...
foreach ($button_strip as $key => $value)
{
if (isset($value['test']) && empty($context[$value['test']]))
{
unset($button_strip[$key]);
continue;
}
elseif (!isset($buttons[$key]) || $force_reset)
$buttons[$key] = '<a href="' . $value['url'] . '" ' .( isset($value['custom']) ? $value['custom'] : '') . '>' . $txt[$value['text']] . '</a>';
$button_strip[$key] = $buttons[$key];
}
if (empty($button_strip))
return '<td> </td>';
echo '
<td class="', $direction == 'top' ? 'main' : 'main', 'strip_first', '"> </td>
<td class="', $direction == 'top' ? 'main' : 'main', 'strip">', implode(' | ', $button_strip) , '</td>
<td class="', $direction == 'top' ? 'main' : 'main', 'strip_last' , '"> </td>';
}
?>
global $boarddir;
require_once($boarddir . '/SSI.php');
ssi_recentPoll();
// Show the [Arcade] button.
echo '
<a href="', $scripturl, '" ' , $current_action == 'forum' ? 'class="nav_important"' : '' , '>' , $txt['sp-forum'] , '</a> |';
// Show the [Arcade] button.
'login', 'help', 'pm'
'login', 'help', 'pm', 'forum', 'spadmin'
$current_action = 'search';
$current_action = 'search';
if (isset($_GET['board']) || isset($_GET['topic']))
$current_action = 'forum';
if ($context['current_action']=='spadmin')
$current_action = 'admin';
// Positions
$txt['sp-positionLeft'] = 'Left';
$txt['sp-positionMiddleTop'] = 'Middle-Top';
$txt['sp-positionMiddleBottom'] = 'Middle-Bottom';
$txt['sp-positionRight'] = 'Right';
Quote from: [SiNaN] on August 13, 2008, 08:59:19 AM
For blocks:
Probably you've translated text strings, but DO NOT translate the string below:Code Select// Positions
$txt['sp-positionLeft'] = 'Left';
$txt['sp-positionMiddleTop'] = 'Middle-Top';
$txt['sp-positionMiddleBottom'] = 'Middle-Bottom';
$txt['sp-positionRight'] = 'Right';
<a href="', $scripturl, '" ' , $current_action == 'forum' ? 'class="nav_important"' : '' , '>' , $txt['sp-forum'] , '</a> |';
<a href="', $scripturl, '?action=forum" ' , $current_action == 'forum' ? 'class="nav_important"' : '' , '>' , $txt['sp-forum'] , '</a> |';
Quote from: [SiNaN] on August 13, 2008, 09:50:54 AM
Sorry, after you make the changes above;
Find:Code Select<a href="', $scripturl, '" ' , $current_action == 'forum' ? 'class="nav_important"' : '' , '>' , $txt['sp-forum'] , '</a> |';
Replace:Code Select<a href="', $scripturl, '?action=forum" ' , $current_action == 'forum' ? 'class="nav_important"' : '' , '>' , $txt['sp-forum'] , '</a> |';
Quote from: tuguex on August 13, 2008, 01:08:07 PM
SiNaN, now is all 100% with the SPortal =) , i only have 1 question:
**********
Is normal "dot" appear in simple portal?
Dot Postes: 263
Dot Karma: 67
Dot Total de Mensagens: 24
Dot Novas mensagens: 0
Quote from: ccbtimewiz on August 13, 2008, 01:18:05 PMQuote from: tuguex on August 13, 2008, 01:08:07 PM
SiNaN, now is all 100% with the SPortal =) , i only have 1 question:
**********
Is normal "dot" appear in simple portal?
Dot Postes: 263
Dot Karma: 67
Dot Total de Mensagens: 24
Dot Novas mensagens: 0
That should be an image. Make sure the image path is correct.
Quote from: Eliana Tamerin on August 13, 2008, 02:01:12 PM
Image path. That means, the URL to your image.
It should be something like http://yourwebsite.com/forum/Themes/YourTheme/images/dot.gif
If that does not exist, you will need to copy the dot.gif from the /Themes/default/images folder to your custom theme's folder. If it is not in your /Themes/default/images folder, then download the SimplePortal mod package to your computer, unzip the files (DO NOT UPLOAD IT IN THE PACKAGE MANAGER), and extract the dot.gif. Then place the dot.gif in your /Themes/default/images folder via FTP.
How do I use FTP? / What is FTP? (http://docs.simplemachines.org/index.php?topic=480)
Quote from: [SiNaN] on August 14, 2008, 05:02:05 AM
If you activate that, if users will click on a link of article that are shown on index; the article will be shown with a different template.
Quote from: runebergen on August 14, 2008, 02:23:53 PM
Anyone here that also use Ultimate Profile?
That could code two nice codes that I'd love to use from Ultimate Profile, on my Forum fontpage, using the mod Simple Portal
- Most Popular Users
(top 5 with most friends)
- Most Popular Walls
(top 5 with most comments)
Would love that ;) Will try myself.. if I figure it out, I'll let you know.. hehe
SELECT `approved` , `ID_MEMBER`
FROM `radioforum_buddies`
where `approved` = 1
GROUP BY `ID_MEMBER`
ORDER BY `ID_MEMBER` ASC
LIMIT 0 , 5
SELECT COUNT(`approved`) as 'Number',`ID_MEMBER`
FROM `radioforum_buddies`
where `approved` = 1
GROUP BY `ID_MEMBER`
ORDER BY `Number` desc
LIMIT 0 , 5
Quote from: [SiNaN] on August 14, 2008, 03:36:09 AM
This a mod like the ones you've installed. But it doesn't make too much changes on your default files, mostly it uses its own files. What you need to do is, just install the mod without getting any error and create your blocks.
To add; we have built-in blocks for SMF Gallery and SMF Arcade mods.
Quote from: CaptJack on August 14, 2008, 11:50:04 PM
Hi, SiNaN.
Thanks for a great Mod. :)
I'm getting an error maybe someone here could help me with. I don't know much at all about php or databases... or computers. ;D I just know that I get one of these in my error logs everytime someone opens sportal at my site.
---------------------------
http://raptor-poker.com/forum/index.php
2: Invalid argument supplied for foreach()
File: /home/therapto/public_html/raptorpoker/forum/Sources/SPortal.php
Line: 1516
---------------------------
Thanks in advance for any help.
Quote from: runebergen on August 14, 2008, 02:23:53 PM
Anyone here that also use Ultimate Profile?
That could code two nice codes that I'd love to use from Ultimate Profile, on my Forum fontpage, using the mod Simple Portal
Top 5 Most Popular Profiles
(top 5 with most friends)
Top 5 Most Popular Walls
(top 5 with most comments)
Would love that ;) Will try myself.. if I figure it out, I'll let you know.. hehe
<?
/**********************************************************************************
* PopularProfiles.php *
***********************************************************************************
* SMF: Simple Machines Forum *
* =============================================================================== *
**********************************************************************************/
if (!defined('SMF'))
die('Hacking attempt...');
function most_popular_profile() {
// VARIABLES FOR DATABASE - EDIT THIS FOR YOUR DATABASE
$DB_host = "localhost";
$DB_username = "xxxx";
$DB_passowrd ="xxxx";
$DB_name = "xxx";
$SMF_prefix ="smf_";
global $db_prefix,$ID_MEMBER, $user_info, $scripturl;
mysql_connect($DB_host , $DB_username, $DB_passowrd ) or
die("Could not connect: " . mysql_error());
mysql_select_db($DB_name );
$query = 'SELECT COUNT(`approved`) as \'Number\',`ID_MEMBER`'
. ' FROM `'.$SMF_prefix.'buddies`'
. ' where `approved` = 1'
. ' GROUP BY `ID_MEMBER`'
. ' ORDER BY `Number` desc'
. ' LIMIT 0 , 5';
$result = mysql_query($query);
if (!$result) {
echo mysql_error();
exit;
}
if (mysql_num_rows($result) == 0) {
echo "No entries found yet";
exit;
}
echo '<table width="100%">';
while ($row = mysql_fetch_array($result,MYSQL_ASSOC)) {
$ID = $row["ID_MEMBER"];
$sql = 'SELECT `realName` FROM `'.$SMF_prefix.'members` '
. ' where `ID_MEMBER` = '
. $ID
. ' LIMIT 0, 30 ';
$user = mysql_query($sql);
while ($row2 = mysql_fetch_array($user,MYSQL_ASSOC)) {
echo '<tr>';
echo '<td><a href="'.$scripturl.'?action=profile;u='.$ID.'">';
echo $row2["realName"].'</a></td>';
echo '<td style="text-align:right">'.$row["Number"].' buddies</td>';
echo '</tr>';
}
}
echo '</table>';
}
function most_popular_wall() {
// VARIABLES FOR DATABASE - EDIT THIS FOR YOUR DATABASE
$DB_host = "localhost";
$DB_username = "xxxx";
$DB_passowrd ="xxxx";
$DB_name = "xxx";
$SMF_prefix ="smf_";
$sql = 'SELECT COUNT(`COMMENT_MEMBER_ID`) as `Number`,`COMMENT_MEMBER_ID`'
. ' FROM `'.$SMF_prefix.'profile_comments`'
. ' GROUP BY `COMMENT_MEMBER_ID`'
. ' ORDER BY `Number` desc'
. ' LIMIT 0 , 5 ';
$result = mysql_query($sql);
if (!$result) {
echo mysql_error();
exit;
}
if (mysql_num_rows($result) == 0) {
echo "No entries found yet";
exit;
}
echo '<table width="100%">';
while ($row = mysql_fetch_array($result,MYSQL_ASSOC)) {
$ID = $row["COMMENT_MEMBER_ID"];
$sql = 'SELECT `realName` FROM `'.$SMF_prefix.'members` '
. ' where `ID_MEMBER` = '
. $ID
. ' LIMIT 0, 30 ';
$user = mysql_query($sql);
while ($row2 = mysql_fetch_array($user,MYSQL_ASSOC)) {
echo '<tr>';
echo '<td><a href="'.$scripturl.'?action=profile;u='.$ID.'">';
echo $row2["realName"].'</a></td>';
echo '<td style="text-align:right">'.$row["Number"].' comments</td>';
echo '</tr>';
}
}
echo '</table>';
}
?>
include ('Sources/PopularProfiles.php');
echo most_popular_profile() ;
Quote from: runebergen on August 15, 2008, 01:03:06 PM
:)
Quote from: Stock on August 15, 2008, 07:22:12 PM
does anyone know if this is compatible with the tinyportal side bar that goes through the whole site if i turn off all of its portal related functions?
Quote from: dwd2000 on August 14, 2008, 09:09:39 PM
Installed, no errors, but code at the top of the page. Found the answer to that problem within the forums here.
Quote
// SP General $txt['sp-forum'] = 'Forum'; $txt['sp-adminTitle'] = 'SPortal Admin'; $txt['sp-adminCatTitle'] = 'SimplePortal'; $txt['sp-articlesCategory'] = 'Article Category'; $txt['sp-articlesNoCategory'] = 'Do not Publish'; $txt['sp-make_article'] = 'Make Article'; $txt['error_sp_no_message_id'] = 'Invalid message ID.'; $txt['error_sp_article_exists'] = 'Article already exists.'; $txt['error_sp_cannot_add_article'] = 'You don\'t have permission to add article.'; $txt['error_sp_label_empty'] = 'Label is left empty.'; $txt['error_sp_name_empty'] = 'Name is left empty.'; $txt['error_sp_no_category'] = 'There is no article category created.'; // SP Permissions $txt['permissiongroup_sp'] = 'SimplePortal'; $txt['permissionname_sp_moderate'] = 'Moderate portal'; $txt['permissionhelp_sp_moderate'] = 'This permission allows users to access the SimplePortal Admin panel.'; $txt['permissionname_sp_add_article'] = 'Can add article'; $txt['permissionhelp_sp_add_article'] = 'This permission allows users to add articles.'; $txt['permissionname_sp_auto_article_approval'] = 'Auto article approval'; $txt['permissionhelp_sp_auto_article_approval'] = 'This permission allows users to add articles without approval.'; // SP Blocks $txt['sp-userpost'] = 'Posts'; $txt['sp-userkarma'] = 'Karma'; $txt['sp-usertmessage'] = 'Total Messages'; $txt['sp-usernmessage'] = 'New Messages'; $txt['sp-userprofile'] = 'Profile'; $txt['sp-userlogout'] = 'Logout'; $txt['sp-onlineguest'] = 'Online Guests'; $txt['sp-onlineuser'] = 'Online Users'; $txt['sp-onlinehuser'] = 'Hidden Users'; $txt['sp-onlinetuser'] = 'Total Users'; $txt['sp-onlineouser'] = 'Online Users'; $txt['sp-statmember'] = 'Total Members'; $txt['sp-statpost'] = 'Total Posts'; $txt['sp-stattopic'] = 'Total Topics'; $txt['sp-statcategory'] = 'Total Categories'; $txt['sp-statboard'] = 'Total Boards'; $txt['sp-qsearchsearch'] = 'Search'; $txt['sp-tposterpost'] = ' posts'; $txt['sp-tboardname'] = 'Board'; $txt['sp-tboardpost'] = 'Posts'; $txt['sp-ttopicname'] = 'Topic'; $txt['sp-ttopicpost'] = 'Posts'; $txt['sp-grpictureviews'] = 'Views:'; $txt['sp-grpicturesender'] = 'By:'; $txt['sp-grpictureguest'] = 'Guest'; $txt['sp-arcadeplay'] = 'The Top Players'; $t
Quote from: grammaton on August 16, 2008, 10:49:53 AM
Hi @ll,
i am using SimpelPortal v.1.2 for some time now, and i have some strange errors in the errorlog.
For each user online at that time the following error message appears a few times in a row:
http://myhomepage/myforum/index.php
8: Undefined index: 180
Datei: /var/www/forum/Sources/SPortal.php
Zeile: 585
and after that it shows this message .. also a few times
http://myhomepage/myforum/index.php
8: Undefined index: 180
Datei: /var/www/forum/Sources/SPortal.php
Zeile: 484
I have looked into the code and found out that this has something to do with the show recent posts and show recent topics functions of the portal.
I couldnt reproduce the error .. usually it shows up every couple of days.
Would be nice if sbdy could help me with this. :)
Quote from: pradius on August 16, 2008, 05:52:08 PMQuote from: dwd2000 on August 14, 2008, 09:09:39 PM
Installed, no errors, but code at the top of the page. Found the answer to that problem within the forums here.
I am having the same problem with the code at the top. What is the answer you found to remedy this problem? Anyone?
this is what its showing at the top of my forum after I install.Quote
// SP General $txt['sp-forum'] = 'Forum'; $txt['sp-adminTitle'] = 'SPortal Admin'; $txt['sp-adminCatTitle'] = 'SimplePortal'; $txt['sp-articlesCategory'] = 'Article Category'; $txt['sp-articlesNoCategory'] = 'Do not Publish'; $txt['sp-make_article'] = 'Make Article'; $txt['error_sp_no_message_id'] = 'Invalid message ID.'; $txt['error_sp_article_exists'] = 'Article already exists.'; $txt['error_sp_cannot_add_article'] = 'You don\'t have permission to add article.'; $txt['error_sp_label_empty'] = 'Label is left empty.'; $txt['error_sp_name_empty'] = 'Name is left empty.'; $txt['error_sp_no_category'] = 'There is no article category created.'; // SP Permissions $txt['permissiongroup_sp'] = 'SimplePortal'; $txt['permissionname_sp_moderate'] = 'Moderate portal'; $txt['permissionhelp_sp_moderate'] = 'This permission allows users to access the SimplePortal Admin panel.'; $txt['permissionname_sp_add_article'] = 'Can add article'; $txt['permissionhelp_sp_add_article'] = 'This permission allows users to add articles.'; $txt['permissionname_sp_auto_article_approval'] = 'Auto article approval'; $txt['permissionhelp_sp_auto_article_approval'] = 'This permission allows users to add articles without approval.'; // SP Blocks $txt['sp-userpost'] = 'Posts'; $txt['sp-userkarma'] = 'Karma'; $txt['sp-usertmessage'] = 'Total Messages'; $txt['sp-usernmessage'] = 'New Messages'; $txt['sp-userprofile'] = 'Profile'; $txt['sp-userlogout'] = 'Logout'; $txt['sp-onlineguest'] = 'Online Guests'; $txt['sp-onlineuser'] = 'Online Users'; $txt['sp-onlinehuser'] = 'Hidden Users'; $txt['sp-onlinetuser'] = 'Total Users'; $txt['sp-onlineouser'] = 'Online Users'; $txt['sp-statmember'] = 'Total Members'; $txt['sp-statpost'] = 'Total Posts'; $txt['sp-stattopic'] = 'Total Topics'; $txt['sp-statcategory'] = 'Total Categories'; $txt['sp-statboard'] = 'Total Boards'; $txt['sp-qsearchsearch'] = 'Search'; $txt['sp-tposterpost'] = ' posts'; $txt['sp-tboardname'] = 'Board'; $txt['sp-tboardpost'] = 'Posts'; $txt['sp-ttopicname'] = 'Topic'; $txt['sp-ttopicpost'] = 'Posts'; $txt['sp-grpictureviews'] = 'Views:'; $txt['sp-grpicturesender'] = 'By:'; $txt['sp-grpictureguest'] = 'Guest'; $txt['sp-arcadeplay'] = 'The Top Players'; $t
Quote from: CaptJack on August 14, 2008, 11:50:04 PM
Hi, SiNaN.
Thanks for a great Mod. :)
I'm getting an error maybe someone here could help me with. I don't know much at all about php or databases... or computers. ;D I just know that I get one of these in my error logs everytime someone opens sportal at my site.
---------------------------
http://raptor-poker.com/forum/index.php
2: Invalid argument supplied for foreach()
File: /home/therapto/public_html/raptorpoker/forum/Sources/SPortal.php
Line: 1516
---------------------------
Thanks in advance for any help.
Quote from: Eliana Tamerin on August 16, 2008, 07:32:17 PM
Open your /Themes/default/Languages/Modifications.english.php file and ensure that the ?> is at the end of the file on its own line. If not, move it there.
Quote from: pradius on August 16, 2008, 09:51:26 PMQuote from: Eliana Tamerin on August 16, 2008, 07:32:17 PM
Open your /Themes/default/Languages/Modifications.english.php file and ensure that the ?> is at the end of the file on its own line. If not, move it there.
That fixed it alright! Thanks much!
Now onto my final beef with this mod. I don't want your name and link at the bottom of my forum Mr SiNaN, you sneaky little so and so. SMF's copyright is more then enough without throwing your little link of love under it. Does anyone know how to remove this link from under the copyright? Thanks.
Quote from: pradius on August 16, 2008, 09:51:26 PMQuote from: Eliana Tamerin on August 16, 2008, 07:32:17 PM
Open your /Themes/default/Languages/Modifications.english.php file and ensure that the ?> is at the end of the file on its own line. If not, move it there.
That fixed it alright! Thanks much!
Now onto my final beef with this mod. I don't want your name and link at the bottom of my forum Mr SiNaN, you sneaky little so and so. SMF's copyright is more then enough without throwing your little link of love under it. Does anyone know how to remove this link from under the copyright? Thanks.
Quote from: Eliana Tamerin on August 17, 2008, 12:43:15 AM
We now celebrate the release of SimplePortal 2.0.4. Yep, the release of 2.0.3 was quickly proceeded by the next version, that we didn't even have time to announce it!
The package includes an update if you're still using SimplePortal 2.0, 2.0.1, 2.0.2, or 2.0.3. Remember, if you're still using SimplePortal 1.x, you will need to uninstall that package before installing the 2.0.4 package.
In this release, we have a great number of bug fixes. Here they are:
! Left and Right block side width settings
! All block position comment typos
! Load.php portal theme bug
! SSI copyright bug
! Recent Topics width in IE
! Recent Posts width in IE
! Recent Topics icon
! Recent Posts icon
! Board News icon
! Articles block XHTML error
! User info function Karma type
! 3 SP Admin template bugs
! BoardIndex category bug
! Recent category bug
! Member Color Link bugs
! Arcade function foreach check
! MessageIcon check fix
+ Always load SPortal language
+ Block permissions
+ Force block field (not feature)
* Language strings removed in block call
Quote from: Eliana Tamerin on August 17, 2008, 06:19:32 AM
Maybe it'd be a good idea to package your edits so that you can reapply them on every update. I can help you do that if you show me what you edited.
Quote from: LHVWB on August 17, 2008, 06:25:10 AM
@asudhakar,
Updating between versions, is included in each new version of the mod. ;)
Installing this package will perform the following actions:
Type Action Description
1. Execute Modification ./Sources/BoardIndex.php Test failed
2. Execute Modification ./Sources/Load.php Test successful
3. Execute Modification ./Sources/Recent.php Test successful
4. Execute Modification ./Sources/SPortal.php Test successful
5. Execute Modification ./Sources/SPortalAdmin.php Test successful
6. Execute Modification ./Themes/default/SPortalAdmin.template.php Test successful
7. Execute Modification ./Sources/Subs.php Test successful
8. Execute Modification ./Sources/Subs-SPortal.php Test successful
9. Execute Modification ./Themes/default/SPortal.template.php Test successful
10. Execute Modification ./Themes/default/SPortalAdmin.template.php Test successful
11. Execute Modification ./Themes/default/languages/SPortal.english.php Test successful
12. Execute Modification ./Themes/default/languages/SPortal.english-utf8.php Skipping file
13. Execute Modification ./Sources/Post.php Test successful
14. Execute Modification ./Themes/default/Post.template.php Test failed
15. Execute Modification ./Sources/Subs-Post.php Test successful
16. Execute Code upgrade02.php
17. Execute Modification ./Sources/SPortal.php Test successful
18. Extract File ./Themes/default/languages/SPortal.english-utf8.php
// Show the [forum] button.
echo ($current_action=='forum' || $context['browser']['is_ie4']) ? '<td class="maintab_active_first"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action=='forum' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=forum">'.$txt['sp-forum'].'</a>
</td>' , $current_action=='forum' ? '<td class="maintab_active_last"> </td>' : '';
// Show the [forum] button.
echo ($current_action=='forum' || $context['browser']['is_ie4']) ? '<td class="maintab_active_first"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action=='forum' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=forum">'.$txt['sp-forum'].'</a>
</td>' , $current_action=='forum' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
Quote from: tuguex on August 17, 2008, 09:14:00 AM
SPortal from 2.0.2 to 2.0.4 I need to unistall it 1st ?
Quote from: caniol52 on August 17, 2008, 12:50:50 PM
Someone might want to look into this.
// Show the [forum] button.
echo ($current_action == 'forum' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td align="center" class="menubg' , $current_action == 'forum' ? '2' : '' , '">
<a href="', $scripturl, '?action=forum">Forum</a>
</td>' , $current_action == 'forum' ? '<td class="menubg' . $last . '"> </td>' : '';
Quote from: redindian on August 17, 2008, 01:03:40 PM
how to integrated "simple portal" with "flash chat"
i just want to load my flashchat in one of block in simple portal.
Quote from: [SiNaN] on August 17, 2008, 02:08:10 PM
caniol52:
I also installed the latest version on a fresh SMF 1.1.5. I never had a problem with "Forum" button until this time and again on this installation, it was fine for me. is the HTML entity used for "space" character, so there is no difference. What was the error you were getting actually? Maybe you post a screen shot?
Quote
I also never had an avatar problem cause of SP and again this time all three avatar update methods worked perfect for me. Also note that, SP does not make any change related to avatars. Are you sure that you didn't had that problem before installing SP?
Quote1. Execute Modification ./Sources/BoardIndex.php Test failed
3. Execute Modification ./Sources/Recent.php Test failed
4. Execute Modification ./Sources/SPortal.php Test failed
14. Execute Modification ./Themes/default/Post.template.php Test failed
Quote1. Execute Modification ./Sources/BoardIndex.php Test failed
3. Execute Modification ./Sources/Recent.php Test failed
Quote4. Execute Modification ./Sources/SPortal.php Test failed
Quote14. Execute Modification ./Themes/default/Post.template.php Test failed
Quote from: [SiNaN] on August 17, 2008, 03:56:02 PMQuote14. Execute Modification ./Themes/default/Post.template.php Test failed
Maybe try making changes in this file manually. Or just attach and I'll do it for you.
</tr>';
if(!empty($context['list_categories'])) {
echo '
<tr>
<td align="right" style="font-weight: bold;">', $txt['sp-articlesCategory'], ':</th>
<td align="left">
<select id="article_category" name="article_category">
<option value"">', $txt['sp-articlesNoCategory'], '</option>';
foreach($context['list_categories'] as $category) {
echo '
<option value="' . $category['id'] . '" >' . $category['name'] . '</option>';
}
echo '
</select>
</td>
</tr>';
}
echo '
<tr>
<td align="right">
<b>', $txt[71], ':</b>
</tr>
<tr>
<td align="right">
<b>', $txt[71], ':</b>
</tr>
<tr>
<td align="right">
<b>', $txt[71], ':</b>
Quote from: [SiNaN] on August 17, 2008, 03:56:02 PMQuote4. Execute Modification ./Sources/SPortal.php Test failedThis could be because of some fixes too. Just replace it with the one in the package.
Quote from: [SiNaN] on August 17, 2008, 03:56:02 PM
I don't want one of my best user having problem. :)
Quote from: [SiNaN] on August 17, 2008, 03:56:02 PMQuote
BTW, we fixed the error caniol52 getting, luckily it was just a manual install typo, not a bug.
SiNaN is the Best!!! What great support!!!
Quote from: [SiNaN] on August 17, 2008, 04:23:30 PM
Last; both of your files looks okay. But do you have any problems with collapse boards?
Find: [Select]
'href' => $scripturl . '#' . $row_board['ID_CAT'],
Replace With: [Select]
'href' => $scripturl . '?action=forum#' . $row_board['ID_CAT'],
// Run through the categories and boards....
$context['categories'] = array();
while ($row_board = mysql_fetch_assoc($result_boards))
{
// Haven't set this category yet.
if (empty($context['categories'][$row_board['ID_CAT']]))
{
$context['categories'][$row_board['ID_CAT']] = array(
'id' => $row_board['ID_CAT'],
'name' => $row_board['catName'],
'is_collapsed' => isset($row_board['canCollapse']) && $row_board['canCollapse'] == 1 && $row_board['isCollapsed'] > 0,
'can_collapse' => isset($row_board['canCollapse']) && $row_board['canCollapse'] == 1,
'collapse_href' => isset($row_board['canCollapse']) ? $scripturl . '?action=collapse;c=' . $row_board['ID_CAT'] . ';sa=' . ($row_board['isCollapsed'] > 0 ? 'expand' : 'collapse;') . '#' . $row_board['ID_CAT'] : '',
'collapse_image' => isset($row_board['canCollapse']) ? '<img src="' . $settings['images_url'] . '/' . ($row_board['isCollapsed'] > 0 ? 'expand.gif" alt="+"' : 'collapse.gif" alt="-"') . ' border="0" />' : '',
'href' => $scripturl . '?' . (!empty($context['TPortal']) ? 'action=forum;' : '') . 'c=' . $row_board['ID_CAT'],
'boards' => array(),
'new' => false
);
// Single Category Mod Edited This.
$context['categories'][$row_board['ID_CAT']]['link'] = '<a name="' . $row_board['ID_CAT'] . '" href="' . $context['categories'][$row_board['ID_CAT']]['href'] . '">' . $row_board['catName'] . '</a>';
// Single Category Mod
if(isset($context['single_cats']) && !is_array($_REQUEST['c']))
$context['linktree'][] = array(
'url' => $scripturl . '?' . (!empty($context['TPortal']) ? 'action=forum;' : '') . 'c=' . $row_board['ID_CAT'],
'name' => $row_board['catName']);
else
{
if(!isset($temp))
$temp = array();
$temp[] = $row_board['catName'];
}
}
Quote from: Kat on August 18, 2008, 07:09:06 AM
I'm trying to create a Board News Block and it's asking me for board/post IDs.
What form would that ID take?
I tried the name of the board and the title of the post, which seemed to be what it wanted. Problem is, I'm getting "You have to pick a board that's open to guest-views", or something similar.
You guessed it. The board IS open to guest views.
It's the ID thing, innit?
What SHOULD I put in there?
Quote from: [SiNaN] on August 18, 2008, 07:29:16 AM
asudhakar:
For the BoardIndex.php, I had given the solution to Manu0372 which I don't remember exactly what it was. She will write it here for you, would you Manu?
'href' => $scripturl . '#' . $row_board['ID_CAT'],
'href' => $scripturl . '?' . (!empty($context['TPortal']) ? 'action=forum;' : '') . 'c=' . $row_board['ID_CAT'],
</tr>';
if(!empty($context['list_categories'])) {
echo '
<tr>
<td align="right" style="font-weight: bold;">', $txt['sp-articlesCategory'], ':</th>
<td align="left">
<select id="article_category" name="article_category">
<option value"">', $txt['sp-articlesNoCategory'], '</option>';
foreach($context['list_categories'] as $category) {
echo '
<option value="' . $category['id'] . '" >' . $category['name'] . '</option>';
}
echo '
</select>
</td>
</tr>';
}
echo '
<tr>
<td align="right">
<b>', $txt[71], ':</b>
</tr>
<tr>
<td align="right">
<b>', $txt[71], ':</b>
Quote from: Kat on August 18, 2008, 07:48:58 AM
Not sure about the post ID, though. I thought that'd be the 90633 at the end of:
http://www.tlakoc.org.uk/index.php/topic,7022.msg90633.html#msg90633 (http://www.tlakoc.org.uk/index.php/topic,7022.msg90633.html#msg90633)
But it's not. Nor is it the 7022.
I'm being really dumb, here, aren't I?
Quote from: [SiNaN] on August 18, 2008, 07:29:16 AM
Manu0372:
Thanks for providing support for me Manu, I appreciate you efforts. :)
cleanRequest();
$context = array();
cleanRequest();
$context = array();
$context['TPortal'] = 'SimplePortal';
cleanRequest();
$context = array();
$context['TPortal'] = 'SimplePortal';
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fforum.arseniums.com%2FSmileys%2Fdefault%2F40.gif&hash=4dd185f59556b5cdf88880d46069911cc2f2b197)Quote from: Manu0372 on August 18, 2008, 07:54:45 AM
I will try it. :-\
asudhakar:
As I can see you are using the "SingleCategroy" mod as I do.
That's the reason why BoardIndex.php is causing trouble, SingleCategory Mod has changed the codes:Code Select'href' => $scripturl . '#' . $row_board['ID_CAT'],
To this:Code Select'href' => $scripturl . '?' . (!empty($context['TPortal']) ? 'action=forum;' : '') . 'c=' . $row_board['ID_CAT'],
I think you can ignore the "Test failed" by your BoardIndex.php.
Quote from: [SiNaN] on August 18, 2008, 01:07:07 PM
Do the fix I gave in this post for BoardIndex:
http://www.simplemachines.org/community/index.php?topic=227599.msg1665546#msg1665546
Ignore the Post.template.php edit.
// Start the linktree off empty..we need forum for portal
$context['linktree'] = array(array('url' => $scripturl . '?action=forum', 'name' => 'Forum'));
// Start the linktree off empty..we need forum for portal
$context['linktree'] = array(array('url' => $scripturl . '?action=forum', 'name' => 'IT Acumens Forum'));
Quote from: Meeturmaker on August 18, 2008, 05:39:27 PM
When trying to upgrade from 2.02 i get this error
17. Execute Modification ./Sources/SPortal.php Test failed
here is the php file. Is there anything you can see that might make it error?
Quote from: Manu0372 on August 18, 2008, 04:30:48 PM
@asudhakar
You're talking about the link tree in your forum, or I'm wrong?
To let your link tree looking like this:
IT Acumens Forum -> Category Name
you have to do this:
Search in Load.php forCode Select// Start the linktree off empty..we need forum for portal
$context['linktree'] = array(array('url' => $scripturl . '?action=forum', 'name' => 'Forum'));
and replace it withCode Select// Start the linktree off empty..we need forum for portal
$context['linktree'] = array(array('url' => $scripturl . '?action=forum', 'name' => 'IT Acumens Forum'));
I tried the code in our test forum and it works perfect ;)
Quote from: asudhakar on August 18, 2008, 10:46:24 PM
And i have that forum tables error as show in picture.
Quote from: [SiNaN] on August 20, 2008, 12:46:18 PM
For All:
This morning we have coded a new add-on for SimplePortal which integrates it completely into your forum. That means, you can show your blocks on forum pages too. Also, you can select which on which action or board the block would be shown. To add; it is ultimately custom theme and install friendly. Now its being tested and I hope that we will include that feature in the next version; 2.1.
Quote from: [SiNaN] on August 21, 2008, 07:23:47 AM
I'm aware of that, will decrease the width in the first update.
Parse error: syntax error, unexpected $end in .../Themes/default/MessageIndex.template.php on line 766
757: $buttonArray[] = '<a href="' . $scripturl . '?action=post;board=' . $context['current_board'] . '.0">' . $txt['smf258'] . '</a>';
758:
759: // How about new polls, can the user post those?
760: if ($context['can_post_poll'])
761: $buttonArray[] = '<a href="' . $scripturl . '?action=post;board=' . $context['current_board'] . '.0;poll">' . $txt['smf20'] . '</a>';
762:
763: return implode(' | ', $buttonArray);
764: }
765:
766: ?>
767:
768:
QuoteThe file you are uploading already exists on the server. Please delete it first then try again.
Quote1. arrow.gif (672 bytes)
2. arrow1.gif (590 bytes)
3. dot.gif (666 bytes)
4. dot1.gif (339 bytes)
5. install.php (3815 bytes)
6. install.xml (15893 bytes)
7. package-info.xml (2950 bytes)
8. splogo.png (2276 bytes)
9. SPortal.english-utf8.php (11553 bytes)
10. SPortal.english.php (11553 bytes)
11. SPortal.php (62736 bytes)
12. SPortal.template.php (6959 bytes)
13. SPortalAdmin.php (38936 bytes)
14. SPortalAdmin.template.php (31454 bytes)
15. SPortalArticle.template.php (25861 bytes)
16. Subs-SPortal.php (11359 bytes)
17. upgrade00.xml (9681 bytes)
18. upgrade01.php (705 bytes)
19. upgrade01.xml (876 bytes)
20. upgrade02.php (1331 bytes)
21. upgrade02.xml (38057 bytes)
22. upgrade03.xml (2946 bytes)
<?php
// Version: 1.1; index
/* This template is, perhaps, the most important template in the theme. It
contains the main template layer that displays the header and footer of
the forum, namely with main_above and main_below. It also contains the
menu sub template, which appropriately displays the menu; the init sub
template, which is there to set the theme up; (init can be missing.) and
the linktree sub template, which sorts out the link tree.
The init sub template should load any data and set any hardcoded options.
The main_above sub template is what is shown above the main content, and
should contain anything that should be shown up there.
The main_below sub template, conversely, is shown after the main content.
It should probably contain the copyright statement and some other things.
The linktree sub template should display the link tree, using the data
in the $context['linktree'] variable.
The menu sub template should display all the relevant buttons the user
wants and or needs.
For more information on the templating system, please see the site at:
http://www.simplemachines.org/
*/
// Initialize the template... mainly little settings.
function template_init()
{
global $context, $settings, $options, $txt;
/* Use images from default theme when using templates from the default theme?
if this is 'always', images from the default theme will be used.
if this is 'defaults', images from the default theme will only be used with default templates.
if this is 'never' or isn't set at all, images from the default theme will not be used. */
$settings['use_default_images'] = 'never';
/* What document type definition is being used? (for font size and other issues.)
'xhtml' for an XHTML 1.0 document type definition.
'html' for an HTML 4.01 document type definition. */
$settings['doctype'] = 'xhtml';
/* The version this template/theme is for.
This should probably be the version of SMF it was created for. */
$settings['theme_version'] = '1.1';
/* Set a setting that tells the theme that it can render the tabs. */
$settings['use_tabs'] = false;
/* Use plain buttons - as oppossed to text buttons? */
$settings['use_buttons'] = false;
/* Show sticky and lock status seperate from topic icons? */
$settings['seperate_sticky_lock'] = false;
if(!$context['user']['is_guest'] && isset($_POST['options']['theme_color']))
{
include_once($GLOBALS['sourcedir'] . '/Profile.php');
makeThemeChanges($context['user']['id'], $settings['theme_id']);
$options['theme_color'] = $_POST['options']['theme_color'];
}
elseif ($context['user']['is_guest'])
{
if (isset($_POST['options']['theme_color']))
{
$_SESSION['theme_color'] = $_POST['options']['theme_color'];
$options['theme_color'] = $_SESSION['theme_color'];
}
elseif (isset($_SESSION['theme_color']))
$options['theme_color'] = $_SESSION['theme_color'];
}
}
// The main sub template above the content.
function template_main_above()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;
if (isset($options['theme_color']))
$mycolor = $options['theme_color'];
else{
// Defaults.
$options['theme_color'] = isset($settings['default_theme_color']) ? $settings['default_theme_color'] : 'brown';
$mycolor=$options['theme_color'];
}
if(isset($settings['color_change_off']) && $settings['color_change_off']==1)
$options['theme_color'] = isset($settings['default_theme_color']) ? $settings['default_theme_color'] : 'brown';
// Show right to left and the character set for ease of translating.
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"', $context['right_to_left'] ? ' dir="rtl"' : '', '><head>
<meta http-equiv="Content-Type" content="text/html; charset=', $context['character_set'], '" />
<meta name="description" content="', $context['page_title'], '" />', empty($context['robot_no_index']) ? '' : '
<meta name="robots" content="noindex" />', '
<meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/script.js?rc3"></script>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "', $settings['theme_url'], '";
var smf_images_url = "', $settings['images_url'], '";
var smf_scripturl = "', $scripturl, '";
var smf_iso_case_folding = ', $context['server']['iso_case_folding'] ? 'true' : 'false', ';
var smf_charset = "', $context['character_set'], '";
// ]]></script>
<title>', $context['page_title'], '</title>';
// The ?fin11 part of this link is just here to make sure browsers don't cache it wrongly.
echo '
<link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/style.css?fin11" />
<link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/print.css?fin11" media="print" />';
/* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...)
Thus, in Internet Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.
Note that this is affected by whether IE 6 is in standards compliance mode.. if not, it will also be big.
Standards compliance mode happens when you use xhtml... */
if ($context['browser']['needs_size_fix'])
echo '
<link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/fonts-compat.css" />';
// Show all the relative links, such as help, search, contents, and the like.
echo '
<link rel="help" href="', $scripturl, '?action=help" target="_blank" />
<link rel="search" href="' . $scripturl . '?action=search" />
<link rel="contents" href="', $scripturl, '" />';
// If RSS feeds are enabled, advertise the presence of one.
if (!empty($modSettings['xmlnews_enable']))
echo '
<link rel="alternate" type="application/rss+xml" title="', $context['forum_name'], ' - RSS" href="', $scripturl, '?type=rss;action=.xml" />';
// If we're viewing a topic, these should be the previous and next topics, respectively.
if (!empty($context['current_topic']))
echo '
<link rel="prev" href="', $scripturl, '?topic=', $context['current_topic'], '.0;prev_next=prev" />
<link rel="next" href="', $scripturl, '?topic=', $context['current_topic'], '.0;prev_next=next" />';
// If we're in a board, or a topic for that matter, the index will be the board's index.
if (!empty($context['current_board']))
echo '
<link rel="index" href="' . $scripturl . '?board=' . $context['current_board'] . '.0" />';
// We'll have to use the cookie to remember the header...
if ($context['user']['is_guest'])
$options['collapse_header'] = !empty($_COOKIE['upshrink']);
// Output any remaining HTML headers. (from mods, maybe?)
echo $context['html_headers'], '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_header = ', empty($options['collapse_header']) ? 'false' : 'true', ';
function shrinkHeader(mode)
{';
// Guests don't have theme options!!
if ($context['user']['is_guest'])
echo '
document.cookie = "upshrink=" + (mode ? 1 : 0);';
else
echo '
smf_setThemeOption("collapse_header", mode ? 1 : 0, null, "', $context['session_id'], '");';
echo '
document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");
document.getElementById("upshrinkHeader").style.display = mode ? "none" : "";
current_header = mode;
}
// ]]></script>
</head>
<body><div><table cellpadding="0" align="center" cellspacing="0" style="width: ' , (isset($settings['forum_width']) && !empty($settings['forum_width'])) ? $settings['forum_width'] : '100%' , ';"><tr><td>';
$topbox='<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="height: 16px; width: 22px;"><img src="'.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-topleft.gif" style="height: 16px; width: 22px; border: 0px; padding: 0px; margin: 0px;" alt="gfx" /></td><td style="height: 16px; background-image: url('.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-topmid.gif); "></td><td style="height: 16px; width: 27px;"><img alt="gfx" src="'.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-topright.gif" style="height: 16px; width: 27px; border: 0px; padding: 0px; margin: 0px;" /></td></tr><tr><td style="width: 22px; background-image: url('.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-midleft.gif); "> </td><td valign="top">';
$botbox='</td><td style="width: 27px; background-image: url('.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-midright.gif); "> </td></tr><tr><td valign="top" style="height: 14px; width: 22px;"><img alt="gfx" src="'.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-botleft.gif" style="height: 14px; width: 22px; border: 0px; padding: 0px; margin: 0px;" /></td><td style="height: 14px; background-image: url('.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-botmid.gif); "> </td><td valign="top" style="height: 14px; width: 27px;"><img alt="gfx" src="'.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-botright.gif" style="height: 14px; width: 27px; border: 0px; padding: 0px; margin: 0px;" /></td></tr></table>';
$leftbox='<table cellpadding="0" width="100%" cellspacing="0" border="0"><tr><td valign="top" style="height: 44px; width: 124px;"><img alt="gfx" src="'.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-stat-left.gif" style="height: 44px; width: 124px; border: 0px; padding: 0px; margin: 0px;" /></td><td nowrap="nowrap" style="text-align: center; height: 44px; background-image: url('.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-stat-mid.gif); ">';
$rightbox='</td><td valign="top" style="height: 44px; width: 135px;"><img alt="*" src="'.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-stat-right.gif" style="height: 44px; width: 135px; border: 0px; padding: 0px; margin: 0px;" /></td></tr></table>';
if(isset($settings['topbar']) && !empty($settings['topbar']))
echo '<div style="text-align: center; width: 99%">'.$settings['topbar'].'</div>';
if(!isset($settings['color_change_off']) || (isset($settings['color_change_off']) && $settings['color_change_off']==0))
echo '
<form action="', $scripturl, '" style="text-align: right; margin-right: 30px; margin-bottom: 2px; margin-top: 2px;" method="post" class="smalltext">
<input style="border: solid 1px #808080; background-color: #503000; color: #503000; font-size: 6px;" type="submit" value="brown" name="options[theme_color]">
<input style="border: solid 1px #808080; background-color: #600000; color: #600000; font-size: 6px;" type="submit" value="red" name="options[theme_color]">
<input style="border: solid 1px #808080; background-color: #908000; color: #908000; font-size: 6px;" type="submit" value="golden" name="options[theme_color]">
<input style="border: solid 1px #808080; background-color: #005000; color: #005000; font-size: 6px;" type="submit" value="green" name="options[theme_color]">
<input style="border: solid 1px #808080; background-color: #000040; color: #000040; font-size: 6px;" type="submit" value="blue" name="options[theme_color]">
<input style="border: solid 1px #808080; background-color: #606060; color: #606060; font-size: 6px;" type="submit" value="silver" name="options[theme_color]">
</form>';
echo '<div id="upshrinkHeader"', empty($options['collapse_header']) ? '' : ' style="display: none;"', '><div style="padding-right: 10px;">'.$topbox.'<table width="100%" cellpadding="0" cellspacing="0" border="0">';
echo '<tr><td width="45%" valign="bottom" style="padding-right: 10px;"><div style="padding-right: 0px;">';
echo '<table width="99%" cellpadding="4" cellspacing="5" border="0" style="margin-left: 2px;"><tr>';
if (!empty($context['user']['avatar']))
echo '<td valign="top">', $context['user']['avatar']['image'], '</td>';
echo '<td width="100%" valign="top" class="smalltext" style="font-family: verdana, arial, sans-serif;">
';
// If the user is logged in, display stuff like their name, new messages, etc.
if ($context['user']['is_logged'])
{
echo '
', $txt['hello_member'], ' <b>', $context['user']['name'], '</b>';
// Only tell them about their messages if they can read their messages!
if ($context['allow_pm'])
echo ', ', $txt[152], ' <a href="', $scripturl, '?action=pm">', $context['user']['messages'], ' ', $context['user']['messages'] != 1 ? $txt[153] : $txt[471], '</a>', $txt['newmessages4'], ' ', $context['user']['unread_messages'], ' ', $context['user']['unread_messages'] == 1 ? $txt['newmessages0'] : $txt['newmessages1'];
echo '.';
// Is the forum in maintenance mode?
if ($context['in_maintenance'] && $context['user']['is_admin'])
echo '<br />
<b>', $txt[616], '</b>';
// Are there any members waiting for approval?
if (!empty($context['unapproved_members']))
echo '<br />
', $context['unapproved_members'] == 1 ? $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="', $scripturl, '?action=viewmembers;sa=browse;type=approve">', $context['unapproved_members'] == 1 ? $txt['approve_member'] : $context['unapproved_members'] . ' ' . $txt['approve_members'], '</a> ', $txt['approve_members_waiting'], '<br />';
// Show the total time logged in?
if (!empty($context['user']['total_time_logged_in']))
{
echo '
<br />', $txt['totalTimeLogged1'];
// If days is just zero, don't bother to show it.
if ($context['user']['total_time_logged_in']['days'] > 0)
echo $context['user']['total_time_logged_in']['days'] . $txt['totalTimeLogged2'];
// Same with hours - only show it if it's above zero.
if ($context['user']['total_time_logged_in']['hours'] > 0)
echo $context['user']['total_time_logged_in']['hours'] . $txt['totalTimeLogged3'];
// But, let's always show minutes - Time wasted here: 0 minutes ;).
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'];
}
echo '<br />
<a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a><br />
<a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a>';
}
// Otherwise they're a guest - so politely ask them to register or login.
else
{
echo '
', $txt['welcome_guest'], '<br />
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/sha1.js"></script>
<form action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '" class="middletext" style="margin: 3px 1ex 1px 0;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>
<div style="text-align: right;">
<input type="text" name="user" size="10" /> <input type="password" name="passwrd" size="10" />
<select name="cookielength">
<option value="60">', $txt['smf53'], '</option>
<option value="1440">', $txt['smf47'], '</option>
<option value="10080">', $txt['smf48'], '</option>
<option value="43200">', $txt['smf49'], '</option>
<option value="-1" selected="selected">', $txt['smf50'], '</option>
</select>
<input type="submit" value="', $txt[34], '" /><br />
<span class="middletext">', $txt['smf52'], '</span>
<input type="hidden" name="hash_passwrd" value="" />
</div>
</form>';
}
echo '
</td></tr></table>';
echo '</div></td><td style="padding-right: 10px;" width="50%" align="right" >';
if(isset($settings['userlogo']) && !empty($settings['userlogo']))
echo '<a href="index.php"><img src="'.$settings['userlogo'].'" border="0" alt="logo" /></a>';
echo ' </td></tr></table>'.$botbox.'</div>';
if (!empty($settings['enable_news']))
echo '<div style="padding-right: 10px;">'. $topbox.'<div style="padding: 6px; text-align: center;">'.$context['random_news_line'].'</div>'.$botbox.'</div>';
// news
echo '
</div>';
// stats
echo '<div style="padding-left: 0px;">'.$leftbox.'<table width="99%" cellpadding="0" cellspacing="0" border="0"><tr><td align="left" style="color: #88908a; font-size: 8pt; font-family: tahoma, helvetica, serif;"><b>', $modSettings['totalMessages'], '</b> ', $txt[95], ' ', $txt['smf88'], ' <b>
', $modSettings['totalTopics'], '</b> ', $txt[64], ' ', $txt[525], ' <b>', $modSettings['totalMembers'], '</b>
', $txt[19], '
- ', $txt[656], ': <b> <a style="color: #b0b0b0" href="', $scripturl , '?action=profile;u=' , $modSettings['latestMember'] , '">' , $modSettings['latestRealName'] , '</a></b>
</td><td align="right" style="color: #b0b0b0; font-size: 8pt; font-family: tahoma, helvetica, serif;">'.$context['current_time'].'</td></tr></table>'.$rightbox.'</div>';
// Show the menu here, according to the menu sub template.
echo '<table cellpadding="0" cellspacing="0" border="0" style="text-align: left; margin-left: 20px; background-image: url(' . $settings['images_url'] . '/pod/'.$options['theme_color'].'/pod-midbar.gif);" ><tr>';
echo '<td style="width: 39%; background-color: black;"> </td><td><img src="' . $settings['images_url'] . '/pod/'.$options['theme_color'].'/pod-leftbar.gif" alt="gfx" style="margin: 0px 0;" border="0" /></td>';
echo '<td><a href="#" onclick="shrinkHeader(!current_header); return false;"><img id="upshrink" src="', $settings['images_url'], '/', empty($options['collapse_header']) ? 'upshrink.gif' : 'upshrink2.gif', '" alt="*" title="', $txt['upshrink_description'], '" style="margin: 0px 0;" border="0" /></a></td><td><img id="upshrinkTemp" src="', $settings['images_url'], '/blank.gif" alt="" style="width: 2px; height: 20px;margin: 0px 0;" /></td>';
template_menu();
echo '</td><td style="background-color: black;width: 59%;"> </td></tr></table>';
// The main content should go here. A table is used because IE 6 just can't handle a div.
echo '
<table style="margin-top: 4px;" width="100%" cellpadding="0" cellspacing="0" border="0"><tr>';
echo '<td align="left" id="bodyarea" style="padding-left: 3px; padding-right: 8px; padding-top: 0px; padding-bottom: 10px;">';
}
function template_main_below()
{
global $context, $settings, $options, $scripturl, $txt;
$leftboxbot3='<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-left: 8px; height: 58px; width: 72px;"><img alt="gfx" src="'.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-maxbotleft.gif" style="height: 58px; width: 72px; border: 0px; padding: 0px; margin: 0px;" /></td><td valign="top" nowrap="nowrap" style="text-align: center; height: 58px; background-repeat: repeat-x;background-image: url('.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-maxbotmid.gif); ">';
$rightboxbot3='</td><td valign="top" style="padding-right: 5px; height: 58px; width: 79px;"><img alt="gfx" src="'.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-maxbotright.gif" style="height: 58px; width: 79px; border: 0px; padding: 0px; margin: 0px;" /></td></tr></table>';
echo '</td>
</tr></table>';
// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
echo $leftboxbot3.'
<div style="padding-top: 15px;">
<table cellspacing="0" cellpadding="0" border="0" align="center" width="100%">
<tr>
<td valign="middle" align="center" style="white-space: nowrap;">
', theme_copyright(), '
</td><td align="right"><span class="smalltext">';
// Show the load time?
if ($context['show_load_time'])
echo
$txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'];
echo '<br /><b>Helios Multi</b> design by <a target="_blank" href="http://www.bloczone.net/smf">Bloc</a></span></td>
</tr>
</table></div>'.$rightboxbot3;
echo '<div style="text-align: center;">
<a href="http://www.mysql.com/" target="_blank"><img id="powered-mysql" src="', $settings['images_url'], '/powered-mysql.gif" alt="', $txt['powered_by_mysql'], '" border="0" /></a>
<a href="http://www.php.net/" target="_blank"><img id="powered-php" src="', $settings['images_url'], '/powered-php.gif" alt="', $txt['powered_by_php'], '" border="0" /></a>
<a href="http://validator.w3.org/check/referer" target="_blank"><img id="valid-xhtml10" src="', $settings['images_url'], '/valid-xhtml10.gif" alt="', $txt['valid_xhtml'], '" border="0" /></a>
<a href="http://jigsaw.w3.org/css-validator/check/referer" target="_blank"><img id="valid-css" src="', $settings['images_url'], '/valid-css.gif" alt="', $txt['valid_css'], '" border="0" /></a>
</div>';
// This is an interesting bug in Internet Explorer AND Safari. Rather annoying, it makes overflows just not tall enough.
if (($context['browser']['is_ie'] && !$context['browser']['is_ie4']) || $context['browser']['is_mac_ie'] || $context['browser']['is_safari'] || $context['browser']['is_firefox'])
{
// The purpose of this code is to fix the height of overflow: auto div blocks, because IE can't figure it out for itself.
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[';
// Unfortunately, Safari does not have a "getComputedStyle" implementation yet, so we have to just do it to code...
if ($context['browser']['is_safari'])
echo '
window.addEventListener("load", smf_codeFix, false);
function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");
for (var i = 0; i < codeFix.length; i++)
{
if ((codeFix[i].className == "code" || codeFix[i].className == "post" || codeFix[i].className == "signature") && codeFix[i].offsetHeight < 20)
codeFix[i].style.height = (codeFix[i].offsetHeight + 20) + "px";
}
}';
elseif ($context['browser']['is_firefox'])
echo '
window.addEventListener("load", smf_codeFix, false);
function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");
for (var i = 0; i < codeFix.length; i++)
{
if (codeFix[i].className == "code" && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0))
codeFix[i].style.overflow = "scroll";
}
}';
else
{
echo '
var window_oldOnload = window.onload;
window.onload = smf_codeFix;
function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");
for (var i = codeFix.length - 1; i > 0; i--)
{
if (codeFix[i].currentStyle.overflow == "auto" && (codeFix[i].currentStyle.height == "" || codeFix[i].currentStyle.height == "auto") && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0) && (codeFix[i].offsetHeight != 0 || codeFix[i].className == "code"))
codeFix[i].style.height = (codeFix[i].offsetHeight + 36) + "px";
}
if (window_oldOnload)
{
window_oldOnload();
window_oldOnload = null;
}
}';
}
echo '
// ]]></script>';
}
echo '</td></tr></table></div>
<div id="ajax_in_progress" style="display: none;', $context['browser']['is_ie'] && !$context['browser']['is_ie7'] ? 'position: absolute;' : '', '">', $txt['ajax_in_progress'], '</div>
</body>
</html>';
}
// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree()
{
global $context, $settings, $options;
// Folder style or inline? Inline has a smaller font.
echo '<span class="nav">';
// Each tree item has a URL and name. Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{
// Show something before the link?
if (isset($tree['extra_before']))
echo $tree['extra_before'];
// Show the link, including a URL if it should have one.
echo $settings['linktree_link'] && isset($tree['url']) ? '<a href="' . $tree['url'] . '" class="nav">' . $tree['name'] . '</a>' : $tree['name'];
// Show something after the link...?
if (isset($tree['extra_after']))
echo $tree['extra_after'];
// Don't show a separator for the last one.
if ($link_num != count($context['linktree']) - 1)
echo ' | ';
}
echo '</span>';
}
// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context, $settings, $options, $scripturl, $txt;
// Show the [home] and [help] buttons.
echo '<td><a href="', $scripturl, '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/home.gif" alt="' . $txt[103] . '" style="margin: 0px 0;" border="0" />' : $txt[103]), '</a></td>';
echo '<td><a href="', $scripturl, '?action=help" >', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/help.gif" alt="' . $txt[119] . '" style="margin: 0px 0;" border="0" />' : $txt[119]), '</a></td>';
echo '
// How about the [Arcade] button?
echo'
<td align="center"><a href="', $scripturl, '?action=arcade">' , $txt['arcade'] , '</a></td>';
// How about the [search] button?
if ($context['allow_search'])
echo '<td><a href="', $scripturl, '?action=search">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/search.gif" alt="' . $txt[182] . '" style="margin: 0px 0;" border="0" />' : $txt[182]), '</a></td>';
// Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])
echo '<td><a href="', $scripturl, '?action=admin">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/admin.gif" alt="' . $txt[2] . '" style="margin: 0px 0;" border="0" />' : $txt[2]), '</a></td>';
// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo '<td><a href="', $scripturl, '?action=profile">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/profile.gif" alt="' . $txt[79] . '" style="margin: 0px 0;" border="0" />' : $txt[467]), '</a></td>';
// The [calendar]!
if ($context['allow_calendar'])
echo '<td><a href="', $scripturl, '?action=calendar">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/calendar.gif" alt="' . $txt['calendar24'] . '" style="margin: 0px 0;" border="0" />' : $txt['calendar24']), '</a></td>';
// If the user is a guest, show [login] and [register] buttons.
if ($context['user']['is_guest'])
{
echo '<td><a href="', $scripturl, '?action=login">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/login.gif" alt="' . $txt[34] . '" style="margin: 0px 0;" border="0" />' : $txt[34]), '</a></td>';
echo '<td><a href="', $scripturl, '?action=register">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/register.gif" alt="' . $txt[97] . '" style="margin: 0px 0;" border="0" />' : $txt[97]), '</a></td>';
}
// Otherwise, they might want to [logout]...
else{
echo '<td><a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/logout.gif" alt="' . $txt[108] . '" style="margin: 0px 0;" border="0" />' : $txt[108]), '</a></td>';
}
// first button...is it on?
if(isset($settings['custombutton1_use']) && $settings['custombutton1_use']==true){
// is it memberonly?
if(isset($settings['custombutton1_member']) && $settings['custombutton1_member']==true){
// it is, check if guest
if($context['user']['is_logged']){
// member, check if its not empty...
if(isset($settings['custombutton1']) && !empty($settings['custombutton1']) && isset($settings['custombutton1_link']) && !empty($settings['custombutton1_link']))
echo '<td><a href="'. $settings['custombutton1_link'].'"><img src="' . $settings['images_url'] . '/' . $settings['custombutton1'] . '" alt="" style="margin: 0px 0;" border="0" /></a></td>';
}
}
else{
// guests too, check if its not empty...
if(isset($settings['custombutton1']) && !empty($settings['custombutton1']) && isset($settings['custombutton1_link']) && !empty($settings['custombutton1_link']))
echo '<td><a href="'. $settings['custombutton1_link'].'"><img src="' . $settings['images_url'] . '/' . $settings['custombutton1'] . '" alt="" style="margin: 0px 0;" border="0" /></a></td>';
}
}
// second button...is it on?
if(isset($settings['custombutton2_use']) && $settings['custombutton2_use']==true){
// is it memberonly?
if(isset($settings['custombutton2_member']) && $settings['custombutton2_member']==true){
// it is, check if guest
if($context['user']['is_logged']){
// member, check if its not empty...
if(isset($settings['custombutton2']) && !empty($settings['custombutton2']) && isset($settings['custombutton2_link']) && !empty($settings['custombutton2_link']))
echo '<td><a href="'. $settings['custombutton2_link'].'"><img src="' . $settings['images_url'] . '/' . $settings['custombutton2'] . '" alt="" style="margin: 0px 0;" border="0" /></a></td>';
}
}
else{
// guests too, check if its not empty...
if(isset($settings['custombutton2']) && !empty($settings['custombutton2']) && isset($settings['custombutton2_link']) && !empty($settings['custombutton2_link']))
echo '<td><a href="'. $settings['custombutton2_link'].'"><img src="' . $settings['images_url'] . '/' . $settings['custombutton2'] . '" alt="" style="margin: 0px 0;" border="0" /></a></td>';
}
}
// third button...is it on?
if(isset($settings['custombutton3_use']) && $settings['custombutton3_use']==true){
// is it memberonly?
if(isset($settings['custombutton3_member']) && $settings['custombutton3_member']==true){
// it is, check if guest
if($context['user']['is_logged']){
// member, check if its not empty...
if(isset($settings['custombutton3']) && !empty($settings['custombutton3']) && isset($settings['custombutton3_link']) && !empty($settings['custombutton3_link']))
echo '<td><a href="'. $settings['custombutton3_link'].'"><img src="' . $settings['images_url'] . '/' . $settings['custombutton3'] . '" alt="" style="margin: 0px 0;" border="0" /></a></td>';
}
}
else{
// guests too, check if its not empty...
if(isset($settings['custombutton3']) && !empty($settings['custombutton3']) && isset($settings['custombutton3_link']) && !empty($settings['custombutton3_link']))
echo '<td><a href="'. $settings['custombutton3_link'].'"><img src="' . $settings['images_url'] . '/' . $settings['custombutton3'] . '" alt="" style="margin: 0px 0;" border="0" /></a></td>';
}
}
echo '<td><img src="' . $settings['images_url'] . '/pod/'.$options['theme_color'].'/pod-rightbar.gif" alt="gfx" style="margin: 0px 0;" border="0" />';
}
// Generate a strip of buttons, out of buttons.
function template_button_strip($button_strip, $direction = 'top', $force_reset = false, $custom_td = '')
{
global $settings, $buttons, $context, $txt, $scripturl;
if (empty($button_strip))
return '';
// Create the buttons...
foreach ($button_strip as $key => $value)
{
if (isset($value['test']) && empty($context[$value['test']]))
{
unset($button_strip[$key]);
continue;
}
elseif (!isset($buttons[$key]) || $force_reset)
$buttons[$key] = '<a href="' . $value['url'] . '" ' .( isset($value['custom']) ? $value['custom'] : '') . '>' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . ($value['lang'] ? $context['user']['language'] . '/' : '') . $value['image'] . '" alt="' . $txt[$value['text']] . '" border="0" />' : $txt[$value['text']]) . '</a>';
$button_strip[$key] = $buttons[$key];
}
echo '
<td ', $custom_td, '>', implode($context['menu_separator'], $button_strip) , '</td>';
}
?>
echo '<td><a href="', $scripturl, '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/home.gif" alt="' . $txt[103] . '" style="margin: 0px 0;" border="0" />' : $txt[103]), '</a></td>';
echo '<td><a href="', $scripturl, '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/home.gif" alt="' . $txt[103] . '" style="margin: 0px 0;" border="0" />' : $txt[103]), '</a></td>';
echo '<td><a href="', $scripturl, '?action=forum">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/forum.gif" alt="' . $txt['sp-forum'] . '" style="margin: 0px 0;" border="0" />' : $txt['sp-forum']), '</a></td>';
Quote from: [SiNaN] on August 21, 2008, 03:50:20 PM
What's your browser? Can you link to your forum?
Quote from: [SiNaN] on August 21, 2008, 05:46:57 PM
Find:Code Selectecho '<td><a href="', $scripturl, '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/home.gif" alt="' . $txt[103] . '" style="margin: 0px 0;" border="0" />' : $txt[103]), '</a></td>';
Replace:Code Selectecho '<td><a href="', $scripturl, '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/home.gif" alt="' . $txt[103] . '" style="margin: 0px 0;" border="0" />' : $txt[103]), '</a></td>';
echo '<td><a href="', $scripturl, '?action=forum">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/forum.gif" alt="' . $txt['sp-forum'] . '" style="margin: 0px 0;" border="0" />' : $txt['sp-forum']), '</a></td>';
You should have a forum.gif image if you are using images on menu.
<td style="padding: 5px;"colspan="2">';
<td style="padding: 5px;" colspan="2">';
<div class="post">', !empty($article['category']['picture']['href']) ? '<div><img src="' . $article['category']['picture']['href'] . '" alt="' . $article['category']['name'] . '" width="90" align="right" /></div>' : '', $article['message']['body'], '<br/><br/>
</div>
</tr>
<div class="post">', !empty($article['category']['picture']['href']) ? '<div><img src="' . $article['category']['picture']['href'] . '" alt="' . $article['category']['name'] . '" width="90" align="right" /></div>' : '', $article['message']['body'], '<br/><br/>
</div>
</td>
</tr>
<?php
// Birthdays function
function birthdays()
{
echo 'birthdays';
}
// Holidays function
function holidays()
{
echo 'holidays';
}
// Events function
function events()
{
echo 'events';
}
// Put all functions in an array
$functions = array('birthdays', 'holidays', 'events');
// Call a random function
$functions[rand(0,2)]();
?>
<div class="post">
<div style="width: 100%">
Quote from: Manu0372 on August 19, 2008, 09:23:20 AM
I know it's not topic related. ;)Quote from: asudhakar on August 18, 2008, 10:46:24 PM
And i have that forum tables error as show in picture.
Can you send me please your MessageIndex.template.php?
Your layout error has to do with a modification you have add, if you want
I can take a look at the code and change it for you, cause I had the same
problems as you have. ;)
Quote from: Manu0372 on August 22, 2008, 08:41:40 AM
@asudhakar
Here's your MessageIndex.template.php back.
load up the one I modified. ;)
Quote from: [SiNaN] on August 21, 2008, 07:09:00 PM
Actually PHP blocks are making the portal dynamic enough. Let me give an example for random block:Code Select
I hope it is simple and clear. :)
Quote from: asudhakar on August 22, 2008, 11:47:46 AM
Thanks a lot Manu0372,
Now its working perfectly in My IE 6 Browser.
Thanks a lot for your kind help.
Quote from: Manu0372 on August 22, 2008, 02:42:49 PM
Your welcome. ;)
It looks nice in IE6 but not in IE7! :-\
Please load up the MessageIndex.template.php I have add to this posting,
than it will look nice in IE7 too. ;)
Quote
Template Parse Error!
There was a problem loading the /Themes/default/MessageIndex.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.
You may want to try to refresh this page or use the default theme.
Parse error: syntax error, unexpected $end in .../Themes/default/MessageIndex.template.php on line 763
754: $buttonArray[] = '<a href="' . $scripturl . '?action=post;board=' . $context['current_board'] . '.0">' . $txt['smf258'] . '</a>';
755:
756: // How about new polls, can the user post those?
757: if ($context['can_post_poll'])
758: $buttonArray[] = '<a href="' . $scripturl . '?action=post;board=' . $context['current_board'] . '.0;poll">' . $txt['smf20'] . '</a>';
759:
760: return implode(' | ', $buttonArray);
761: }
762:
763: ?>
764:
765:
$txt['articleview'] = 'Article view template active:';
$txt['articleview'] = 'Article view template active:';
$txt['who_index'] = 'Просматривает главную страницу <a href="' . $scripturl . '">' . $context['forum_name'] . '</a>.';
$txt['who_index'] = 'Просматривает <a href="' . $scripturl . '">сайт</a>.';
$txt['whoall_forum'] = 'Просматривает <a href="' . $scripturl . '?action=forum">форум</a>.';
require_once('SSI.php');if (function_exists('ssi_recentPostsPref')) ssi_recentPostsPref();
global $modSettings;
if ($modSettings['affiliates_marquee'] == 0)
echo '<span class="smalltext"> ' . parse_bbc($modSettings['affiliates']) . '</span>';
if ($modSettings['affiliates_marquee'] == 2)
echo '<marquee behavior="scroll" onmouseover="this.stop()" onmouseout="this.start()"><span class="smalltext"> ' . parse_bbc($modSettings['affiliates']) . '</span></marquee>';
if ($modSettings['affiliates_marquee'] == 1)
echo '<marquee><span class="smalltext"> ' . parse_bbc($modSettings['affiliates']) . '</span></marquee>';
LEFT JOIN {$db_prefix}membergroups AS mg ON (mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP))", __FILE__, __LINE__);
LEFT JOIN {$db_prefix}membergroups AS mg ON (mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP))
LIMIT 20", __FILE__, __LINE__);
<IfModule mod_security.c>
# Turn off mod_security filtering. SMF is a big boy, it doesn't need its hands held.
SecFilterEngine Off
# The below probably isn't needed, but better safe than sorry.
SecFilterScanPOST Off
</IfModule>
Quote from: [SiNaN] on August 26, 2008, 04:59:36 PM
Can you try adding this code to your .htaccess file?Code Select<IfModule mod_security.c>
# Turn off mod_security filtering. SMF is a big boy, it doesn't need its hands held.
SecFilterEngine Off
# The below probably isn't needed, but better safe than sorry.
SecFilterScanPOST Off
</IfModule>
Quote from: [SiNaN] on August 26, 2008, 06:22:44 PM
..... should be a solution in www.simpleportal.net
Quote from: runebergen on August 26, 2008, 06:45:45 PMQuote from: [SiNaN] on August 26, 2008, 06:22:44 PM
..... should be a solution in www.simpleportal.net
http://simpleportal.net/index.php?action=forum ay ay aya ya... :D :D :D
loving the sneak preview of new features
Very good!!!
Quote from: AlenNS on August 26, 2008, 08:11:35 PM
Sinan, are you planing to make something like this for 2.x?
// An array to hold all the attachments for this topic.
$context['current_attachments'] = array();
if (empty($topic) && (allowedTo('sp_add_article') || allowedTo('sp_moderate'))) {
require_once($sourcedir . '/Subs-SPortal.php');
$context['list_categories'] = getCategoryInfo();
}
Quote from: BigMike82 on August 28, 2008, 11:49:05 AM
Thanks LHVWB,
Where do I find the Board ID for the parameters?
- Mike
Quote from: LHVWB on August 29, 2008, 04:22:33 AM
@ousu,
Have you created any blocks? You need to create and enble some blocks in the Sportal Admin area, before they will show on the portal. ;)
<html>
<head>
<!-- Location of javascript. -->
<script language="javascript" type="text/javascript" src="swfobject.js" ></script>
</head>
<body>
<!-- Div that contains player. -->
<div id="player">
</div>
<!-- Script that embeds player. -->
<script language="javascript" type="text/javascript">
var so = new SWFObject("flashmp3player.swf", "player", "290", "247", "9"); // Location of swf file.
so.addParam("quality", "high");
so.addVariable("content_path","mp3"); // Location of a folder with mp3 files (relative to php script).
so.addVariable("color_path","default.xml"); // Location of xml file with color settings.
so.addVariable("script_path","flashmp3player.php"); // Location of php script.
so.write("player");
</script>
</body>
</html>
$context['page_title'] = $context['forum_name'] . ' - insert whatever you want here';
width="' . $modSettings['leftwidth'] : '', '">';
width="' . $modSettings['leftwidth'] . '%' : '', '">';
<!-- Location of javascript. -->
<script language="javascript" type="text/javascript" src="swfobject.js" ></script>
<!-- Div that contains player. -->
<div id="player">
</div>
<!-- Script that embeds player. -->
<script language="javascript" type="text/javascript">
var so = new SWFObject("flashmp3player.swf", "player", "290", "247", "9"); // Location of swf file.
so.addParam("quality", "high");
so.addVariable("content_path","mp3"); // Location of a folder with mp3 files (relative to php script).
so.addVariable("color_path","default.xml"); // Location of xml file with color settings.
so.addVariable("script_path","flashmp3player.php"); // Location of php script.
so.write("player");
</script>
echo '
<br /><b>',$txt['yshout_shoutbox'],'</b><br /><br />
<div id="yshout">',$txt['yshout_loading'],'<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /></div>';
QuoteI believe the articles strip BBC, if I remember correctly. That's why it won't work.
Quote from: sornok on August 31, 2008, 07:43:55 AMQuoteI believe the articles strip BBC, if I remember correctly. That's why it won't work.
I am afraid this doesn't help me :/
Some more info or a link to help me ?
Quote from: ousu on August 31, 2008, 08:03:27 AM
Hi,
In the users online block, how can i keep a scroll button , because if there are 50 users online it takes half of the page.
Please help me..
Thank you
LEFT JOIN {$db_prefix}membergroups AS mg ON (mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP))", __FILE__, __LINE__);
LEFT JOIN {$db_prefix}membergroups AS mg ON (mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP))
LIMIT 20", __FILE__, __LINE__);
$online['total_users'] = $online['num_users'] + $online['guests'];
echo '<table>
$online['total_users'] = $online['num_users'] + $online['guests'];
echo '<table width="100%">
foreach ($online['users'] as $user)
echo '<tr>
<td colspan="4" style="padding-left: 15px;"><img src="' . $settings['images_url'] . '/useron.gif" alt="user" /> ',$user['hidden'] ? '<i>' . $user['link'] . '</i>' : $user['link'],'</td>
</tr>';
echo '
<tr>
<td colspan="4">
<div style="border: 0pt none; height: 100px; overflow: auto;">
<table>';
foreach ($online['users'] as $user)
echo '<tr>
<td style="padding-left: 15px;"><img src="' . $settings['images_url'] . '/useron.gif" alt="user" /> ',$user['hidden'] ? '<i>' . $user['link'] . '</i>' : $user['link'],'</td>
</tr>';
echo '
</table>
</div>
</td>
</tr>';
Quote from: [SiNaN] on August 31, 2008, 01:51:45 PM
sornok:
Did you install this mod?
http://custom.simplemachines.org/mods/index.php?mod=247
ousu:
I'm quite busy these days, sorry.
SPortal.php
Find:Code Select$online['total_users'] = $online['num_users'] + $online['guests'];
echo '<table>
Replace:Code Select$online['total_users'] = $online['num_users'] + $online['guests'];
echo '<table width="100%">
Find:Code Selectforeach ($online['users'] as $user)
echo '<tr>
<td colspan="4" style="padding-left: 15px;"><img src="' . $settings['images_url'] . '/useron.gif" alt="user" /> ',$user['hidden'] ? '<i>' . $user['link'] . '</i>' : $user['link'],'</td>
</tr>';
Replace:Code Selectecho '
<tr>
<td colspan="4">
<div style="border: 0pt none; height: 100px; overflow: auto;">
<table>';
foreach ($online['users'] as $user)
echo '<tr>
<td style="padding-left: 15px;"><img src="' . $settings['images_url'] . '/useron.gif" alt="user" /> ',$user['hidden'] ? '<i>' . $user['link'] . '</i>' : $user['link'],'</td>
</tr>';
echo '
</table>
</div>
</td>
</tr>';
You can change the height with the height attribute in style.
For all:
I think you will get a better support if you ask in www.simpleportal.net (http://www.simpleportal.net).
Quote from: [SiNaN] on August 29, 2008, 03:20:07 PMThat doesn't show the player, it's just an empty box.
jimvy:
2) Can you just try this codes:Code Select<!-- Location of javascript. -->
<script language="javascript" type="text/javascript" src="swfobject.js" ></script>
<!-- Div that contains player. -->
<div id="player">
</div>
<!-- Script that embeds player. -->
<script language="javascript" type="text/javascript">
var so = new SWFObject("flashmp3player.swf", "player", "290", "247", "9"); // Location of swf file.
so.addParam("quality", "high");
so.addVariable("content_path","mp3"); // Location of a folder with mp3 files (relative to php script).
so.addVariable("color_path","default.xml"); // Location of xml file with color settings.
so.addVariable("script_path","flashmp3player.php"); // Location of php script.
so.write("player");
</script>
Quote from: [SiNaN] on August 29, 2008, 03:20:07 PMRight now they go to http://bunny-troopers.tw-family.us/music/upload.php and upload them.
3) How do they upload it outside the portal?
<?php
$uploadLocation = "\tmp";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>MP3 Uploader</title>
<link href="style/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="main">
<div id="caption">MP3 Uploader - Uploads are limited to 10 MB each, MP3 format only!</div>
<div id="icon"> </div>
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="fileForm" id="fileForm" enctype="multipart/form-data">
File to upload:<center>
<table>
<tr><td><input name="upfile" type="file" size="36"></td></tr>
<tr><td align="center"><br/><input class="text" type="submit" name="submitBtn" value="Upload"></td></tr>
</table></center>
</form>
<?php
if (isset($_POST['submitBtn'])){
?>
<div id="caption">RESULT</div>
<div id="icon2"> </div>
<div id="result">
<table width="100%">
<?php
$target_path = $_SERVER['DOCUMENT_ROOT'] . '/music/mp3/' . basename( $_FILES['upfile']['name']);
//$target_path = $uploadLocation . basename( $_FILES['upfile']['name']);
if(move_uploaded_file($_FILES['upfile']['tmp_name'], $target_path)) {
echo "The file: ". basename( $_FILES['upfile']['name']).
" has been uploaded!";
} else{
echo "There was an error uploading the file, please try again!";
}
?>
</table>
</div>
<?php
}
?>
<div>
</body>
$online['userslist'] = array();
$online['userslist'][$row['logTime'] . $row['memberName']] = empty($row['showOnline']) ? '<i>' . $link . '</i>' : $link;
if (!isset($online['online_groups'][$row['ID_GROUP']]))
$online['online_groups'][$row['ID_GROUP']] = array(
'id' => $row['ID_GROUP'],
'name' => $row['groupName'],
'color' => $row['onlineColor']
);
krsort($online['userslist']);
</tr><tr><td colspan="4" style="padding-left: 10px;"><span class="smalltext">';
echo implode(', ', $online['userslist']);
echo '</span></td></tr></table>';
function sp_whosOnline()
{
global $scripturl, $db_prefix, $user_info, $txt, $settings, $online;
$result = db_query("
SELECT
lo.ID_MEMBER, lo.logTime, mem.realName, mem.memberName, mem.showOnline,
mg.onlineColor, mg.ID_GROUP
FROM {$db_prefix}log_online AS lo
LEFT JOIN {$db_prefix}members AS mem ON (mem.ID_MEMBER = lo.ID_MEMBER)
LEFT JOIN {$db_prefix}membergroups AS mg ON (mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP))", __FILE__, __LINE__);
$online['users'] = array();
$online['userslist'] = array();
$online['guests'] = 0;
$online['hidden'] = 0;
$online['buddies'] = 0;
$show_buddies = !empty($user_info['buddies']);
while ($row = mysql_fetch_assoc($result))
{
if (!isset($row['realName']))
$online['guests']++;
elseif (!empty($row['showOnline']) || allowedTo('moderate_forum'))
{
// Some basic color coding...
if (!empty($row['onlineColor']))
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '" style="color: ' . $row['onlineColor'] . ';">' . $row['realName'] . '</a>';
else
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '">' . $row['realName'] . '</a>';
// Bold any buddies.
if ($show_buddies && in_array($row['ID_MEMBER'], $user_info['buddies']))
{
$online['buddies']++;
$link = '<b>' . $link . '</b>';
}
$online['users'][$row['logTime'] . $row['memberName']] = array(
'id' => $row['ID_MEMBER'],
'username' => $row['memberName'],
'name' => $row['realName'],
'group' => $row['ID_GROUP'],
'href' => $scripturl . '?action=profile;u=' . $row['ID_MEMBER'],
'link' => $link,
'hidden' => empty($row['showOnline']),
'is_last' => false,
);
}
else
$online['hidden']++;
$online['userslist'][$row['logTime'] . $row['memberName']] = empty($row['showOnline']) ? '<i>' . $link . '</i>' : $link;
if (!isset($online['online_groups'][$row['ID_GROUP']]))
$online['online_groups'][$row['ID_GROUP']] = array(
'id' => $row['ID_GROUP'],
'name' => $row['groupName'],
'color' => $row['onlineColor']
);
}
mysql_free_result($result);
if (!empty($online['users']))
{
krsort($online['users']);
krsort($online['userslist']);
$userlist = array_keys($online['users']);
$online['users'][$userlist[count($userlist) - 1]]['is_last'] = true;
}
$online['num_users'] = count($online['users']) + $online['hidden'];
$online['total_users'] = $online['num_users'] + $online['guests'];
echo '<table>
<tr>
<td><img src="' . $settings['images_url'] . '/dot.gif" alt="Dot" /></td>
<td>', $txt['sp-onlineguest'], '</td>
<td>:</td>
<td>', $online['guests'],'</td>
</tr>
<tr>
<td><img src="' . $settings['images_url'] . '/dot.gif" alt="Dot" /></td>
<td>', $txt['sp-onlineuser'], '</td>
<td>:</td>
<td>', $online['num_users'],'</td>
</tr>
<tr>
<td><img src="' . $settings['images_url'] . '/dot.gif" alt="Dot" /></td>
<td>', $txt['sp-onlinehuser'], '</td>
<td>:</td>
<td>', $online['hidden'],'</td>
</tr>
<tr>
<td><img src="' . $settings['images_url'] . '/dot.gif" alt="Dot" /></td>
<td>', $txt['sp-onlinetuser'], '</td>
<td>:</td>
<td>', $online['total_users'],'</td>
</tr>';
if(!empty($online['users']))
echo ' <tr>
<td><img src="' . $settings['images_url'] . '/dot.gif" alt="Dot" />
</td><td>', $txt['sp-onlineouser'], '</td>
<td>:</td>
<td> </td>
</tr><tr><td colspan="4" style="padding-left: 10px;"><span class="smalltext">';
echo implode(', ', $online['userslist']);
echo '</span></td></tr></table>';
}
global $boarddir;
require_once($boarddir . '/SSI.php');
ssi_whosOnline();
Quote from: Chadrew on September 02, 2008, 10:54:39 PM
Thank you so much [SiNaN], what a simple solution there :)
Another question (sorry) :-X
Is it because of SimplePortal that I cannot access my forum via wireless? I get this message:
"Sorry, this section isn't available for wireless users at this time."
More specifically, I can't access mysite.com but I can access mysite.com/forum/ (I have SimplePortal and PrettyURLs installed).
I can access my other forum (which doesn't have SimplePortal installed, but does have PrettyURLs) by using the same phone just fine, so I think that might be the case?
Quote from: christinedlrp on September 03, 2008, 04:37:14 AM
I really do like this Portal. Thanks to whoever created it. My small problem is I can't figure how to make my custom blocks be the same width as the provided ones. Are there files/settings I need to tweak to get all blocks to be the same width? Thanks for your help. :)
Quote from: [SiNaN] on September 03, 2008, 01:42:58 PM
F.L.A.M.E.R:
I couldn't get your problem. But for now, blocks just appear on portal page.
Quote from: evilicy on September 03, 2008, 03:54:20 PM
I don't want to sound critical of this mod because on the contrary it looks like you did a wonderful job on it. I'm just curious what was the motivation of making this? When there is already a great well known portal system for smf. Or maybe a better question would be, is there an advantage of using this one over the other?
Quote
How exactly are you making your custom blocks?
Quote from: F.L.A.M.E.R on September 03, 2008, 05:01:43 PMQuote from: [SiNaN] on September 03, 2008, 01:42:58 PM
F.L.A.M.E.R:
I couldn't get your problem. But for now, blocks just appear on portal page.
Oh okay.. can i make my forum appear on the portal page just under the blocks I have added ? Coz i am a bit lost in these settings. 1stly i activated my portal. That causes no changes. Then I added a top block. It remove the whole forum from that page and left just the top block. So i now want it like the top block to appear up along with the forum. Kind of non explainable but i think you might get my point...
Quote from: [SiNaN] on September 06, 2008, 04:55:31 PM
Can you attach your Modifications.english.php file?
?>
Quote from: LHVWB on September 06, 2008, 07:29:49 PM
Do a search for 'sp_whosOnline()' in the '/sources/SPortal.php' file. That is the function which you want to edit. The html is near the end of that function. You will have to change the '$txt['var']' parts of the code to the strings that you want, although I can show you how to do it differently if you want to retain multiple language support. ;)
By the way. I would like to remind everyone that you can also receive support for Simple Portal, on our very own website - SimplePortal.net (http://www.simpleportal.net). :D
Quote from: F.L.A.M.E.R on September 06, 2008, 05:13:05 PMQuote from: F.L.A.M.E.R on September 03, 2008, 05:01:43 PMQuote from: [SiNaN] on September 03, 2008, 01:42:58 PM
F.L.A.M.E.R:
I couldn't get your problem. But for now, blocks just appear on portal page.
Oh okay.. can i make my forum appear on the portal page just under the blocks I have added ? Coz i am a bit lost in these settings. 1stly i activated my portal. That causes no changes. Then I added a top block. It remove the whole forum from that page and left just the top block. So i now want it like the top block to appear up along with the forum. Kind of non explainable but i think you might get my point...
Quote from: dwd2000 on September 06, 2008, 08:03:16 PMQuote from: LHVWB on September 06, 2008, 07:29:49 PM
Do a search for 'sp_whosOnline()' in the '/sources/SPortal.php' file. That is the function which you want to edit. The html is near the end of that function. You will have to change the '$txt['var']' parts of the code to the strings that you want, although I can show you how to do it differently if you want to retain multiple language support. ;)
By the way. I would like to remind everyone that you can also receive support for Simple Portal, on our very own website - SimplePortal.net (http://www.simpleportal.net). :D
Usually, I have no problem altering stuff, but in this case, I'm going to have to ask you to actually give me the codes I need and where to put them.
I have 3 websites using SMF and use quite a few mods. I find it a little easier to use the main SMF site for support. If I have anything else after this issue, I promise to use your site. O:)
P.S. - I just registered there. ;)
QuoteQuote from: dwd2000 on September 06, 2008, 08:03:16 PMQuote from: LHVWB on September 06, 2008, 07:29:49 PM
Do a search for 'sp_whosOnline()' in the '/sources/SPortal.php' file. That is the function which you want to edit. The html is near the end of that function. You will have to change the '$txt['var']' parts of the code to the strings that you want, although I can show you how to do it differently if you want to retain multiple language support. ;)
By the way. I would like to remind everyone that you can also receive support for Simple Portal, on our very own website - SimplePortal.net (http://www.simpleportal.net). :D
Usually, I have no problem altering stuff, but in this case, I'm going to have to ask you to actually give me the codes I need and where to put them.
I have 3 websites using SMF and use quite a few mods. I find it a little easier to use the main SMF site for support. If I have anything else after this issue, I promise to use your site. O:)
P.S. - I just registered there. ;)
Just look for the words in the ../Themes/default/languages/SPortal.english.php and change them as you wish.
function sp_whosOnline()
{
global $scripturl, $db_prefix, $user_info, $txt, $settings, $online;
$result = db_query("
SELECT
lo.ID_MEMBER, lo.logTime, mem.realName, mem.memberName, mem.showOnline,
mg.onlineColor, mg.ID_GROUP
FROM {$db_prefix}log_online AS lo
LEFT JOIN {$db_prefix}members AS mem ON (mem.ID_MEMBER = lo.ID_MEMBER)
LEFT JOIN {$db_prefix}membergroups AS mg ON (mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP))", __FILE__, __LINE__);
$online['users'] = array();
$online['guests'] = 0;
$online['hidden'] = 0;
$online['buddies'] = 0;
$show_buddies = !empty($user_info['buddies']);
while ($row = mysql_fetch_assoc($result))
{
if (!isset($row['realName']))
$online['guests']++;
elseif (!empty($row['showOnline']) || allowedTo('moderate_forum'))
{
// Some basic color coding...
if (!empty($row['onlineColor']))
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '" style="color: ' . $row['onlineColor'] . ';">' . $row['realName'] . '</a>';
else
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '">' . $row['realName'] . '</a>';
// Bold any buddies.
if ($show_buddies && in_array($row['ID_MEMBER'], $user_info['buddies']))
{
$online['buddies']++;
$link = '<b>' . $link . '</b>';
}
$online['users'][$row['logTime'] . $row['memberName']] = array(
'id' => $row['ID_MEMBER'],
'username' => $row['memberName'],
'name' => $row['realName'],
'group' => $row['ID_GROUP'],
'href' => $scripturl . '?action=profile;u=' . $row['ID_MEMBER'],
'link' => $link,
'hidden' => empty($row['showOnline']),
'is_last' => false,
);
}
else
$online['hidden']++;
}
mysql_free_result($result);
if (!empty($online['users']))
{
krsort($online['users']);
$userlist = array_keys($online['users']);
$online['users'][$userlist[count($userlist) - 1]]['is_last'] = true;
}
$online['num_users'] = count($online['users']) + $online['hidden'];
$online['total_users'] = $online['num_users'] + $online['guests'];
echo '<table>
<tr>
<td><img src="' . $settings['images_url'] . '/dot.gif" alt="Dot" /></td>
<td>', $txt['sp-onlineguest'], '</td>
<td>:</td>
<td>', $online['guests'],'</td>
</tr>
<tr>
<td><img src="' . $settings['images_url'] . '/dot.gif" alt="Dot" /></td>
<td>', $txt['sp-onlineuser'], '</td>
<td>:</td>
<td>', $online['num_users'],'</td>
</tr>
<tr>
<td><img src="' . $settings['images_url'] . '/dot.gif" alt="Dot" /></td>
<td>', $txt['sp-onlinehuser'], '</td>
<td>:</td>
<td>', $online['hidden'],'</td>
</tr>
<tr>
<td><img src="' . $settings['images_url'] . '/dot.gif" alt="Dot" /></td>
<td>', $txt['sp-onlinetuser'], '</td>
<td>:</td>
<td>', $online['total_users'],'</td>
</tr>';
if(!empty($online['users']))
echo ' <tr>
<td><img src="' . $settings['images_url'] . '/dot.gif" alt="Dot" />
</td><td>', $txt['sp-onlineouser'], '</td>
<td>:</td>
<td> </td>
</tr>';
foreach ($online['users'] as $user)
echo '<tr>
<td colspan="4" style="padding-left: 15px;"><img src="' . $settings['images_url'] . '/useron.gif" alt="user" /> ',$user['hidden'] ? '<i>' . $user['link'] . '</i>' : $user['link'],'</td>
</tr>';
echo '</table>';
}
Quote from: dwd2000 on September 07, 2008, 10:43:09 AMQuoteQuote from: dwd2000 on September 06, 2008, 08:03:16 PMQuote from: LHVWB on September 06, 2008, 07:29:49 PM
Do a search for 'sp_whosOnline()' in the '/sources/SPortal.php' file. That is the function which you want to edit. The html is near the end of that function. You will have to change the '$txt['var']' parts of the code to the strings that you want, although I can show you how to do it differently if you want to retain multiple language support. ;)
By the way. I would like to remind everyone that you can also receive support for Simple Portal, on our very own website - SimplePortal.net (http://www.simpleportal.net). :D
Usually, I have no problem altering stuff, but in this case, I'm going to have to ask you to actually give me the codes I need and where to put them.
I have 3 websites using SMF and use quite a few mods. I find it a little easier to use the main SMF site for support. If I have anything else after this issue, I promise to use your site. O:)
P.S. - I just registered there. ;)
Just look for the words in the ../Themes/default/languages/SPortal.english.php and change them as you wish.
Sorry, but I'm still confused.
I think this is the part of the code in SPortal.php you are talking about:Code Selectfunction sp_whosOnline()
{
global $scripturl, $db_prefix, $user_info, $txt, $settings, $online;
$result = db_query("
SELECT
lo.ID_MEMBER, lo.logTime, mem.realName, mem.memberName, mem.showOnline,
mg.onlineColor, mg.ID_GROUP
FROM {$db_prefix}log_online AS lo
LEFT JOIN {$db_prefix}members AS mem ON (mem.ID_MEMBER = lo.ID_MEMBER)
LEFT JOIN {$db_prefix}membergroups AS mg ON (mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP))", __FILE__, __LINE__);
$online['users'] = array();
$online['guests'] = 0;
$online['hidden'] = 0;
$online['buddies'] = 0;
$show_buddies = !empty($user_info['buddies']);
while ($row = mysql_fetch_assoc($result))
{
if (!isset($row['realName']))
$online['guests']++;
elseif (!empty($row['showOnline']) || allowedTo('moderate_forum'))
{
// Some basic color coding...
if (!empty($row['onlineColor']))
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '" style="color: ' . $row['onlineColor'] . ';">' . $row['realName'] . '</a>';
else
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '">' . $row['realName'] . '</a>';
// Bold any buddies.
if ($show_buddies && in_array($row['ID_MEMBER'], $user_info['buddies']))
{
$online['buddies']++;
$link = '<b>' . $link . '</b>';
}
$online['users'][$row['logTime'] . $row['memberName']] = array(
'id' => $row['ID_MEMBER'],
'username' => $row['memberName'],
'name' => $row['realName'],
'group' => $row['ID_GROUP'],
'href' => $scripturl . '?action=profile;u=' . $row['ID_MEMBER'],
'link' => $link,
'hidden' => empty($row['showOnline']),
'is_last' => false,
);
}
else
$online['hidden']++;
}
mysql_free_result($result);
if (!empty($online['users']))
{
krsort($online['users']);
$userlist = array_keys($online['users']);
$online['users'][$userlist[count($userlist) - 1]]['is_last'] = true;
}
$online['num_users'] = count($online['users']) + $online['hidden'];
$online['total_users'] = $online['num_users'] + $online['guests'];
echo '<table>
<tr>
<td><img src="' . $settings['images_url'] . '/dot.gif" alt="Dot" /></td>
<td>', $txt['sp-onlineguest'], '</td>
<td>:</td>
<td>', $online['guests'],'</td>
</tr>
<tr>
<td><img src="' . $settings['images_url'] . '/dot.gif" alt="Dot" /></td>
<td>', $txt['sp-onlineuser'], '</td>
<td>:</td>
<td>', $online['num_users'],'</td>
</tr>
<tr>
<td><img src="' . $settings['images_url'] . '/dot.gif" alt="Dot" /></td>
<td>', $txt['sp-onlinehuser'], '</td>
<td>:</td>
<td>', $online['hidden'],'</td>
</tr>
<tr>
<td><img src="' . $settings['images_url'] . '/dot.gif" alt="Dot" /></td>
<td>', $txt['sp-onlinetuser'], '</td>
<td>:</td>
<td>', $online['total_users'],'</td>
</tr>';
if(!empty($online['users']))
echo ' <tr>
<td><img src="' . $settings['images_url'] . '/dot.gif" alt="Dot" />
</td><td>', $txt['sp-onlineouser'], '</td>
<td>:</td>
<td> </td>
</tr>';
foreach ($online['users'] as $user)
echo '<tr>
<td colspan="4" style="padding-left: 15px;"><img src="' . $settings['images_url'] . '/useron.gif" alt="user" /> ',$user['hidden'] ? '<i>' . $user['link'] . '</i>' : $user['link'],'</td>
</tr>';
echo '</table>';
}
I have also attached SPortal.english.php. I can't find the '$txt['var']' that refers to the wording. I can see the '$txt['var']' in SPortal.php, but can't find the corresponding place to make the edits.
Quote from: [SiNaN] on September 07, 2008, 11:24:45 AM
So did you solve your problem? :)
Quote from: dwd2000 on September 07, 2008, 11:31:05 AMQuote from: [SiNaN] on September 07, 2008, 11:24:45 AM
So did you solve your problem? :)
Yes. ;D
Now, I'm just trying to figure out how to put the number of spiders in the place of "Hidden Users". I've changed the text from "Hidden Users" to "Spiders", but just have to put the right code in place.
Thanks.
Quote from: robbie93 on September 11, 2008, 06:19:19 PMDid you ever try installing using the package manager?
hi I tried to manually install but there is a lot of the text on index.php that isnt the same as in the manual install, can anybody help? :D
function sp_whosOnline()
{
global $scripturl, $db_prefix, $user_info, $txt, $settings, $online, $modSettings;
$result = db_query("
SELECT
lo.ID_MEMBER, lo.logTime, lo.url, mem.realName, mem.memberName, mem.showOnline,
mg.onlineColor, mg.ID_GROUP
FROM {$db_prefix}log_online AS lo
LEFT JOIN {$db_prefix}members AS mem ON (mem.ID_MEMBER = lo.ID_MEMBER)
LEFT JOIN {$db_prefix}membergroups AS mg ON (mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP))", __FILE__, __LINE__);
$online['users'] = array();
$online['guests'] = 0;
$online['hidden'] = 0;
$online['buddies'] = 0;
$online['spiders'] = array();
$online['num_spiders'] = 0;
$show_buddies = !empty($user_info['buddies']);
while ($row = mysql_fetch_assoc($result))
{
if (empty($row['realName']))
{
// Get the request parameters..
$actions = @unserialize($row['url']);
// Is a spider?
$is_spider = ob_googlebot_getAgent($actions['USER_AGENT'], $spider_name, $agent);
if (!$is_spider)
$context['num_guests']++;
else
{
$context['num_spiders']++;
if ($modSettings['ob_googlebot_display_agent'])
$spider_name = $agent;
if ($modSettings['ob_googlebot_count_all_instances'] && $modSettings['ob_googlebot_display_all_instances'])
$context['spiders'][] = $spider_name;
else
$context['spiders'][$agent] = $spider_name;
}
continue;
}
elseif (!empty($row['showOnline']) || allowedTo('moderate_forum'))
{
// Some basic color coding...
if (!empty($row['onlineColor']))
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '" style="color: ' . $row['onlineColor'] . ';">' . $row['realName'] . '</a>';
else
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '">' . $row['realName'] . '</a>';
// Bold any buddies.
if ($show_buddies && in_array($row['ID_MEMBER'], $user_info['buddies']))
{
$online['buddies']++;
$link = '<b>' . $link . '</b>';
}
$online['users'][$row['logTime'] . $row['memberName']] = array(
'id' => $row['ID_MEMBER'],
'username' => $row['memberName'],
'name' => $row['realName'],
'group' => $row['ID_GROUP'],
'href' => $scripturl . '?action=profile;u=' . $row['ID_MEMBER'],
'link' => $link,
'hidden' => empty($row['showOnline']),
'is_last' => false,
);
}
else
$online['hidden']++;
}
mysql_free_result($result);
if (!empty($online['users']))
{
krsort($online['users']);
$userlist = array_keys($online['users']);
$online['users'][$userlist[count($userlist) - 1]]['is_last'] = true;
}
$online['num_users'] = count($online['users']) + $online['hidden'];
$online['total_users'] = $online['num_users'] + $online['guests'];
ksort($online['spiders']);
// Allowed user to see spiders online?
if (!allowedTo('googlebot_view'))
$online['spiders'] = array();
// Don't count all instances of a spider, only 1 for each different spider
if (!empty($context['spiders']) && !$modSettings['ob_googlebot_count_all_instances'])
$online['num_spiders'] = count($context['spiders']);
// Diplay how many instances of each spider
if (!empty($online['spiders']) && $modSettings['ob_googlebot_count_all_instances'] && $modSettings['ob_googlebot_display_all_instances'])
{
$spider_grouped = array_count_values($context['spiders']);
$online['spiders'] = array();
foreach ($spider_grouped as $k => $v)
$online['spiders'][$k] = $k . ($v == 1 ? '' : ' (' . $v . ')');
}
echo '<table>
<tr>
<td><img src="' . $settings['images_url'] . '/dot.gif" alt="Dot" /></td>
<td>', $txt['sp-onlineguest'], '</td>
<td>:</td>
<td>', $online['num_spiders'],'</td>
</tr>
<tr>
<td><img src="' . $settings['images_url'] . '/dot.gif" alt="Dot" /></td>
<td>', $txt['sp-onlineuser'], '</td>
<td>:</td>
<td>', $online['num_users'],'</td>
</tr>
<tr>
<td><img src="' . $settings['images_url'] . '/dot.gif" alt="Dot" /></td>
<td>', $txt['sp-onlinehuser'], '</td>
<td>:</td>
<td>', $online['hidden'],'</td>
</tr>
<tr>
<td><img src="' . $settings['images_url'] . '/dot.gif" alt="Dot" /></td>
<td>', $txt['sp-onlinetuser'], '</td>
<td>:</td>
<td>', $online['total_users'],'</td>
</tr>';
if(!empty($online['users']))
echo ' <tr>
<td><img src="' . $settings['images_url'] . '/dot.gif" alt="Dot" />
</td><td>', $txt['sp-onlineouser'], '</td>
<td>:</td>
<td> </td>
</tr>';
foreach ($online['users'] as $user)
echo '<tr>
<td colspan="4" style="padding-left: 15px;"><img src="' . $settings['images_url'] . '/useron.gif" alt="user" /> ',$user['hidden'] ? '<i>' . $user['link'] . '</i>' : $user['link'],'</td>
</tr>';
echo '</table>';
}
Quote from: learjet45 on September 11, 2008, 06:45:01 PMNo, and I sure would like to! where is the darn thing? I went round and round in SF modifications site, and then I looked in packages manager on my new forum site, and I do not see any way to get to a package for simpleportal. GRRR! :pQuote from: robbie93 on September 11, 2008, 06:19:19 PMDid you ever try installing using the package manager?
hi I tried to manually install but there is a lot of the text on index.php that isnt the same as in the manual install, can anybody help? :D
Quote from: learjet45 on September 12, 2008, 10:29:31 PMYESSSSS! Thank you for a perfectly clear little how-to! :D
Alright.
First off, click this link:
http://custom.simplemachines.org/mods/index.php?action=download;mod=1104;id=65064
And then save the file somewhere on your computer.
At your forum, go to the admin control panel ( http://your-forum-url.com/index.php?action=admin should work)
On the left hand side of the page, you should see something similar to the photo in the attachment (you shouldnt have anything about the gallery). Click on where it says 'Packages' and go to the 'Download Packages' page. ( http://your-forum-url.com/index.php?action=packageget should work)
Upload the .zip file and then it will be uploaded to your server. Then hit apply mod, install, and youre done.
Quote from: F.L.A.M.E.R on September 14, 2008, 05:45:17 AM
@feelingshehides,
Serious lolz. :D
Hahahahaha... i think u have like millions of mods installed there..
Quote from: LHVWB on September 14, 2008, 05:31:43 PM
@feelingshehides and F.L.A.M.E.R,
It isn't the number of mods that feelingshehides has that counts, its the fact that he's trying to install it on a completly different version of SMF.
Quote from: LHVWB on September 14, 2008, 05:31:43 PMThank you for that link, I have been making some progress by getting it to work on another similar hosting plan, so you are right about it NOT being mod-specific. I'll come back to edit those posts to confirm that after the fix. I have to compare some configuration settings.
@wizeguy17,
As Eliana said on the SimplePortal.net website, I don't believe that this error is related to SimplePortal, try asking in the correct support forum (http://www.simplemachines.org/community/index.php?board=9.0).
Quote from: dragm1 on September 17, 2008, 04:23:02 PMWhat theme are you using?
i need to add a button that goes to my forum page (how it looks when simpleportal is not active)
how do i do this?
Quote from: LHVWB on September 18, 2008, 03:54:01 AM
@lakechurch,
Which specific block are you referring to?
I am sorry for the unclearance, I don't mean a block but an article. If you make a post and make it an article everything goes good except it doesn't show the attachment (image) on the frontpage but only in the post. Is it possible that it shows the image (included as an attachment) also in the article?
Quote from: Running With Scissors on September 18, 2008, 01:38:26 PM
Is this going to come out for 2.0 beta 4
Quote from: Eliana Tamerin on September 18, 2008, 02:47:56 PMSweet! I know this might be a annoying question but when are you estimating this project to be done? I understand if you are not allowed to say.Quote from: Running With Scissors on September 18, 2008, 01:38:26 PM
Is this going to come out for 2.0 beta 4
Yes, we are currently working on a version compatible with SMF 2.0 beta 4. Fear not! :D
Quote from: Running With Scissors on September 18, 2008, 05:30:32 PMQuote from: Eliana Tamerin on September 18, 2008, 02:47:56 PMSweet! I know this might be a annoying question but when are you estimating this project to be done? I understand if you are not allowed to say.Quote from: Running With Scissors on September 18, 2008, 01:38:26 PM
Is this going to come out for 2.0 beta 4
Yes, we are currently working on a version compatible with SMF 2.0 beta 4. Fear not! :D
Quote from: Eliana Tamerin on September 18, 2008, 08:42:05 PMQuote from: Running With Scissors on September 18, 2008, 05:30:32 PMQuote from: Eliana Tamerin on September 18, 2008, 02:47:56 PMSweet! I know this might be a annoying question but when are you estimating this project to be done? I understand if you are not allowed to say.Quote from: Running With Scissors on September 18, 2008, 01:38:26 PM
Is this going to come out for 2.0 beta 4
Yes, we are currently working on a version compatible with SMF 2.0 beta 4. Fear not! :D
When it's ready.
Sound familiar? Yeah, SMF uses it, too. We thought it fit so well, no need to give ourselves time limits and deadlines to degrade the quality of the product.
Quote from: dragm1 on September 17, 2008, 04:23:02 PM
i need to add a button that goes to my forum page (how it looks when simpleportal is not active)
how do i do this?
<div style="text-align: center;">
<h1><a href="http://Yourstiename.here/index.php?action=forum">Enter the Fray</a></h1>
<hr width="20" />
<a href="http://yoursitenamehere.com/index.php?action=forum"><img src="http://Your Image for the link here" alt="forum" /></a>
</div>
Quote from: LHVWB on September 19, 2008, 03:07:11 AM
@lakechurch,
At the moment, that is not possible. The articles page on the front can't show a list of attachments. Although it will show images that are posted within the posts themselves, would it be possible for you to attach the images to the post and then put them in the post as well using [img][/img] tags? (You can get the image/attachment location by right clicking and clicking the 'Properties'/'Copy image location' option).
Quote from: ruckstande on September 20, 2008, 09:47:23 PM
Since I had to download separate files for 2.0.2 will I have a problem with 2.0.4?
Quote from: jusplay77 on September 21, 2008, 07:07:53 PM
SiNaN, you never cease to amaze! I've had your Simple Portal mod on my older forum since it's creation and now that I have come back to add it again to my new forum; It has been improved 10 times over! Great work!
Which brings me to my question :)
I have recently upgraded from SMF Gallery Lite 1.9 to SMF Media Gallery 1.0.2 (http://www.simplemachines.org/community/index.php?topic=260821.0) as it is far superior and free (compared to the SMF Gallery Pro). However the pre-programmed Gallery Block in the Portal does not work with SMF Media Gallery 1.0.2.
While I can navigate through php fairly well, I am not to the point where I can write my own php. Could you please post the code I would need to add a PHP block and have it work as a Random Gallery Image from the new SMF Media Gallery.
Thanks!
Quote from: Talismen on September 24, 2008, 02:32:29 PM
Does anyone know if SP 2.0.x (a.k.a. "classic") will run ok with this mod:
http://custom.simplemachines.org/themes/index.php?lemma=158
Thanks!
Tal
(PS - I heard Sinan is "retiring" from the SP project. Sinan - I wish you all the best, and thank you (and the SP team) once again for this fantastic mod! *hugs* )
Quote from: Talismen on September 24, 2008, 02:32:29 PM
Does anyone know if SP 2.0.x (a.k.a. "classic") will run ok with this mod:
http://custom.simplemachines.org/themes/index.php?lemma=158
Thanks!
Tal
(PS - I heard Sinan is "retiring" from the SP project. Sinan - I wish you all the best, and thank you (and the SP team) once again for this fantastic mod! *hugs* )
Quote from: Talismen on September 24, 2008, 02:39:41 PM
Nevermind...just tried it.
It didn't work.
;)
Quote from: Eliana Tamerin on September 24, 2008, 03:28:48 PMQuote from: Talismen on September 24, 2008, 02:32:29 PM
Does anyone know if SP 2.0.x (a.k.a. "classic") will run ok with this mod:
http://custom.simplemachines.org/themes/index.php?lemma=158
Thanks!
Tal
(PS - I heard Sinan is "retiring" from the SP project. Sinan - I wish you all the best, and thank you (and the SP team) once again for this fantastic mod! *hugs* )
That's a theme?Quote from: Talismen on September 24, 2008, 02:39:41 PM
Nevermind...just tried it.
It didn't work.
;)
What didn't work? You'll have to make manual edits for that theme to work properly. Two or three if I recall.
Quote from: Costa on September 24, 2008, 06:39:43 PM
Wich file I need to translate and post here?
I want to translate to Brazilian
Thanks for the answers
Quote from: Talismen on September 24, 2008, 02:32:29 PM
(PS - I heard Sinan is "retiring" from the SP project. Sinan - I wish you all the best, and thank you (and the SP team) once again for this fantastic mod! *hugs* )
Quote from: Soms on September 24, 2008, 07:07:18 PMQuote from: Talismen on September 24, 2008, 02:32:29 PM
(PS - I heard Sinan is "retiring" from the SP project. Sinan - I wish you all the best, and thank you (and the SP team) once again for this fantastic mod! *hugs* )
What a shame! Sinan, thanks for your creativity, vision and support. For me you'll always be Mr. Simple Portal. Good luck in your new endeavours. O:) O:)
Quote from: Kat on September 25, 2008, 09:03:24 AM
That's because the portal, like other mods, is only applied to the SMF dfault theme.
You have to edit custom themes, manually. That's why none of the images show, too.
// Show the [help] button.
// Show the [forum] button.
echo ($current_action=='forum' || $context['browser']['is_ie4']) ? '<td class="maintab_active_first"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action=='forum' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=forum">'.$txt['sp-forum'].'</a>
</td>' , $current_action=='forum' ? '<td class="maintab_active_last"> </td>' : '';
// Show the [help] button.
, 'login', 'help', 'pm'
, 'login', 'help', 'pm', 'forum', 'spadmin'
$current_action = 'search';
$current_action = 'search';
if (isset($_GET['board']) || isset($_GET['topic']))
$current_action = 'forum';
if ($context['current_action']=='spadmin')
$current_action = 'admin';
Quote from: runebergen on October 05, 2008, 07:02:33 PM
what :o :( :-X :'( Just learned that [SiNaN] has retired from this project....
Hope that wont affect one of the very best mods there is for SMF.
[SiNaN] has a view and instinct for features lots of us want want, and sad to hear him leave this project....
Just want to express my utter appreciation for all the mods [SiNaN] has done, as its made SMF shine on my sites...
O:)
Quote from: runebergen on October 05, 2008, 07:02:33 PM
what :o :( :-X :'( Just learned that [SiNaN] has retired from this project....
Hope that wont affect one of the very best mods there is for SMF.
[SiNaN] has a view and instinct for features lots of us want want, and sad to hear him leave this project....
Just want to express my utter appreciation for all the mods [SiNaN] has done, as its made SMF shine on my sites...
O:)
Quote from: FITE-COMMANDER on October 05, 2008, 11:58:59 PM
Oh man i feel you. That was a great mod. Great mods are hard work and lots of time. And good workers with such a skill are hard to find. I hope this mod expansion is not effected as much like Tiny Portal.
Quote from: Kat on October 06, 2008, 02:05:22 PMBoard News Block? ;)
Silly question time...
In the News block, I have a thread that I want to show.
I got it OK, but it changes every time a post is made on the same board.
The post's sticky, too, which seems to complicate things.
How do I discover what the post ID is?
The link is http://www.tlakoc.org.uk/index.php/topic,7022.0.html and using 7022, 7022.0 and 0 don't work.
Any clues, please?
Quote from: Kat on October 07, 2008, 07:26:27 AMOn Version 2.0.5 there will be a short help description for each parameter, so it will be easier to know what you can do there ;).
Well, by trial and error, I found an ID that works.
It'll change, of course, the next time there's a post on that board, sadly. When that happens, I'll give that a try, ディン1031.
Not sure how the "Article" thing works, to be honest. I guess I'll try things out andscrew things upsee what happens.
Ta!
Quote from: LHVWB on October 10, 2008, 04:29:48 AM
SimplePortal Classic 2.0.5 Released! (http://simpleportal.net/index.php?topic=527)
SimplePortal Classic 2.0.5 has now been release, click the link above to see the annoucement topic. :D
Quote
Parse error: syntax error, unexpected '<' in /home/sites/foreverlastingfriends.co.cc/public_html/Sources/SPortal1-1.php(1646) : eval()'d code on line 1
Quote from: LHVWB on October 10, 2008, 04:29:48 AMWow... Cheer !!!!
SimplePortal Classic 2.0.5 Released! (http://simpleportal.net/index.php?topic=527)
SimplePortal Classic 2.0.5 has now been release, click the link above to see the annoucement topic. :D
Quote from: Gà Mái on October 01, 2008, 01:07:46 PM
I want my board like http://simpleportal.net that -> when i click any link on my site, the theme will always show left side blocks. When i click on the HOME tab, it has left side blocks and right side blocks.
My board, when i click the FORUM tab, it has only forum theme, the left side blocks is not apear.
Help me pls! Thanks!!!
Quote from: LHVWB on October 01, 2008, 10:06:21 PM
@Gà Mái,
This portal, just like all other mods is only applied to the SMF core theme. You will have to manually add buttons/tabs for all of your custom themes, I can help you with that if necessary.
Also the feature that you described, with blocks in the forum itself is a part of an unreleased version of SimplePortal 2.1, which we are planning to release within a fairly short period of time.
global $mbname, $user_info;
echo '
Hello ', !empty($user_info['username']) ? ($user_info['username']) : 'Guest', ',<br />
Welcome to ', $mbname, ',';
Quote from: LHVWB on October 10, 2008, 10:03:42 PM
@Gà Mái
Thank you for your patience, the SimplePortal 2.1 version should be ready within the next week or two, hopefully you won't have to wait much longer! ;)
Fatal error: require_once() [function.require]: Failed opening required '/home/c977th/public_html/clanless/Sources/SPortalAdmin.php' (include_path='.:/usr/local/php52/pear') in /home/c977th/public_html/clanless/index.php on line 382
Quote from: Gà Mái on October 10, 2008, 12:51:00 PMQuote from: LHVWB on October 10, 2008, 04:29:48 AMWow... Cheer !!!!
SimplePortal Classic 2.0.5 Released! (http://simpleportal.net/index.php?topic=527)
SimplePortal Classic 2.0.5 has now been release, click the link above to see the annoucement topic. :D
Thank you very much. I love this mod !!! (^_-)
Quote from: asudhakar on October 11, 2008, 11:31:00 AM
No Reply at Simple Portal for last 2 days.
http://simpleportal.net/index.php?topic=532.0 - Install error for Simpleportal 2.0.5
QuoteLine 3994 in BOLD
// Add a forum button for the Simple Portal Mod.
'forum' => array(
'title' => $txt['sp-forum'],
Quote from: edi67 on October 11, 2008, 01:44:58 PMI don't know why this happen... because we insert a text for it, i hope this solve the problem.
everything work ok with Simpleportal only one little graphic problem for me, viewing the article i have one double line HR after the title of article look pics attached
here my url:
http://ediboard.altervista.org/index.php
there is way for remove this line?
also NNEONSHOUTBOX not work and my chat too because i have this ERROR:
Notice: Undefined index: sp-forum in /membri/ediboard/Sources/Subs.php on line 3994QuoteLine 3994 in BOLD
// Add a forum button for the Simple Portal Mod.
'forum' => array(
'title' => $txt['sp-forum'],
Quote from: mymktp1 on October 12, 2008, 02:42:06 AMUnpack the Package File, and than upload the Upgrade1-1.php to your server, and call the file. It will upgarde any database Version...
Oh... Also I tried upgrading to a 2.0.5 and I got this error ...
Unknown column 'force_view' in 'field list'
File: /hsphere/local/home/kitping/timsradio.net/smf/Sources/Subs-SPortal1-1.php
Line: 43
can you please help me with this
Quote from: mymktp1 on October 12, 2008, 02:13:08 AMHow are your current permission settings for the blocks?
Hi, I was wondering how to have all guests and members to be able to view the html Blocks ? At the moment it only displays the articles for the guests.... however if you log in you then are able to view the blocks ... I want my guests to be able to see the portal blocks...
Quote from: ousu on October 14, 2008, 11:38:43 AMYes you can upgrade it, but you will lose costum changes on the SPortal.php, because this file will be replaced with SPortal1-1.php. All database things will be leave like before, and will be updated to the newest version :).
Can I just upgrade to 2.0.4 to 2.0.5 with out un-installing 2.0.4 ?
Quote from: asudhakar on October 16, 2008, 04:17:39 PM*drop* i answered this already... but okay
I have installed in smf 2.0.4, the version i use 2.0.5 classic.
It shows this error ever click made on Portal Page.
8: Undefined variable: scripturl
Apply Filter: Only show the errors from this file
File: /home/itacumen/public_html/discuss/Themes/default/SPortal2.template.php (main sub template - eval?)
Line: 18
8: Undefined variable: scripturl
Apply Filter: Only show the errors from this file
File: /home/itacumen/public_html/discuss/Themes/default/SPortal2.template.php (main sub template - eval?)
Line: 19
8: Undefined variable: scripturl
Apply Filter: Only show the errors from this file
File: /home/itacumen/public_html/discuss/Themes/default/SPortal2.template.php (main sub template - eval?)
Line: 20
....
..
.
.
.
.
.
.
..
...
8: Undefined variable: scripturl
Apply Filter: Only show the errors from this file
File: /home/itacumen/public_html/discuss/Themes/default/SPortal2.template.php (main sub template - eval?)
Line: 31
Quote from: PatrickSBF on October 18, 2008, 03:18:42 PMThis will come in Version 2.1 ;).
Hi all, as you can see this will be my first post/question, I hope to not make this a habit.
I'm wondering, how do I get the "main" forum to appear in the center between my left and right blocks without having to use pieces of the forum.
I like the forum to appear the same in the center as like I wasn't using a portal and just add a couple
blocks on each side of it.
Thanks for any help,
Pat
Quote from: Haitisports on October 18, 2008, 04:34:50 PMIn the packaged is a File called Upgrade1-1.php. (Normal this file should be called on an upgrade...).
Hi all. After I downloaded the new sportal version, I see this in my home page:
"Unknown column 'permission_type' in 'field list'
File: /home/www/haiti-sports.com/smf/Sources/Subs-SPortal1-1.php
Line: 43
Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.6, while your database is at version 1.1.2. The above error might possibly go away if you execute the latest version of upgrade.php."
How can I do that? (pleeeease!)
Quote from: BurkeKnight on October 20, 2008, 11:32:12 PMHum i thought we leave the old Version 2.0.4 on the site...
Is there a way to upgrade from SimplePortal 2.0 to 2.0.5?
It'll take a lot of manual edits to uninstall 2.0 then install 2.0.5 on my 2 forums.
I'm using the Dilber MC Theme by HarzeM on both forums, and numerous other mods.
On both forums, when click uninstall, I get:
1. Execute Modification ./index.php Test failed
4. Execute Modification ./Sources/ManagePermissions.php Test failed
8. Execute Modification ./Themes/default/index.template.php Test failed
Yet, that does not include all the other manual edits to my theme.
Any ideas on what to do?
Quote from: tk2012 on October 21, 2008, 12:14:42 AMHum a forgotten text string...
I installed 2.0.5 version of this today and the installation was fine. After playing around with what I wanted to see on the page, I looked back at my error log and I have 22 pages of the same error posted below.
Looks like all the members are causing it and not just one. Here is the log and the part of the file.
using on v2.0 b4.0 on default theme (just color changes)
global $scripturl, $modSettings, $sourcedir;
require_once("/****/html/hraus/SSI.php");
$now = mktime() + $modSettings['time_offset'] * 3600;
$today = date('j',$now);
$year = date("Y",$now);
$month = date("n",$now);
$days = array();
$day_name_length = 3;
$month_href = $scripturl . '?action=calendar';
$first_day = 0;
$pn = array();
$first_of_month = gmmktime(0,0,0,$month,1,$year);
#remember that mktime will automatically correct if invalid dates are entered
# for instance, mktime(0,0,0,12,32,1997) will be the date for Jan 1, 1998
# this provides a built in "rounding" feature to generate_calendar()
#retrieve this month events, holydays and birthdays
$days_in_month = gmdate('t',$first_of_month);
include_once($sourcedir . '/Calendar.php');
$low_date = $year.'-'.$month.'-01';
$high_date = $year.'-'.$month.'-'.$days_in_month;
$events = calendarEventArray($low_date, $high_date);
$birthdays = calendarBirthdayArray($low_date, $high_date);
#add important days to the days array
foreach($events as $startdate => $value)
$days[substr($startdate,8)] = array(NULL,NULL,'<a class="smalltext" style="color: steelblue; font-weight: bold; background-color: '.(substr($startdate,8)<$today ? 'lightblue' : 'yellow').'; padding: 0px 4px 0px 4px;" href="'.$scripturl.'?action=calendar;sa=post;month='.$month.';year='.$year.';day='.substr($event['start_date'],8).'" target="_self">'.substr($startdate,8).'</a>');
foreach($birthdays as $startdate => $value)
$days[substr($startdate,8)] = array(NULL,NULL,'<a class="smalltext" style="color: steelblue; font-weight: bold; background-color: '.(substr($startdate,8)<$today ? 'lightblue' : 'yellow').'; padding: 0px 4px 0px 4px;" href="'.$scripturl.'?action=calendar;sa=post;month='.$month.';year='.$year.';day='.substr($birth['start_date'],8).'" target="_self">'.substr($startdate,8).'</a>');
$today_date = $year.'-'.($month<10 ? '0'.$month : $month).'-'.$today;
if(empty($events[$today_date]))
$days[$today] = array(NULL,NULL,'<a class="smalltext" style="color: steelblue; font-weight: bold; border: solid 1px black; background-color: white; padding: 0px 4px 0px 4px;" href="'.$scripturl.'?action=calendar;sa=post;month='.$month.';year='.$year.';day='.$today.'" target="_self">'.$today.'</a>');
else
$days[$today] = array(NULL,NULL,'<a class="smalltext" style="color: steelblue; font-weight: bold; border: solid 1px black; background-color: yellow; padding: 0px 4px 0px 4px;" href="'.$scripturl.'?action=calendar;sa=post;month='.$month.';year='.$year.';day='.$today.'" target="_self">'.$today.'</a>');
$day_names = array(); #generate all the day names according to the current locale
for($n=0,$t=(3+$first_day)*86400; $n<7; $n++,$t+=86400) #January 4, 1970 was a Sunday
$day_names[$n] = ucfirst(gmstrftime('%A',$t)); #%A means full textual day name
list($month, $year, $month_name, $weekday) = explode(',',gmstrftime('%m,%Y,%B,%w',$first_of_month));
$weekday = ($weekday + 7 - $first_day) % 7; #adjust for $first_day
$title = htmlentities(ucfirst($month_name)).' '.$year; #note that some locales don't capitalize month and day names
#Begin calendar. Uses a real <caption>. See http://diveintomark.org/archives/2002/07/03
@list($p, $pl) = each($pn); @list($n, $nl) = each($pn); #previous and next links, if applicable
if($p) $p = '<span class="smalltext">'.($pl ? '<a href="'.htmlspecialchars($pl).'">'.$p.'</a>' : $p).'</span> ';
if($n) $n = ' <span class="smalltext">'.($nl ? '<a href="'.htmlspecialchars($nl).'">'.$n.'</a>' : $n).'</span>';
$calendar = '<table>'."\n".
'<caption >'.$p.($month_href ? '<a href="'.htmlspecialchars($month_href).'">'.$title.'</a>' : $title).$n."</caption>\n<tr>";
if($day_name_length){ #if the day names should be shown ($day_name_length > 0)
#if day_name_length is >3, the full name of the day will be printed
foreach($day_names as $d)
$calendar .= '<th class="smalltext" abbr="'.htmlentities($d).'">'.htmlentities($day_name_length < 4 ? substr($d,0,$day_name_length) : $d).'</th>';
$calendar .= "</tr>\n<tr style=\"text-align:right;\">";
}
if($weekday > 0) $calendar .= '<td class="smalltext" colspan="'.$weekday.'"> </td>'; #initial 'empty' days
for($day=1,$days_in_month=gmdate('t',$first_of_month); $day<=$days_in_month; $day++,$weekday++){
if($weekday == 7){
$weekday = 0; #start a new week
$calendar .= "</tr>\n<tr style=\"text-align:right;\">";
}
if(isset($days[$day]) and is_array($days[$day])){
@list($link, $classes, $content) = $days[$day];
if(is_null($content)) $content = $day;
$calendar .= '<td "'.($classes ? ' class="'.htmlspecialchars($classes).'">' : '>').
($link ? '<a href="'.htmlspecialchars($link).'">'.$content.'</a>' : $content).'</td>';
}
else
{
$calendar .= "<td class=\"smalltext\" style=\"padding-right:4px;\"><a";
if(((($weekday+$first_day) % 7)==0))
{
$calendar .= ' style="color:#C00000;"';
}
$calendar .= " href=\"".$scripturl."?action=calendar;sa=post;month=".$month.";year=".$year.";day=".$day."\" target=\"_self\">$day</a></td>";
}
}
if($weekday != 7) $calendar .= '<td class="smalltext" colspan="'.(7-$weekday).'"> </td>'; #remaining "empty" days
echo $calendar.'</tr>';
#crate notice for the next N days events. N is set in Settings.
if (ssi_todaysCalendar('')) {
$result = ssi_todaysCalendar('');
if(!empty($result['birthdays'])){
echo '<tr><td><hr></td><td colspan="5" class="smalltext" align="center"><b>Birthdays</b></td><td><hr></td></tr><td colspan="7" class="smalltext">';
$birthdays = $result['birthdays'];
echo '
<span style="color: #' . $modSettings['cal_bdaycolor'] . ';">' . $txt['calendar3b'] . '</span><br />';
foreach( $birthdays as $member )
echo '
<a href="', $scripturl, '?action=profile;u=', $member['id'], '">', $member['name'], isset($member['age']) ? ' (' . $member['age'] . ')' : '', '</a>', '<br />';
echo '</td></tr>';
}
if(!empty($result['events']))
{
echo '<tr><td><hr></td><td colspan="5" class="smalltext" align="center"><b>Upcomings</b></td><td><hr></td></tr><td colspan="7" class="smalltext">';
echo '
<span style="color: #' . $modSettings['cal_eventcolor'] . ';">' . $txt['calendar4b'] . '</span><br /> ';
$events = $result['events'];
foreach ($events as $event)
{
echo '
'.substr($event['start_date'],8).'/'.substr($event['start_date'],5 , 2).':';
if ($event['can_edit'])
echo '
<a href="' . $event['modify_href'] . '" style="color: #FF0000;">*</a> ';
echo '
' . $event['link'] . '<br />';
}
}
echo '</td></tr>';
}
echo '</table>';
Quote from: BOS4O on October 23, 2008, 06:31:21 PM
hey something go wrong whn i installed the new version... i have 2 copyrights now... how to remove one of them? :o
Quote from: BOS4O on October 25, 2008, 10:56:48 AMQuote from: BOS4O on October 23, 2008, 06:31:21 PM
hey something go wrong whn i installed the new version... i have 2 copyrights now... how to remove one of them? this is my forum seee the bottom http://lfs-bg.net :o
where is the creator of this thing to help me ?
<br />
after sportal_vital(); or before your copyright (Copyright © 2008 - BurkeKnight Enterprises.) that can be removed. Just be careful not to delete anything in the SMF copyright code.
<div id="footerarea"
<div id="footerarea" style="padding-top:0px;"
'<br />',
before the theme copyright is what is causing the space. If that was removed, would it mess up the official copyright?
QuoteTheCode Select'<br />',
before the theme copyright is what is causing the space. If that was removed, would it mess up the official copyright?
<!-- Start of StatCounter Code -->
<script type="text/javascript">
var sc_project=4149277;
var sc_invisible=1;
var sc_partition=51;
var sc_click_stat=1;
var sc_security="b4fc931c";
</script>
<script type="text/javascript" src="http://www.statcounter.com/counter/counter.js"></script><noscript><div class="statcounter"><a title="web analytics" href="http://www.statcounter.com/" target="_blank"><img class="statcounter" src="http://c.statcounter.com/4149277/0/b4fc931c/1/" alt="web analytics" ></a></div></noscript>
<!-- End of StatCounter Code -->
#footerarea ul li.copywrite
{
display: block;
line-height: 1;
font-size: small;
padding: 1em;
}
#footerarea ul li.copywrite
{
display: block;
line-height: 1;
font-size: small;
padding: 0;
}
#footerarea {
text-align: center;
padding: 17px;
}
#footerarea {
text-align: center;
padding: 0px;
}
Quote8: Undefined index: smf82
Apply Filter: Only show the errors from this file
File: /Sources/SPortal2.php
Line: 1010
Quote8: Undefined variable: scripturl
Apply Filter: Only show the errors from this file
File: /Themes/default/SPortal2.template.php (main sub template - eval?)
Line: 58
Quote8: Undefined variable: scripturl
Apply Filter: Only show the errors from this file
File: /Themes/default/SPortal2.template.php (main sub template - eval?)
Line: 8
Quote8: Undefined variable: scripturl
Apply Filter: Only show the errors from this file
File: /Themes/default/SPortal2.template.php (main sub template - eval?)
Line: 5
$txt['sp-forum'] = 'Forum';
Quote from: BurkeKnight on October 27, 2008, 12:22:52 AMPlease insert in your custom php blocks the global $scripturl;. At the first line.
Just to let you know, I seem to be getting a lot of errors in my SMF 2.0 Beta 4 site.Quote8: Undefined index: smf82
Apply Filter: Only show the errors from this file
File: /Sources/SPortal2.php
Line: 1010Quote8: Undefined variable: scripturl
Apply Filter: Only show the errors from this file
File: /Themes/default/SPortal2.template.php (main sub template - eval?)
Line: 58Quote8: Undefined variable: scripturl
Apply Filter: Only show the errors from this file
File: /Themes/default/SPortal2.template.php (main sub template - eval?)
Line: 8Quote8: Undefined variable: scripturl
Apply Filter: Only show the errors from this file
File: /Themes/default/SPortal2.template.php (main sub template - eval?)
Line: 5
QuoteCould not find the gallery installation
Quote from: Evil Eli on October 27, 2008, 05:24:10 PM
Go into SPortal.{language}.php where {language} is your language file (most likely English) and see if $txt[sp-forum] exists. If not, insert the following line before the ?> at the bottom.Code Select$txt['sp-forum'] = 'Forum';
Save and upload and it should be fixed.
Quote from: SimplePortal Team on March 10, 2008, 11:16:07 PM
- Link to Support/Management Website (http://simpleportal.net/index.php)
Quote from: fiveflat on October 29, 2008, 01:20:01 PM
I've searched the forum but not sure if I searched properly. I can't believe I'm the only one that can't get the "gallery" block to see the SMF Media Gallery?
I added the built in simpleportal block "SMF Gallery" to my blocks, but I get an error in the block that says:QuoteCould not find the gallery installation
Quote from: chrisb on October 31, 2008, 05:28:41 PMUnpack the package tar.gz file, and upload the included Upgrade1-1.php into the forums base directory and call that file with the browser.
Database Error
Unknown column 'permission_type' in 'field list'
File: /home/cxtxtsju/public_html/forum/Sources/Subs-SPortal1-1.php
Line: 43
When i have installed this on to our forum this will come up
Quote from: ディン1031 on November 01, 2008, 07:17:38 AMQuote from: chrisb on October 31, 2008, 05:28:41 PMUnpack the package tar.gz file, and upload the included Upgrade1-1.php into the forums base directory and call that file with the browser.
Database Error
Unknown column 'permission_type' in 'field list'
File: /home/cxtxtsju/public_html/forum/Sources/Subs-SPortal1-1.php
Line: 43
i cant find the file you have suggested
When i have installed this on to our forum this will come up
Bye
DIN1031
Quote from: Bugpac ™ on October 29, 2008, 11:06:15 PMQuote from: Evil Eli on October 27, 2008, 05:24:10 PM
Go into SPortal.{language}.php where {language} is your language file (most likely English) and see if $txt[sp-forum] exists. If not, insert the following line before the ?> at the bottom.Code Select$txt['sp-forum'] = 'Forum';
Save and upload and it should be fixed.
I am getting the same error in default theme, I just checked and that line is in my sportal.english.php file. any other ideas?
// Start the linktree off empty..we need forum for portal
$context['linktree'] = array(array('url' => $scripturl . '?action=forum', 'name' => 'Forum'));
Quote
1. SMF 1.0.12 / 1.1.4 / 2.0 b1.1 Update 1.0 [ List Files ] [ Delete ]
2. SMF 1.0.14 / 1.1.6 Update 1.0 [ Uninstall ] [ List Files ] [ Delete ]
3. Order News 1.0.5 [ List Files ] [ Delete ]
4. SimplePortal 2.0.2 [ List Files ] [ Delete ]
5. Welcome Topic Mod 1.1 [ Uninstall ] [ List Files ] [ Delete ]
6. SimplePortal 2.0.4 [ List Files ] [ Delete ]
7. SMF 1.0.13 / 1.1.5 / 2.0 b3.1 Update 1.0 [ List Files ] [ Delete ]
8. SimplePortal 2.0.1 [ List Files ] [ Delete ]
9. SimplePortal Classic 2.0.5 [ Uninstall ] [ List Files ] [ Delete ]
10. SMF 1.0.11 / 1.1.3 Update 1.1 [ List Files ] [ Delete ]
Quote from: Talismen on November 02, 2008, 12:06:31 PMhttp://simpleportal.net/index.php?topic=551.0 (http://simpleportal.net/index.php?topic=551.0)
I'm using the default theme, and noticed that upon my "apply files" of 2.0.5 (from 2.0.4), that when I log in, I'm taken to the forum, and not the portal. Was this by design?
If so, can I change it, or will there be a choice in upcoming versions of SP?
I'd like to log in and be taken directly to my portal.
It seems like, in the past, that was always the case, with past versions. (Hopefully I'm remembering that correctly.)
Quote from: LHVWB
Find and remove this code from your 'Subs.php' file. Remember that it will remove it for all redirects.Code Select//We need the empty redirect for the smf portal go to the action=forum site =)
if((empty($setLocation) || $scripturl == $setLocation) && !empty($modSettings['portalactive']))
$setLocation = 'action=forum';
Quote from: Talismen on November 02, 2008, 12:06:31 PM
Also, I noticed that when I loaded the 2.0.5 package, I didn't have a "upgrade" tag, only "Apply files" and "List files". Should I have had an "upgrade" tag as well?
Quote from: Manu0372 on November 02, 2008, 02:12:35 PMQuote from: Talismen on November 02, 2008, 12:06:31 PMhttp://simpleportal.net/index.php?topic=551.0 (http://simpleportal.net/index.php?topic=551.0)
I'm using the default theme, and noticed that upon my "apply files" of 2.0.5 (from 2.0.4), that when I log in, I'm taken to the forum, and not the portal. Was this by design?
If so, can I change it, or will there be a choice in upcoming versions of SP?
I'd like to log in and be taken directly to my portal.
It seems like, in the past, that was always the case, with past versions. (Hopefully I'm remembering that correctly.)Quote from: LHVWB
Find and remove this code from your 'Subs.php' file. Remember that it will remove it for all redirects.Code Select//We need the empty redirect for the smf portal go to the action=forum site =)
if((empty($setLocation) || $scripturl == $setLocation) && !empty($modSettings['portalactive']))
$setLocation = 'action=forum';
Be sure, when you make manual edits in SimplePortal files, it can be happen, you can't make any upgrades. ;)Quote from: Talismen on November 02, 2008, 12:06:31 PM
Also, I noticed that when I loaded the 2.0.5 package, I didn't have a "upgrade" tag, only "Apply files" and "List files". Should I have had an "upgrade" tag as well?
Could be you will find the "upgrade" link direct in the list of the installed packages. That's what I did, I loaded up the new version via package manager, went back to my list of mods and there I saw in the row of the SimplePortal Mod the "upgrade" link
Quote from: Eliana Tamerin on October 27, 2008, 05:24:10 PM
Go into SPortal.{language}.php where {language} is your language file (most likely English) and see if $txt[sp-forum] exists. If not, insert the following line before the ?> at the bottom.Code Select$txt['sp-forum'] = 'Forum';
Save and upload and it should be fixed.
Quote from: tk2012 on November 04, 2008, 10:44:12 AMSorry for the problems, that is a bug on SMF 2 Versions, it happen on xml/ajax use, because than the language of SPortal is not loaded. For example if you install Thank-O-Matic or some of the Shoutboxes this will happen offen. (And normal the files are not needed for that) ;)Quote from: Eliana Tamerin on October 27, 2008, 05:24:10 PM
Go into SPortal.{language}.php where {language} is your language file (most likely English) and see if $txt[sp-forum] exists. If not, insert the following line before the ?> at the bottom.Code Select$txt['sp-forum'] = 'Forum';
Save and upload and it should be fixed.
I did this, but am still getting errors. These are the errors that I am now receiving (along with that same one)
Quote from: tk2012 on November 04, 2008, 03:52:06 PMOkay :)
1 - I did what Eliana said to do in a previous post to me. The part which was quoted. I went to Sportal2.english.php and added the code she posted.
2- I got the same errors
3- I reposted here earlier with the quoted parts above at which time you gave me a link to the post on the SP forum.
4- I went ahead and changed out the code that was shown in that thread to:
'title' => (!isset($txt['sp-forum']) ? '' : $txt['sp-forum']),
5- Then, I cleared the forum cache (as it wasn't stated which cache to clear) and posted got the template parse error with the DOUBLE_ARROW which I posted.
6- I turned off my laptop and turned it back on and the error changed to the other Template Parse error
'title' => $txt['sp-forum'],
'title' => (!isset($txt['sp-forum']) ? '' : $txt['sp-forum']),
Quote from: tk2012 on November 04, 2008, 04:03:05 PMArg to many posts at the same time xD.no.. nothing works
There's the problem! (sorry, didn't see your other reply when I responded.)
The edit that Eliana is talking about is supposed to be in which file?
Quote from: tk2012 on November 04, 2008, 04:19:37 PMThan do now follow changes on the $sourcedir/Subs.php:
I was getting these errors with the string that Eliana posted
But, I put them in the sportal2.english.php file. The errors above appeared despite doing that.
'title' => $txt['sp-forum'],
'title' => (!isset($txt['sp-forum']) ? '' : $txt['sp-forum']),
Quote from: Eliana Tamerin on November 04, 2008, 06:22:42 PM
And this is why you always back up your files before you edit. ;)
Quote from: BurkeKnight on November 04, 2008, 06:53:36 PMQuote from: Eliana Tamerin on November 04, 2008, 06:22:42 PM
And this is why you always back up your files before you edit. ;)
That must explain why I have about 30 directories on my hard drive all with about 10 different SMF files....LOL
Quote from: tk2012 on November 04, 2008, 04:52:06 PMNo Problem could be happen :).
whew, ok... did that edit and cleared out my old errors.
Will see if anything appears. Sorry for the confusion there. It looked like the code that was being replaced was the same code that Eliana posted, so I was using the same file. Thanks for squaring that away!
QuoteTable 'bdm721_smf1.smf_sp_blocks' doesn't exist
File: /home/bdm721/public_html/forum/Sources/Subs-SPortal1-1.php
Line: 43
Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.6, while your database is at version 1.1. The above error might possibly go away if you execute the latest version of upgrade.php.
Quote from: ディン1031
Unpack the Simple Portal 2.0.5 Package. Upload the Upgrade1-1.php. Call this file with the browser. And than you forums database is upto date.
Bye
DIN1031
Quote from: haito on November 10, 2008, 04:39:08 AM
can simple portal add left side bar in forum??
Quote from: Hunchik on November 11, 2008, 02:46:24 PMIn the next version of SP that would be availableQuote from: haito on November 10, 2008, 04:39:08 AM
can simple portal add left side bar in forum??
I don't think we can do this right now. Maybe in the next version like 2.1? I also would like to do the same.
Quote from: sombra on November 13, 2008, 04:25:10 PM
thanks fixed
now i see some error on my log from simple portal how can i fixed them or it dosent matter?
http://.../index.php?action=admin;area=packages;sa=install;package=simpleportalclassic2.0.5.tar.gz
Apply Filter: Only show the errors with the same message
2: fclose(): supplied argument is not a valid stream resource
Apply Filter: Only show the errors from this file
File: /home/..../public_html/Sources/Subs-Package.php
http://..../index.php?action=admin;area=packages;sa=install;package=simpleportalclassic2.0.5.tar.gz
Apply Filter: Only show the errors with the same message
2: fopen(/home/.../public_html/Themes/default/languages/Who.english.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied
Apply Filter: Only show the errors from this file
File: /home/..../public_html/Sources/Subs-Package.php
Line: 2410
http://..../index.php?action=admin;area=packages;sa=install;package=simpleportalclassic2.0.5.tar.gz
Apply Filter: Only show the errors with the same message
2: fclose(): supplied argument is not a valid stream resource
thse are some of the error oin total i have 22 of the same mod
and other thing how can i make a principal menu of the forum in my portal?
Quote from: sombra on November 13, 2008, 03:35:30 PM
hello here.
nice mod. i have a little question.
y had installed the mod im using 2.04 smf and theme darkbreak
and im getting dots for images how can i fix it
example
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi36.tinypic.com%2Fal52m8.jpg&hash=e92540f0c674f3a5d3c28f6fdcf960323293ccb7)
Quote from: darkon on November 18, 2008, 10:10:28 PM
Is there a Block for the "User Online Today" (http://custom.simplemachines.org/mods/index.php?mod=217)-Mod avaible?
Quote from: princehull on November 19, 2008, 02:59:31 AM
Hi
I just installed simple portal classic 2.0.5 on my forums but am having a problem. All of my boards that I previously created are gone. They show up under boards in admin but not on my main page and I can't figure out how to get the back on there.
Could someone PLEASE help??
Thanks!
Prince
Quote from: moonstreaker on November 19, 2008, 03:04:26 AM
Having a very minor issue. When using Simple Portal with themes other than the default the "home" button on the menu is highlighted when I'm on my forum page instead of the "forum" button. Same issue with every theme I've attempted to use this mod on. Any guidence would be appreciated...thanks.
Quote from: Bugpac ™ on November 06, 2008, 01:34:21 PM
How would i put the random images from this mod " http://www.simplemachines.org/community/index.php?topic=260821.0;topicseen " onto the portal page, so they stay random...
Quote from: Blue Dream on November 19, 2008, 11:49:46 AM
New version will have that by default, just some patience please. ;)
Quote from: BurkeKnight on November 23, 2008, 01:19:14 PM
Just set up a HTML block, and use regular HTML you would use in setting up links on a web page.
Or, could use a BBC block, and use the BBC way of making links.
Quote from: Jade on November 23, 2008, 01:24:45 PM
Removing the stuff from the menu depends on SMF version :).
Quote from: The Saviour on November 23, 2008, 01:28:38 PMQuote from: Jade on November 23, 2008, 01:24:45 PM
Removing the stuff from the menu depends on SMF version :).
SMF 1.1.7
Quote from: Jade on November 23, 2008, 01:31:56 PMOkay, well you're going to be editing the index.template.php of any theme that needs the buttons removed. I can do it if you like :).
Quote from: Eliana Tamerin on November 23, 2008, 02:04:29 PM
I believe a Link Block is planned for future SP releases. However, you can probably get more dedicated support if you post your request in SimplePortal.net's Blocks board (http://simpleportal.net/index.php?board=39.0).
Quote from: The Saviour on November 23, 2008, 02:09:20 PMQuote from: Eliana Tamerin on November 23, 2008, 02:04:29 PM
I believe a Link Block is planned for future SP releases. However, you can probably get more dedicated support if you post your request in SimplePortal.net's Blocks board (http://simpleportal.net/index.php?board=39.0).
To me...that's just one more registration I'd rather not have to deal with. It seems if you want to get dedicated support around here...you need to register at 15 - 25 different websites. Not what I have in mind.
If a mod is posted here...it should be supported here, as well.
No offense...just using common sense.
Quote from: The Saviour on November 24, 2008, 09:12:09 AM
I uninstalled and re-installed the portal mod and the problem was initially fixed...until you moved the blocks around. Then validation fails, again.
Quote from: Blue Dream on November 24, 2008, 09:36:42 AM
Did you add new blocks, or just moved them?
$request = db_query("
SELECT
m.posterTime, ms.subject, m.ID_TOPIC, m.ID_MEMBER, m.ID_MSG, b.ID_BOARD, b.name AS bName,
IFNULL(mem.realName, m.posterName) AS posterName, " . ($user_info['is_guest'] ? '1 AS isRead, 0 AS new_from' : '
IFNULL(lt.ID_MSG, IFNULL(lmr.ID_MSG, 0)) >= m.ID_MSG_MODIFIED AS isRead,
IFNULL(lt.ID_MSG, IFNULL(lmr.ID_MSG, -1)) + 1 AS new_from') . ", LEFT(m.body, 384) AS body, m.smileysEnabled, m.icon
FROM ({$db_prefix}messages AS m, {$db_prefix}topics AS t, {$db_prefix}boards AS b, {$db_prefix}messages AS ms)
LEFT JOIN {$db_prefix}members AS mem ON (mem.ID_MEMBER = m.ID_MEMBER)" . (!$user_info['is_guest'] ? "
LEFT JOIN {$db_prefix}log_topics AS lt ON (lt.ID_TOPIC = t.ID_TOPIC AND lt.ID_MEMBER = $ID_MEMBER)
LEFT JOIN {$db_prefix}log_mark_read AS lmr ON (lmr.ID_BOARD = b.ID_BOARD AND lmr.ID_MEMBER = $ID_MEMBER)" : '') . "
WHERE t.ID_LAST_MSG >= " . ($modSettings['maxMsgID'] - 35 * min($num_recent, 5)) . "
AND t.ID_LAST_MSG = m.ID_MSG
AND b.ID_BOARD = t.ID_BOARD" . (empty($exclude_boards) ? '' : "
AND b.ID_BOARD NOT IN (" . implode(', ', $exclude_boards) . ")") . "
AND $user_info[query_see_board]
AND ms.ID_MSG = t.ID_FIRST_MSG
ORDER BY t.ID_LAST_MSG DESC
LIMIT $num_recent", __FILE__, __LINE__);
$request = db_query("
SELECT
m.posterTime, m.subject, m.ID_TOPIC, m.ID_MEMBER, m.ID_MSG, b.ID_BOARD, b.name AS bName,
IFNULL(mem.realName, m.posterName) AS posterName, " . ($user_info['is_guest'] ? '1 AS isRead, 0 AS new_from' : '
IFNULL(lt.ID_MSG, IFNULL(lmr.ID_MSG, 0)) >= m.ID_MSG_MODIFIED AS isRead,
IFNULL(lt.ID_MSG, IFNULL(lmr.ID_MSG, -1)) + 1 AS new_from') . ", LEFT(m.body, 384) AS body, m.smileysEnabled, m.icon
FROM ({$db_prefix}messages AS m, {$db_prefix}topics AS t, {$db_prefix}boards AS b)
LEFT JOIN {$db_prefix}members AS mem ON (mem.ID_MEMBER = m.ID_MEMBER)" . (!$user_info['is_guest'] ? "
LEFT JOIN {$db_prefix}log_topics AS lt ON (lt.ID_TOPIC = t.ID_TOPIC AND lt.ID_MEMBER = $ID_MEMBER)
LEFT JOIN {$db_prefix}log_mark_read AS lmr ON (lmr.ID_BOARD = b.ID_BOARD AND lmr.ID_MEMBER = $ID_MEMBER)" : '') . "
WHERE t.ID_FIRST_MSG >= " . ($modSettings['maxMsgID'] - 35 * min($num_recent, 5)) . "
AND t.ID_FIRST_MSG = m.ID_MSG
AND b.ID_BOARD = t.ID_BOARD" . (empty($exclude_boards) ? '' : "
AND b.ID_BOARD NOT IN (" . implode(', ', $exclude_boards) . ")") . "
AND $user_info[query_see_board]
ORDER BY t.ID_FIRST_MSG
LIMIT $num_recent", __FILE__, __LINE__);
Quote from: Lady Night Owl on November 26, 2008, 10:26:02 AM
The portal seems to work fine for me, no error messages.
But the copyright info at the bottom is smushed together with the SMF copyright info.
#footerarea ul li.copywrite
{
display: block;
line-height: 0;
#footerarea ul li.copywrite
{
display: block;
line-height: 1;
2: unlink(/Themes/default/SPortalBlocks1-1.template.php) [<a href='function.unlink'>function.unlink</a>]: No such file or directory
File: /Sources/Subs-Package.php
Line: 1367
Quote from: AlenNS on November 27, 2008, 02:18:40 PMThanks for the suggestion. I'm going to try that.
You should manualy modify files that have errors on uninstalling.
I hope you have backup.
If you have, put back backup and then uninstall SP 2.0.5 and before you click on uninstall you should open all the files that contain errors on uninstall and modify them from the popup windows instructions.
Then you click uninstall and that's it.
Quote from: jayman2 on November 27, 2008, 03:04:08 PMI got lucky! What I did was since I was going to put up my backup anyway, I first uninstalled sp 2.1. I didn't recieve any errors, so something told me to try and reinstall it again. So that's what I did, with no errors. Then I logged out as admin and in as a test user. And sure enough, everything works perfectly. I can now go to calendar, forum, gallery, or anywhere and stay on my custom template.Quote from: AlenNS on November 27, 2008, 02:18:40 PMThanks for the suggestion. I'm going to try that.
You should manualy modify files that have errors on uninstalling.
I hope you have backup.
If you have, put back backup and then uninstall SP 2.0.5 and before you click on uninstall you should open all the files that contain errors on uninstall and modify them from the popup windows instructions.
Then you click uninstall and that's it.
Quote from: princehull on November 27, 2008, 07:43:26 PMAlenNS ;)
AlenRS, thanks. I guess I will have to install 2.1.............
QuoteI'm loosing my mind...it should be
QuoteI'm losing my mind...^_^
Quote from: Blue Dream on December 03, 2008, 02:08:40 AMThank you!
Gà Mái:
http://www.simplemachines.org/community/index.php?topic=276952.msg1818982#msg1818982
Quotesportal_init();from the index.php as my blocks were showing up twice...will that cause any issues?
Quote from: Gà Mái on December 03, 2008, 10:09:44 AMI still have this problem. Some block are ok, but some block have this problem so i can not add.
I can not add block, helpppp !!!
Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '='
File: /home/d1343p02/public_html/Sources/SPortalAdmin1-1.php
line: 398
Note: Your forum's files are currently at version SMF 1.1.7, while your database is at version 1.1.6. The above error might possibly go away if you execute the latest version of upgrade.php.
Many thanksss!!
Quote from: BurkeKnight on December 03, 2008, 12:11:23 PMThank for your attention!
1. What language is your site running?
2. What blocks are giving you the errors?
Quote from: psynx on December 03, 2008, 11:48:02 PM
hello,
gudDay.
just a little concern, is there a way i can fake the number of members ang guest viewing the forum without affecting the real or original members in my forum? pls? O:)
Quote./Themes/default/Display.template.php
Quote./Themes/THEMENAME/Display.template.php
Quote
./Themes/default/Display.template.php
FindCode Select// Show the page index... "Pages: [1]".
Replace withCode Select// Make Article Button
if ($context['can_make_article'])
$normal_buttons['article'] = array('text' => 'sp-make_article', 'image' => 'addarticle.gif', 'lang' => true, 'url' => $scripturl . '?sa=addarticle;message=' . $context['topic_first_message'] . ';return=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id']);
// Show the page index... "Pages: [1]".
Quote from: Youngiiie on December 05, 2008, 04:25:09 AM
Hi Gadget,
I think you need to do the following (taken from the manual install instructions on mod page)
Please note
You will need to check the theme directory you are using so instead of:Quote./Themes/default/Display.template.php
You would need to browse to your Theme directory:Quote./Themes/THEMENAME/Display.template.php
Also make sure you make a back up of any files you modify.Quote
./Themes/default/Display.template.php
FindCode Select// Show the page index... "Pages: [1]".
// Show the page index... "Pages: [1]".
"<?php
// Version: 1.1; Display
function template_main()
{
global $context, $settings, $options, $txt, $scripturl, $modSettings;
// Show the anchor for the top and for the first message. If the first message is new, say so.
echo '
<a name="top"></a>
<a name="msg', $context['first_message'], '"></a>', $context['first_new_message'] ? '<a name="new"></a>' : '';
// Is this topic also a poll?
if ($context['is_poll'])
{
echo '
<table cellpadding="3" cellspacing="0" border="0" width="100%" class="tborder" style="padding-top: 0; margin-bottom: 2ex;">
<tr>
<td class="titlebg" colspan="2" valign="middle" style="padding-left: 6px;">
<img src="', $settings['images_url'], '/topic/', $context['poll']['is_locked'] ? 'normal_poll_locked' : 'normal_poll', '.gif" alt="" align="bottom" /> ', $txt['smf43'], '
</td>
</tr>
<tr>
<td width="5%" valign="top" class="windowbg"><b>', $txt['smf21'], ':</b></td>
<td class="windowbg">
', $context['poll']['question'];
if (!empty($context['poll']['expire_time']))
echo '
(', ($context['poll']['is_expired'] ? $txt['poll_expired_on'] : $txt['poll_expires_on']), ': ', $context['poll']['expire_time'], ')';
// Are they not allowed to vote but allowed to view the options?
if ($context['poll']['show_results'] || !$context['allow_vote'])
{
echo '
<table>
<tr>
<td style="padding-top: 2ex;">
<table border="0" cellpadding="0" cellspacing="0">';
// Show each option with its corresponding percentage bar.
foreach ($context['poll']['options'] as $option)
echo '
<tr>
<td style="padding-right: 2ex;', $option['voted_this'] ? 'font-weight: bold;' : '', '">', $option['option'], '</td>', $context['allow_poll_view'] ? '
<td nowrap="nowrap">' . $option['bar'] . ' ' . $option['votes'] . ' (' . $option['percent'] . '%)</td>' : '', '
</tr>';
echo '
</table>
</td>
<td valign="bottom" style="padding-left: 15px;">';
// If they are allowed to revote - show them a link!
if ($context['allow_change_vote'])
echo '
<a href="', $scripturl, '?action=vote;topic=', $context['current_topic'], '.', $context['start'], ';poll=', $context['poll']['id'], ';sesc=', $context['session_id'], '">', $txt['poll_change_vote'], '</a><br />';
// If we're viewing the results... maybe we want to go back and vote?
if ($context['poll']['show_results'] && $context['allow_vote'])
echo '
<a href="', $scripturl, '?topic=', $context['current_topic'], '.', $context['start'], '">', $txt['poll_return_vote'], '</a><br />';
// If they're allowed to lock the poll, show a link!
if ($context['poll']['lock'])
echo '
<a href="', $scripturl, '?action=lockVoting;topic=', $context['current_topic'], '.', $context['start'], ';sesc=', $context['session_id'], '">', !$context['poll']['is_locked'] ? $txt['smf30'] : $txt['smf30b'], '</a><br />';
// If they're allowed to edit the poll... guess what... show a link!
if ($context['poll']['edit'])
echo '
<a href="', $scripturl, '?action=editpoll;topic=', $context['current_topic'], '.', $context['start'], '">', $txt['smf39'], '</a>';
echo '
</td>
</tr>', $context['allow_poll_view'] ? '
<tr>
<td colspan="2"><b>' . $txt['smf24'] . ': ' . $context['poll']['total_votes'] . '</b></td>
</tr>' : '', '
</table><br />';
}
// They are allowed to vote! Go to it!
else
{
echo '
<form action="', $scripturl, '?action=vote;topic=', $context['current_topic'], '.', $context['start'], ';poll=', $context['poll']['id'], '" method="post" accept-charset="', $context['character_set'], '" style="margin: 0px;">
<table>
<tr>
<td colspan="2">';
// Show a warning if they are allowed more than one option.
if ($context['poll']['allowed_warning'])
echo '
', $context['poll']['allowed_warning'], '
</td>
</tr><tr>
<td>';
// Show each option with its button - a radio likely.
foreach ($context['poll']['options'] as $option)
echo '
', $option['vote_button'], ' ', $option['option'], '<br />';
echo '
</td>
<td valign="bottom" style="padding-left: 15px;">';
// Allowed to view the results? (without voting!)
if ($context['allow_poll_view'])
echo '
<a href="', $scripturl, '?topic=', $context['current_topic'], '.', $context['start'], ';viewResults">', $txt['smf29'], '</a><br />';
// Show a link for locking the poll as well...
if ($context['poll']['lock'])
echo '
<a href="', $scripturl, '?action=lockVoting;topic=', $context['current_topic'], '.', $context['start'], ';sesc=', $context['session_id'], '">', (!$context['poll']['is_locked'] ? $txt['smf30'] : $txt['smf30b']), '</a><br />';
// Want to edit it? Click right here......
if ($context['poll']['edit'])
echo '
<a href="', $scripturl, '?action=editpoll;topic=', $context['current_topic'], '.', $context['start'], '">', $txt['smf39'], '</a>';
echo '
</td>
</tr><tr>
<td colspan="2"><input type="submit" value="', $txt['smf23'], '" /></td>
</tr>
</table>
<input type="hidden" name="sc" value="', $context['session_id'], '" />
</form>';
}
echo '
</td>
</tr>
</table>';
}
// Does this topic have some events linked to it?
if (!empty($context['linked_calendar_events']))
{
echo '
<table cellpadding="3" cellspacing="0" border="0" width="100%" class="tborder" style="padding-top: 0; margin-bottom: 3ex;">
<tr>
<td class="titlebg" valign="middle" align="left" style="padding-left: 6px;">
', $txt['calendar_linked_events'], '
</td>
</tr>
<tr>
<td width="5%" valign="top" class="windowbg">
<ul>';
foreach ($context['linked_calendar_events'] as $event)
echo '
<li>
', ($event['can_edit'] ? '<a href="' . $event['modify_href'] . '" style="color: red;">*</a> ' : ''), '<b>', $event['title'], '</b>: ', $event['start_date'], ($event['start_date'] != $event['end_date'] ? ' - ' . $event['end_date'] : ''), '
</li>';
echo '
</ul>
</td>
</tr>
</table>';
}
echo '
<table width="100%" cellpadding="0" cellspacing="4" border="0">
</td>
<td align="left" style="font-size: smaller;">';
$buttonArray = array();
if ($context['can_reply'])
$buttonArray[] = '<a href="' . $scripturl . '?action=post;topic=' . $context['current_topic'] . '.' . $context['start'] . ';num_replies=' . $context['num_replies'] . '">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/reply.gif" alt="' . $txt[146] . '" border="0" />' : $txt[146]) . '</a>';
if ($context['can_reply'])
$buttonArray[] = '<a href="' . $scripturl . '?action=post;board=' . $context['current_board'] . '.0">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new_topic.gif" alt="' . $txt[33] . '" border="0" />' : $txt[33]) . '</a>';
echo implode($context['menu_separator'], $buttonArray);
echo '</td>
<td align="right" style="padding-right: 1ex;">
<td align="right" class="middletext2">', $txt[139], ': ', $context['page_index'];// Show a "go down" link?
if (!empty($modSettings['topbottomEnable']))
echo $context['menu_separator'], '<a href="#bot">', $settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/go_down.gif" alt="' . $txt['topbottom5'] . '" border="0" align="top" />' : $txt['topbottom5'], '</a>'; echo '</td>
</tr>
</td>
</tr>
</table>';
// Show the topic information - icon, subject, etc.
echo '
<div class="tborder" >
<table width="100%" cellpadding="5" cellspacing="1" border="0" style="border-bottom: 0;">
<tr>
<td class="catbg" valign="middle" width="74%" style="padding-left: 6px;" id="top_subject">
<font style="font-size: 8pt;">', $txt[118], ': ', $context['subject'], ' (', $txt[641], ' ', $context['num_views'], ' ', $txt[642], ')
</font></td>
<td class="catbg" id="threadtools" nowrap="nowrap">
<a href="', $scripturl, '#quicklinks2" onClick="return overlay(this, \'quicklinks2\',\'bottom\')">',$txt['smf11112'],'<img src="' . $settings['images_url'] . '/menu_open.gif" /></a>
<!--Do not remove outer most DIV tag with id="quicklinks2"-->
<DIV id="quicklinks2" style="position:absolute; border: 2px solid #3d3d3d; background-color: black; width: 200px; padding: 2px; display:none">
<table width="100%" border="0" cellpadding="0" cellspacing="1">
';
echo'
<tr vAlign=bottom><td style="border-top:1px solid #ffffff;" valign="middle" class="vbmenu_option"><img src="' . $settings['images_url'] . '/printer.gif"> <a href="' . $scripturl . '?action=printpage;topic=' . $context['current_topic'] . '.0" target="_blank" alt="' . $txt[465] . '">' .$txt[465] . '</a></td></tr>';
if ($context['user']['is_guest'])
echo'
<tr vAlign=bottom><td style="border-top:1px solid #ffffff;" valign="middle" class="vbmenu_option"><img src="' . $settings['images_url'] . '/subscribe.gif"> <a href="', $scripturl, '?action=register">',$txt[80069],'</a></td></tr>';
if ($context['can_send_topic'])
{
echo' <tr><td style="border-top:1px solid #ffffff;" valign="middle" class="vbmenu_option"><img src="' . $settings['images_url'] . '/sendtofriend.gif"> <a href="' . $scripturl . '?action=sendtopic;topic=' . $context['current_topic'] . '.0" alt="' . $txt[707] . '">',$txt[707],'</a></td></tr>';
}
if ($context['can_add_poll'])
{
echo'<tr vAlign=bottom><td style="border-top:1px solid #ffffff;" valign="middle" class="vbmenu_option"><img src="' . $settings['images_url'] . '/addpoll.gif"> <a href="' . $scripturl . '?action=editpoll;add;topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id'] . '">',$txt['add_poll'],'</a></td></tr>';
}
if ($context['can_mark_notify'])
{
echo'<tr><td style="border-top:1px solid #ffffff;" valign="middle" class="vbmenu_option"><img src="' . $settings['images_url'] . '/subscribe.gif"> <a href="' . $scripturl . '?action=notify;sa=' . ($context['is_marked_notify'] ? 'off' : 'on') . ';topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id'] . '" onclick="return confirm(\'' . ($context['is_marked_notify'] ? $txt['notification_disable_topic'] : $txt['notification_enable_topic']) . '\');" alt="' . $txt[131] . '">' . $txt[131] . '</a></td></tr>';
}
echo'
</table>
<div class="catbg" align="right" style="font-size:10px;"><a href="#" onClick="overlayclose(\'quicklinks2\'); return false"><img align="absmiddle" src="', $settings['images_url'], '/kapat.gif" border="0" /></a></div>
</DIV>
</td>
<td class="catbg" id="threadsearch" nowrap="nowrap" valign="middle" width="84%" style="padding-left: 6px;" id="top_subject">
<a href="', $scripturl, '?action=search" onClick="return overlay(this, \'subcontent\',\'bottom\')">', $txt['smf11113'],'<img src="' . $settings['images_url'] . '/menu_open.gif" /></a>
<DIV id="subcontent" style="position:absolute; border: 2px solid #3d3d3d; background-color: black; width: 250px; padding: 2px; display:none">
<table width="100%" border="0" cellpadding="0" cellspacing="1">
<tr>
<td class="catbg" height="20" align="left" valign="middle" style="color:#ffffff;">', $txt['smf11113'],'</td>
</tr>
<tr>
<td class="windowbg" title="">
<form action="', $scripturl, '?action=search2" method="post" accept-charset="', $context['character_set'], '" style="margin: 0;">
<div class="middletext"><input type="text" name="search" value="" size="25" tabindex="1001"/>
<input type="submit" class="button" value="Go!" tabindex="1004" /></div>
<input type="hidden" name="advenced" value="0" size="25" tabindex="1001">
</td>
</tr>
<tr> <td style="border-top:1px solid #ffffff;border-bottom:1px solid #ffffff;" class="windowbg"><a href="', $scripturl, '?action=search;advanced" accesskey="4" rel="nofollow">',$txt['smf298'], '</a></td>
</tr></form>
</table>
<div align="right" class="catbg" style="font-size:10px;"><a href="#" onClick="overlayclose(\'subcontent\'); return false"><img align="absmiddle" src="', $settings['images_url'], '/kapat.gif" border="0" /></a></div>
</DIV>
</td>
</tr>';
if (!empty($settings['display_who_viewing']))
{
echo '
<tr>
<td colspan="3" class="smalltext">';
// Show just numbers...?
if ($settings['display_who_viewing'] == 1)
echo count($context['view_members']), ' ', count($context['view_members']) == 1 ? $txt['who_member'] : $txt[19];
// Or show the actual people viewing the topic?
else
echo empty($context['view_members_list']) ? '0 ' . $txt[19] : implode(', ', $context['view_members_list']) . ((empty($context['view_num_hidden']) || $context['can_moderate_forum']) ? '' : ' (+ ' . $context['view_num_hidden'] . ' ' . $txt['hidden'] . ')');
// Now show how many guests are here too.
echo $txt['who_and'], $context['view_num_guests'], ' ', $context['view_num_guests'] == 1 ? $txt['guest'] : $txt['guests'], $txt['who_viewing_topic'], '
</td>
</tr>';
}
echo '
</table>'; //if (!empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1 && $context['can_remove_post'])
echo '
<form action="', $scripturl, '?action=quickmod2;topic=', $context['current_topic'], '.', $context['start'], '" method="post" accept-charset="', $context['character_set'], '" name="quickModForm" id="quickModForm" style="margin: 0;" onsubmit="return in_edit_mode == 1 ? modify_save(\'' . $context['session_id'] . '\') : confirm(\'' . $txt['quickmod_confirm'] . '\');">';
echo '
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="bordercolor">';
// Get all the messages...
while ($message = $context['get_message']())
{
echo '
<tr><td style="padding: 1px 1px 0 1px;">';
// Show the message anchor and a "new" anchor if this message is new.
if ($message['id'] != $context['first_message'])
echo '
<a name="msg', $message['id'], '"></a>', $message['first_new'] ? '<a name="new"></a>' : '';
echo '
<table cellpadding="3" cellspacing="0" border="0" width="100%">
<tr><td class="', $message['alternate'] == 0 ? 'windowbg' : 'windowbg2', '">';
// Show information about the poster of this message.
echo '
<table width="100%" cellpadding="5" cellspacing="0">
<tr>
<td valign="top" width="22%" rowspan="2" class="windowbg" style="overflow: hidden;"><center>
';
echo' <div class="smalltext">';
// Don't show these things for guests.
if (!$message['member']['is_guest'])
{
if($message['member']['group'] == 'Banned') { $banned = true;
echo '<span style="text-decoration:line-through">'; } else $banned = false; echo '<a href="', $message['member']['href'], '" onClick="return overlay(this, \'profil_', $message['member']['name'], '\',\'bottom\')"><center><img src="', $settings['images_url'], '/animated_arrow.gif" alt="profil" border="0"><b>', $message['member']['name'], '</b></a><DIV id="profil_', $message['member']['name'], '" style="position:absolute; border: 1px solid #000000; width: 210px; padding: 1px; display:none" bordercolor="#FFFFFF">
<table width="100%" border="0" cellpadding="2" cellspacing="0" class="windowbg">
<tr>
<td class="titlebg" width="97%" class="titlebg" align="left">', $message['member']['name'], '</td>
<td class="titlebg" width="3%" class="titlebg"><a href="#" onClick="overlayclose(\'profil_', $message['member']['name'], '\'); return false"><img align="absmiddle" src="', $settings['images_url'], '/kapat.gif" border="0" /></a></td>
</tr>
<tr>
<td valign="middle" align="left">
<a href="', $message['member']['href'], '"><font size="2"><span style="font-size: 8pt">',$txt['profil1'], '</span></a>
</td>
</tr>
<tr>
<td valign="middle" align="left">
<A href="', $scripturl, '?action=pm;sa=send;u=', $message['member']['id'], '"><span style="font-size: 8pt">',$txt['profil2'], '</span></a>
</td>
</tr>
<tr>
<td valign="middle" align="left">
<A href="', $scripturl, '?action=profile;u=', $message['member']['id'], ';sa=showPosts"><span style="font-size: 8pt">',$txt['profil3'], '</span></a>
</td>
</tr>
<tr>
<td valign="middle" align="left">
<a href="', $scripturl, '?action=buddy;u=', $message['member']['id'], ';sesc=', $context['session_id'], '"><span style="font-size: 8pt">',$txt['profil4'], '</span></a>
</td>
</tr>
</table>
</DIV><br />', $banned ? '</span>' : '', '
';
if($banned)
echo '
<b>Banned-Yasakli</b><br />';
}
// Show the member's custom title, if they have one.
if (isset($message['member']['title']) && $message['member']['title'] != '' && !$banned)
echo '<Center>
', $message['member']['title'], '</Center>';
// Show the member's primary group (like 'Administrator') if they have one.
if (isset($message['member']['group']) && $message['member']['group'] != '')
echo '
', $message['member']['group'], '<br />';
// Don't show these things for guests.
if (!$message['member']['is_guest'])
{
// Show the post group if and only if they have no other group or the option is on, and they are in a post group.
if ((empty($settings['hide_post_group']) || $message['member']['group'] == '') && $message['member']['post_group'] != '')
echo '
', $message['member']['post_group'], '<br />';
echo '
', $message['member']['group_stars'], '<br />';
// Show avatars, images, etc.?
if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']))
if (empty($message['member']['avatar']['image']))
echo '<div style="overflow: auto; width: 100%;"><img src="', $settings['images_url'], '/noavatar.gif" alt="" /></div><br />';
else
echo '<div style="overflow: auto; width: 100%;">', $message['member']['avatar']['image'],'</div><br />';
// Show their personal text?
if (!empty($settings['show_blurb']) && $message['member']['blurb'] != '')
echo '<marquee><b>', $message['member']['blurb'], '</b></marquee>
<br />';
// Is karma display enabled? Total or +/-?
if ($modSettings['karmaMode'] == '1')
echo '
<br />
', $modSettings['karmaLabel'], ' ', $message['member']['karma']['good'] - $message['member']['karma']['bad'], '<br />';
elseif ($modSettings['karmaMode'] == '2')
echo '
<br />
', $modSettings['karmaLabel'], ' +', $message['member']['karma']['good'], '/-', $message['member']['karma']['bad'], '<br />';
// Is this user allowed to modify this member's karma?
if ($message['member']['karma']['allow'])
echo '
<a href="', $scripturl, '?action=modifykarma;sa=applaud;uid=', $message['member']['id'], ';topic=', $context['current_topic'], '.' . $context['start'], ';m=', $message['id'], ';sesc=', $context['session_id'], '">', $modSettings['karmaApplaudLabel'], '</a>
<a href="', $scripturl, '?action=modifykarma;sa=smite;uid=', $message['member']['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';m=', $message['id'], ';sesc=', $context['session_id'], '">', $modSettings['karmaSmiteLabel'], '</a><br />';
// Don't show these things for guests.
if (!$message['member']['is_guest'])
{ // Show online and offline buttons?
if (!empty($modSettings['onlineEnable']) && !$message['member']['is_guest'])
echo '
', $context['can_send_pm'] ? '<a href="' . $message['member']['online']['href'] . '" title="' . $message['member']['online']['label'] . '">' : '', $settings['use_image_buttons'] ? '<img src="' . $message['member']['online']['image_href'] . '" alt="' . $message['member']['online']['text'] . '" border="0" align="middle" />' : $message['member']['online']['text'], $context['can_send_pm'] ? '</a>' : '', $settings['use_image_buttons'] ? '<span class="smalltext"> ' . $message['member']['online']['text'] . '</span>' : '', '<br /><br />';
// Don't show these things for guests.
if (!$message['member']['is_guest'])
{ // Show the member's gender icon?
if (!empty($settings['show_gender']) && $message['member']['gender']['image'] != '')
echo '
', $txt[231], ': ', $message['member']['gender']['image'], '<br />';
// Show how many posts they have made.
echo '
', $txt[26], ': ', $message['member']['posts'], '<br />
';
} echo' '; // Favorites by TosTos
if (empty($message['member']['options']['Takimim'])) {
$message['member']['options']['Takimim']='Other';
}
echo '<fieldset>
<legend><b>Favorite Gaming System</b></legend>
Gaming System : ', $message['member']['options']['Takimim'] , ' <img src="', $settings['images_url'], '/', $message['member']['options']['Takimim'], '.gif" /> </fieldset>';
if (empty($message['member']['options']['Burcum'])) {
$message['member']['options']['Burcum']='Hiden';
}
echo '<fieldset>
<legend><b>',$txt['smf11131'],'</b></legend>
',$txt['smf11133'],' : ', $message['member']['options']['Burcum'] , ' <img src="', $settings['images_url'], '/', $message['member']['options']['Burcum'], '.gif" /> </fieldset>'; //uyari puani by rallyproco
if (empty($message['member']['options']['uyari'])) {
$message['member']['options']['uyari']['value']='';
}
echo '<fieldset>
<legend><b>',$txt['uyari'],'</b></legend>
<img src="', $settings['images_url'], '/uyari', $message['member']['options']['uyari']['value'], '.gif" />% ', $message['member']['options']['uyari']['value'] , '0';if ($context['allow_admin'])
{
echo'
<a href="', $message['member']['href'], ';sa=forumProfile"><img src="' . $settings['images_url'] . '/uyaributon.gif" alt="Warn the user! (uyari puani ver)" border="0" /></fieldset>';
// This shows the popular messaging icons.
echo '
', $message['member']['icq']['link'], '
', $message['member']['msn']['link'], '
', $message['member']['yim']['link'], '
', $message['member']['aim']['link'], '<br />';
// Show the profile, website, email address, and personal message buttons.
if ($settings['show_profile_buttons'])
{
// Don't show the profile button if you're not allowed to view the profile.
if ($message['member']['can_view_profile'])
echo '
<a href="', $message['member']['href'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/icons/profile_sm.gif" alt="' . $txt[27] . '" title="' . $txt[27] . '" border="0" />' : $txt[27]), '</a>';
// Don't show an icon if they haven't specified a website.
if ($message['member']['website']['url'] != '')
echo '
<a href="', $message['member']['website']['url'], '" title="' . $message['member']['website']['title'] . '" target="_blank">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/www_sm.gif" alt="' . $txt[515] . '" border="0" />' : $txt[515]), '</a>';
// Don't show the email address if they want it hidden.
if (empty($message['member']['hide_email']))
echo '
<a href="mailto:', $message['member']['email'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt[69] . '" title="' . $txt[69] . '" border="0" />' : $txt[69]), '</a>';
// Since we know this person isn't a guest, you *can* message them.
if ($context['can_send_pm'])
echo '
<a href="', $scripturl, '?action=pm;sa=send;u=', $message['member']['id'], '" title="', $message['member']['online']['label'], '">', $settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/im_' . ($message['member']['online']['is_online'] ? 'on' : 'off') . '.gif" alt="' . $message['member']['online']['label'] . '" border="0" />' : $message['member']['online']['label'], '</a>';
}
}
}
}
// Otherwise, show the guest's email.
elseif (empty($message['member']['hide_email']))
echo '
<br />
<br />
<a href="mailto:', $message['member']['email'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt[69] . '" title="' . $txt[69] . '" border="0" />' : $txt[69]), '</a>';
if ($message['member']['is_guest'])
echo' ', $message['member']['link'], ''; // Done with the information about the poster... on to the post itself.
echo '
</span>
</td>
<td valign="top" width="85%" height="100%">
<table width="100%" border="0"><tr>
<td align="left" valign="middle"><a href="', $message['href'], '"><img src="', $message['icon_url'] . '" alt="" border="0" /></a></td>
<td align="left" valign="middle">
<div style="font-weight: bold;" id="subject_', $message['id'], '">
<a href="', $message['href'], '">', $message['subject'], '</a>
</div>';
// If this is the first post, (#0) just say when it was posted - otherwise give the reply #.
echo '
<span class="smalltext">&#171; <b>', !empty($message['counter']) ? $txt[146] . ' #' . $message['counter'] : '', ' ', $txt[30], ':</b> ', $message['time'], ' &#187;</span></td>
<td align="right" valign="bottom" height="20" nowrap="nowrap" style="font-size: smaller;">';
// Can they reply? Have they turned on quick reply?
if ($context['can_reply'] && !empty($options['display_quick_reply']))
echo '
<a href="', $scripturl, '?action=post;quote=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';num_replies=', $context['num_replies'], ';sesc=', $context['session_id'], '" onclick="doQuote(', $message['id'], ', \'', $context['session_id'], '\'); return false;">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/quote.gif" alt="' . $txt[145] . '" border="0" />' : $txt[145]), '</a>';
// So... quick reply is off, but they *can* reply?
elseif ($context['can_reply'])
echo '
<a href="', $scripturl, '?action=post;quote=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';num_replies=', $context['num_replies'], ';sesc=', $context['session_id'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/quote.gif" alt="' . $txt[145] . '" border="0" />' : $txt[145]), '</a>';
// Can the user modify the contents of this post?
if ($message['can_modify'])
echo '
<a href="', $scripturl, '?action=post;msg=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';sesc=', $context['session_id'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/buttons/modify.gif" alt="' . $txt[66] . '" border="0" />' : $txt[17]), '</a>';
// How about... even... remove it entirely?!
if ($message['can_remove'])
echo '
<a href="', $scripturl, '?action=deletemsg;topic=', $context['current_topic'], '.', $context['start'], ';msg=', $message['id'], ';sesc=', $context['session_id'], '" onclick="return confirm(\'', $txt[154], '?\');">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/delete.gif" alt="' . $txt[121] . '" border="0" />' : $txt[31]), '</a>';
Well, my whole code would not post in here...I should have assumed so, but I can attach the whold code on a txt if you wish to see it?
Quote from: Youngiiie on December 05, 2008, 09:42:54 AM
Funnily enough the button does not show on my theme either which is wierd? The edits i pointed out should be made when you select the theme in the SimplePortal admin area - it made the changes for me and I then checked my Display.template.php file and the correct changes where in there so I don't know whay the add article button does not work?
Quote from: BurkeKnight on December 08, 2008, 09:59:44 PM
If make new membergroup after setting up blocks, have to edit each block and add the group to the selected group permissions area.
// What about splitting it off the rest of the topic?
if ($context['can_split'])
echo '
<a href="', $scripturl, '?action=splittopics;topic=', $context['current_topic'], '.0;at=', $message['id'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/split.gif" alt="' . $txt['smf251'] . '" border="0" />' : $txt['smf251']), '</a>';
// Make Article Button
if ($context['can_make_article'])
echo '
<a href="', $scripturl, '?sa=addarticle;message=', $context['topic_first_message'], '.0;at=', $message['id'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . 'addarticle.gif" alt="Make Article" border="0" />' : $txt['smf251']), '</a>';
Quote from: Gadget.. on December 08, 2008, 10:38:58 PM
Well I got a button to show & work on my other themes if anyone is intrested:
After:Code Select// What about splitting it off the rest of the topic?
if ($context['can_split'])
echo '
<a href="', $scripturl, '?action=splittopics;topic=', $context['current_topic'], '.0;at=', $message['id'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/split.gif" alt="' . $txt['smf251'] . '" border="0" />' : $txt['smf251']), '</a>';
I added:Code Select// Make Article Button
if ($context['can_make_article'])
echo '
<a href="', $scripturl, '?sa=addarticle;message=', $context['topic_first_message'], '.0;at=', $message['id'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . 'addarticle.gif" alt="Make Article" border="0" />' : $txt['smf251']), '</a>';
& now the button works, it operates a little differently then the normal one installed on the default theme. It brings you to the portal when adding an article (i dont mind) Rather then popping up like the other default one does...I think it has something to do with me missing the array in my code but w/e it works perfectly!!! Of course you will need to add a button accordingly or it will show as text... I hope this helps others as it did the job for me!!!~
Quote from: Youngiiie on December 09, 2008, 07:46:07 AM
Found it - on the posts :P
Funny that your code works but the created code does not.
Quote from: speedfreak87 on December 09, 2008, 12:37:46 PM
How do I use the POLL block? I added it but no poll shows up, I even created a poll in one of the forums and it still didn't show.. correction, the block shows up, but the poll content does not.. what do I need to do? ( I would have started my own thread but can't in here for some reason)..
Quote from: BurkeKnight on December 09, 2008, 02:16:29 PMQuote from: speedfreak87 on December 09, 2008, 12:37:46 PM
How do I use the POLL block? I added it but no poll shows up, I even created a poll in one of the forums and it still didn't show.. correction, the block shows up, but the poll content does not.. what do I need to do? ( I would have started my own thread but can't in here for some reason)..
You need to be sure to enter the poll ID into the area for it in editing the block. The poll ID is the same as the Topic ID.
Quote from: BurkeKnight on December 09, 2008, 09:09:00 AM
I hope you both realize, that the button code supplied, is for the Default theme.
95% of custom themes use a different coding, that makes it hard for mod makers to supply the correct codes for those themes. That is why the manual edits are needed, so people can MODIFY the code to fit the themes they are using.
Quote from: speedfreak87 on December 09, 2008, 10:31:59 PMQuote from: BurkeKnight on December 09, 2008, 02:16:29 PMQuote from: speedfreak87 on December 09, 2008, 12:37:46 PM
How do I use the POLL block? I added it but no poll shows up, I even created a poll in one of the forums and it still didn't show.. correction, the block shows up, but the poll content does not.. what do I need to do? ( I would have started my own thread but can't in here for some reason)..
You need to be sure to enter the poll ID into the area for it in editing the block. The poll ID is the same as the Topic ID.
by ID, do you mean the URL?
Quote from: Gadget.. on December 09, 2008, 08:43:34 AMQuote from: Youngiiie on December 09, 2008, 07:46:07 AM
Found it - on the posts :P
Funny that your code works but the created code does not.
Lol, so it does work for you then?! Sounds like it does & I am glad to hear so...& YEs I was a little surprised the button code the author supplied didn't work,...But I wanted that button makes it easier to quickly add threads to the portal without accessing the admincp... :D
But nonetheless I am just happy it is there now.. I am still very new to this editing..
Quote from: BurkeKnight on December 09, 2008, 09:09:00 AM
I hope you both realize, that the button code supplied, is for the Default theme.
95% of custom themes use a different coding, that makes it hard for mod makers to supply the correct codes for those themes. That is why the manual edits are needed, so people can MODIFY the code to fit the themes they are using.
Quote from: taha116 on December 10, 2008, 07:26:04 PM
Blue Dream
Didn't fully understand your post did you mean that you have the same problem? Anyways id really like that fixed. Do you have any ideas on what i should do or maybe i may have conflicting settings in which case can you think of any settings that may conflict with the don't increase post count feature?
Quote from: Bugpac ™ on December 11, 2008, 08:25:21 AM
This may be a stupid question, but is 2.1.1 really new like in the last couple weeks?
QuoteUnknown column 'permission_type' in 'field list'
File: /home/u7/tridirk1/html/smf/Sources/Subs-SPortal1-1.php
Line: 44
Quote from: fiveflat on December 12, 2008, 03:00:31 PM
Does simpleportal 2.1.1 work with the SMF Media Gallery now? or is that a media gallery issue?
Quote from: Blue Dream on December 18, 2008, 05:48:07 AM
http://simpleportal.net/index.php?topic=1126.msg7858#msg7858
// the [forum] button
if ($context['user']['is_logged'])
echo '<li><a href="/forum/index.php?action=forum" title="Forum">Forum</a></li>';
Quote from: Bugpac ™ on December 18, 2008, 04:00:58 PM
Should simple portal display gallery images from this? SMF Media Gallery 1.5 RC 2, Mine does not it says the gallery is empty..
Quote from: Blue Dream on December 18, 2008, 12:14:26 PM
For the first, I hope it won't, and probably won't...
What's your theme? Can you link to that? If you can't, would be glad if you can attach your index.template.php file.
Quote from: Filipina on December 18, 2008, 09:08:00 PM
I am using the box one for the SMF gallery. It seems to have a real problem pulling random images
Quote from: Filipina on December 18, 2008, 12:42:04 PM
Sorry thought the "latest member" side block should be in line with "news" main block?
Quote from: Filipina on December 18, 2008, 09:08:00 PM
I am using the box one for the SMF gallery. It seems to have a real problem pulling random images
Quote from: ruckstande on December 19, 2008, 12:22:17 AM
Just tried showing birthdays. It says there aren't any. Am I missing something?
Quote from: Youngiiie on December 19, 2008, 06:18:38 AM
The theme is this one: http://custom.simplemachines.org/themes/index.php?lemma=382
The index.template is attached (mainly because i have made a few modifications to my site manually).
Quote from: Blue Dream on December 19, 2008, 11:28:29 AMQuote from: Youngiiie on December 19, 2008, 06:18:38 AM
The theme is this one: http://custom.simplemachines.org/themes/index.php?lemma=382
The index.template is attached (mainly because i have made a few modifications to my site manually).
Your file is attached.
Quote from: Blue Dream on December 19, 2008, 11:28:29 AMMy mistake. I must have selected the wrong block.Quote from: Filipina on December 18, 2008, 12:42:04 PM
Sorry thought the "latest member" side block should be in line with "news" main block?
Not really. Linktree is part of forum.Quote from: Filipina on December 18, 2008, 09:08:00 PM
I am using the box one for the SMF gallery. It seems to have a real problem pulling random images
SMF Media Gallery block should be fine. But there might be problems with SMF Gallery Random image. I'll check that.Quote from: ruckstande on December 19, 2008, 12:22:17 AM
Just tried showing birthdays. It says there aren't any. Am I missing something?
You use the calendar block?Quote from: Youngiiie on December 19, 2008, 06:18:38 AM
The theme is this one: http://custom.simplemachines.org/themes/index.php?lemma=382
The index.template is attached (mainly because i have made a few modifications to my site manually).
Your file is attached.
Quote from: Blue Dream on December 19, 2008, 12:46:49 PM
Do not use the SMF Gallery block and you should be okay. I'll revise that as soon as possible.
Quote from: BurkeKnight on December 20, 2008, 07:22:24 PM
Don't set a width for center blocks. That is auto, depending on the side block sizes.
<a href="', $post['href'], '">', $post['subject'], '</a>
', $post['new'] ? '' : '<a href="' . $scripturl . '?topic=' . $post['topic'] . '.msg' . $post['new_from'] . ';topicseen#new"><img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" alt="' . $txt[302] . '" border="0" /></a>', '<br />[', $post['board']['link'], ']
</td>
<td align="right" nowrap="nowrap">
', $post['poster']['link'], '<br />', $post['time'], '
</td>
<a href="', $post['href'], '">', $post['subject'], '</a>
', $post['new'] ? '' : '<a href="' . $scripturl . '?topic=' . $post['topic'] . '.msg' . $post['new_from'] . ';topicseen#new"><img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" alt="' . $txt[302] . '" border="0" /></a>', '<br />', $post['poster']['link'], '
</td>
<td align="right" nowrap="nowrap">
', $post['time'], '
</td>
Quote from: fiveflat on December 22, 2008, 12:23:16 PM
Blue Dream:
Thanks, I made those changes, but it didn't seem to do anything. I am using the default theme as well...
Quote from: Bugpac ™ on December 22, 2008, 09:25:03 PMYup, done that too... :-[Quote from: fiveflat on December 22, 2008, 12:23:16 PM
Blue Dream:
Thanks, I made those changes, but it didn't seem to do anything. I am using the default theme as well...
Hard refresh? contrl f5?
Quote from: Fat_Man on December 23, 2008, 04:44:29 AM
Is there some form of modification needed to be done on themes to get this going?
I'm using the DILBER theme, and when I install and use SimplePortal, it ends up removing my forum, and just showing the user name, the menu and the forum header.
Any ideas whats going on here?
Many thanks in advance.
Quote from: BurkeKnight on December 23, 2008, 06:25:46 AM
You do have to go to the blocks and make them. They do not come all set up. ;)
However, you may also have to add a button to the menu.
Manual Installation of Mods (http://docs.simplemachines.org/index.php?topic=402)
Quote from: slnurajar on December 23, 2008, 12:14:36 PM
can any one help me with my problem
Quote from: psynx on December 24, 2008, 06:17:19 AM
hello,
i need help on creating a separate blocks that i could put on top or under my other blocks? i mean a full block that expands 100% on page?
i have attached an image, please check the block in red color. that is what i mean full block. thank you.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fe.imagehost.org%2F0349%2Fblocks.jpg&hash=889fbc8645d9235cce4895b0df7843dd7a2acdbc)
Quote from: Blue Dream on December 25, 2008, 04:00:24 AM
fiveflat:
Can you show me what you want exactly? Cause the codes I gave should be changing the view of recent topics to be the same as in your forum. Also attach your SPortal1-1.php file here.
slnurajar:
Create a new directory in "Packages" directory and name it "temp". Set chmod to 777 for both "Packages" and new created "temp" directory. Then try again.
psynx:
Currently, we do not support those areas. Hopefully that will be available in the next major release.
dkillers:
Well, this mod has been downloaded ~30,000 times from the Mod Site. (I don't count the downloads in it's own) I doubt there is something in the mod, that would crash your forum. If you give us more information about the error you are getting, we may help you.
LaughOften:
I quite couldn't get what your error is. Can you attached some screenshots of the problem? Also, Blog is a custom action, we don't support them yet. If you have blocks, which you only want to be displayed on portal, select the simple display setting "Only Portal" option.
Bugpac ™:
It will be created automatically, once the article count is more than the "Articles per page" value set in "SPortal Admin" >> "General Settings" area.
Quote from: Blue Dream on December 25, 2008, 10:19:49 AM
We don't have it yet. Though, sounds like a good request.
For now, you can edit the SPortal1-1.template.php file.
QuoteFind: $current_action = 'search';
Replace with:
$current_action = 'search';
if ((isset($_GET['board']) || isset($_GET['topic']) || in_array($context['current_action'], array('unread', 'unreadreplies'))) && !empty($context['portalactive']))
$current_action = 'forum';
if ($context['current_action']=='spadmin')
$current_action = 'admin';
Quote// How about the [search] button?
if ($context['allow_search'])
echo '<td><a href="', $scripturl, '?action=search">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/search.gif" alt="' . $txt[182] . '" style="margin: 0px 0;" border="0" />' : $txt[182]), '</a></td>';
// Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])
echo '<td><a href="', $scripturl, '?action=admin">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/admin.gif" alt="' . $txt[2] . '" style="margin: 0px 0;" border="0" />' : $txt[2]), '</a></td>';
// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo '<td><a href="', $scripturl, '?action=profile">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/profile.gif" alt="' . $txt[79] . '" style="margin: 0px 0;" border="0" />' : $txt[467]), '</a></td>';
// The [calendar]!
if ($context['allow_calendar'])
echo '<td><a href="', $scripturl, '?action=calendar">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/calendar.gif" alt="' . $txt['calendar24'] . '" style="margin: 0px 0;" border="0" />' : $txt['calendar24']), '</a></td>';
// If the user is a guest, show [login] and [register] buttons.
if ($context['user']['is_guest'])
{
QuoteFatal error: require() [function.require]: Failed opening required '/www/hostrator.com/i/t/a/itaforum/htdocs/forum/Packages/temp/install2.php' (include_path='.:/usr/lib/php') in /www/hostrator.com/i/t/a/itaforum/htdocs/forum/Sources/Packages.php on line 899
QuoteInstallations actions for "SimplePortal":
Installing this package will perform the following actions:
Type Action Description
* 1. Execute Modification ./index.php Test successful
1. Replace ./index.php Test successful
2. Replace ./index.php Test successful
3. Replace ./index.php Test successful
4. Replace ./index.php Test successful
* 2. Execute Modification ./Sources/Subs-BoardIndex.php Test successful
1. Replace ./Sources/Subs-BoardIndex.php Test successful
* 3. Execute Modification ./Sources/Display.php Test successful
1. Replace ./Sources/Display.php Test successful
2. Replace ./Sources/Display.php Test successful
* 4. Execute Modification ./Sources/Help.php Test successful
1. Replace ./Sources/Help.php Test successful
* 5. Execute Modification ./Sources/Load.php Test successful
1. Replace ./Sources/Load.php Test successful
* 6. Execute Modification ./Sources/ManagePermissions.php Test successful
1. Replace ./Sources/ManagePermissions.php Test successful
2. Replace ./Sources/ManagePermissions.php Test successful
3. Replace ./Sources/ManagePermissions.php Test successful
* 7. Execute Modification ./Sources/ManageServer.php Test successful
1. Replace ./Sources/ManageServer.php Test successful
* 8. Execute Modification ./Sources/QueryString.php Test successful
1. Replace ./Sources/QueryString.php Test successful
* 9. Execute Modification ./Sources/Recent.php Test successful
1. Replace ./Sources/Recent.php Test successful
2. Replace ./Sources/Recent.php Test successful
3. Replace ./Sources/Recent.php Test successful
* 10. Execute Modification ./Sources/Subs.php Test successful
1. Replace ./Sources/Subs.php Test successful
2. Replace ./Sources/Subs.php Test successful
3. Replace ./Sources/Subs.php Test successful
4. Replace ./Sources/Subs.php Test successful
* 11. Execute Modification ./Sources/Admin.php Test successful
1. Replace ./Sources/Admin.php Test successful
2. Replace ./Sources/Admin.php Test successful
3. Replace ./Sources/Admin.php Test successful
4. Replace ./Sources/Admin.php Test successful
* 12. Execute Modification ./Sources/Subs-Boards.php Test successful
1. Replace ./Sources/Subs-Boards.php Test successful
* 13. Execute Modification ./Sources/Poll.php Test successful
1. Replace ./Sources/Poll.php Test successful
* 14. Execute Modification ./SSI.php Test successful
1. Replace ./SSI.php Test successful
2. Replace ./SSI.php Test successful
* 15. Execute Modification ./Themes/default/Display.template.php Test successful
1. Replace ./Themes/default/Display.template.php Test successful
* 16. Execute Modification ./Themes/default/css/dropmenu.css Test successful
1. Replace ./Themes/default/css/dropmenu.css Test successful
* 17. Execute Modification ./Themes/default/css/index.css Test successful
1. Replace ./Themes/default/css/index.css Test successful
* 18. Execute Modification ./Themes/default/languages/Who.english.php Test successful
1. Replace ./Themes/default/languages/Who.english.php Test successful
19. Execute Modification ./Themes/default/languages/Who.english-utf8.php Skipping file
20. Execute Code install2.php
21. Extract File ./Sources/SPortal2.php
22. Extract File ./Sources/SPortalAdmin2.php
23. Extract File ./Sources/Subs-SPortal2.php
24. Extract File ./Themes/default/SPortal2.template.php
25. Extract File ./Themes/default/SPortalAdmin2.template.php
26. Extract File ./Themes/default/SPortalBlocks2.template.php
27. Extract File ./Themes/default/languages/SPortal.english.php
28. Extract File ./Themes/default/languages/SPortal.english-utf8.php
29. Extract File ./Themes/default/languages/SPortalAdmin.english.php
30. Extract File ./Themes/default/languages/SPortalAdmin.english-utf8.php
31. Extract File ./Themes/default/languages/SPortalHelp.english.php
32. Extract File ./Themes/default/languages/SPortalHelp.english-utf8.php
33. Extract File ./Themes/default/images/arrow.gif
34. Extract File ./Themes/default/images/dot.gif
35. Extract File ./Themes/default/images/selected1.gif
Quote from: LaughOften on December 25, 2008, 11:54:41 AM
After installing SP I only have left, top and center blocks. I am missing the bottom and right side blocks. I have them enabled but they won't show up. They worked fine in 2.0.5.
I have the portal only option checked as well.
Thanks!!
Quote from: Blue Dream on December 25, 2008, 08:03:33 AM
It's okay for me now. Are you still having problems?
Quote from: KahneFan on December 28, 2008, 02:09:31 PMThat is actually very easy. I believe if you set a membergroup to "Automatic article approval" under the permissions for the member group, that will solve your problem. Or, if you want, the "Can add article" permission will allow someone to submit an article, but would need to be approved before it displays.
Article Management - Also, is it possible to set up a membergroup, or allow permissions to a membergroup who can add articles? I would like to be able to have certain members which I can allow to post their own articles to the home instead of having to wait for me to do it from the admin panel.
Quote from: learjet45 on December 29, 2008, 04:43:09 PM
That is actually very easy. I believe if you set a membergroup to "Automatic article approval" under the permissions for the member group, that will solve your problem. Or, if you want, the "Can add article" permission will allow someone to submit an article, but would need to be approved before it displays.
Quote from: LaughOften on December 27, 2008, 06:17:39 PMQuote from: LaughOften on December 25, 2008, 11:54:41 AM
After installing SP I only have left, top and center blocks. I am missing the bottom and right side blocks. I have them enabled but they won't show up. They worked fine in 2.0.5.
I have the portal only option checked as well.
Thanks!!
Any help on this would be appreciated. I have also asked on the SP site for help on this days ago and not getting any response.
Thanks!! :)
Thanks!!
Quote from: KahneFan on December 31, 2008, 01:14:46 AM
Just makin' sure :D
Quote from: blakey on December 31, 2008, 03:26:07 AMDid you enable simple portal?
I have instaled simple portal, I see the admin features but it is not displaying on my site, any sugestions? worldwidechristiansonline.co.uk
Fatal error: Call to undefined function sportal_vital() in /home/christia/public_html/Sources/Subs.php on line 3453
Quote from: LaughOften on December 29, 2008, 10:15:37 PMQuote from: LaughOften on December 27, 2008, 06:17:39 PMQuote from: LaughOften on December 25, 2008, 11:54:41 AM
After installing SP I only have left, top and center blocks. I am missing the bottom and right side blocks. I have them enabled but they won't show up. They worked fine in 2.0.5.
I have the portal only option checked as well.
Thanks!!
Any help on this would be appreciated. I have also asked on the SP site for help on this days ago and not getting any response.
Thanks!! :)
Thanks!!
Can I PLEASE get this resolved? This has not worked since I upgraded over a week ago and I can't seem to get any solution.
Thanks!! :)
// Random items?
if(!empty($context['random_items'])) {
echo '
<div class="catbg item_heading">',$txt['mgallery_random_items'],'</div>
<div id="random_pics">
<ul id="pics">';
foreach($context['random_items'] as $i) {
echo '
<li class="windowbg smalltext">
<a href="',$galurl,'sa=viewitem;id=',$i['id'],'">',$i['item_title'],'</a><br />
<a href="',$galurl,'sa=viewitem;id=',$i['id'],'"><img alt="" src="',$galurl,'sa=getmedia;id=',$i['id_thumb'],'" /></a><br />
',$txt['mgallery_views'],' : ',$i['views'],'<br />
',$txt['mgallery_posted_by'],' : <a href="',$scripturl,'?action=profile;u=',$i['member_id'],'">',$i['member_name'],'</a><br />
',$txt['mgallery_in_album'],' : <a href="',$galurl,'sa=viewalbum;id=',$i['id_album'],'">',$i['album_name'],'</a>
',$i['is_new'] ? '<br /><img alt="" src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" border="0" />' : '','
</li>';
}
echo '</ul>
</div>
<br style="clear: left;" />';
}
global $context, $mgalSettings, $txt, $galurl, $galurl2, $scripturl, $settings;
global $context, $mgalSettings, $txt, $galurl, $galurl2, $scripturl, $settings;
// Random items?
if(!empty($context['random_items'])) {
echo '
<div class="catbg item_heading">',$txt['mgallery_random_items'],'</div>
<div id="random_pics">
<ul id="pics">';
foreach($context['random_items'] as $i) {
echo '
<li class="windowbg smalltext">
<a href="',$galurl,'sa=viewitem;id=',$i['id'],'">',$i['item_title'],'</a><br />
<a href="',$galurl,'sa=viewitem;id=',$i['id'],'"><img alt="" src="',$galurl,'sa=getmedia;id=',$i['id_thumb'],'" /></a><br />
',$txt['mgallery_views'],' : ',$i['views'],'<br />
',$txt['mgallery_posted_by'],' : <a href="',$scripturl,'?action=profile;u=',$i['member_id'],'">',$i['member_name'],'</a><br />
',$txt['mgallery_in_album'],' : <a href="',$galurl,'sa=viewalbum;id=',$i['id_album'],'">',$i['album_name'],'</a>
',$i['is_new'] ? '<br /><img alt="" src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" border="0" />' : '','
</li>';
}
echo '</ul>
</div>
<br style="clear: left;" />';
}
echo '
</div>';
?>
Table 'bos4o_smf.smf_gallery_pic' doesn't exist
File: /www/hostrator.com/b/o/s/bos4o/htdocs/Sources/SPortal.php
Line: 1357
bos4o_smf.smf_gallery_pic
Quote from: bullbreedluverz on January 08, 2009, 11:48:38 AM
I had a lot problems with SP 2.1 and have had to completely strip my forum back and rebuild it as that was the onlyway i could get rid of SP 2.1 but i do like SP and want to install 2.1.1 and my question lies in that the database tables for 2.1 are still there, will this cause a problem if i try to install 2.1.1 or will the new version just use the same tables without any problems?
Warning: require_once(/home1/bullbree/public_html/smf/Sources/SPortal1-1.php) [function.require-once]: failed to open stream: No such file or directory in /home/bullbree/public_html/smf/index.php on line 62
Fatal error: require_once() [function.require]: Failed opening required '/home1/bullbree/public_html/smf/Sources/SPortal1-1.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/bullbree/public_html/smf/index.php on line 62
line 62 is
require_once($sourcedir . '/SPortal1-1.php')
// Action and board are both empty... BoardIndex!
if (empty($board) && empty($topic))
{
require_once($sourcedir . '/BoardIndex.php');
return 'BoardIndex';
}
// Action and board are both empty... SPortal!
if (empty($board) && empty($topic) && !empty($modSettings['portalactive']))
{
require_once($sourcedir . '/SPortal1-1.php');
return 'SPortal';
}
// Action and board are still both empty but no portal... BoardIndex
elseif (empty($board) && empty($topic))
{
require_once($sourcedir . '/BoardIndex.php');
return 'BoardIndex';
}
/ Action and board are both empty... BoardIndex!
if (empty($board) && empty($topic))
{
require_once($sourcedir . '/BoardIndex.php');
# Hack's Park //
require_once($sourcedir . '/HP_shoutBox_Subs.php');
HPSub_shoutBox_load('boardindex');
# // Hack's Park
return 'BoardIndex';
}
// Action and board are both empty... SPortal!
if (empty($board) && empty($topic) && !empty($modSettings['portalactive']))
{
require_once($sourcedir . '/SPortal1-1.php');
return 'SPortal';
}
// Action and board are still both empty but no portal... BoardIndex
elseif (empty($board) && empty($topic))
{
require_once($sourcedir . '/BoardIndex.php');
# Hack's Park //
require_once($sourcedir . '/HP_shoutBox_Subs.php');
HPSub_shoutBox_load('boardindex');
# // Hack's Park
return 'BoardIndex';
}
Quote from: lawlwhat on January 08, 2009, 08:20:43 PM
I'm having a problem where my article box displays lower than my blocks, and without the border. I'm using the morestyle theme (http://custom.simplemachines.org/themes/index.php?lemma=1000 (http://custom.simplemachines.org/themes/index.php?lemma=1000)).
You can see an image of what I mean here: http://i40.tinypic.com/t04ujc.jpg (http://i40.tinypic.com/t04ujc.jpg)
As you can see, the article bit is lower down on the page than the other two blocks. I want it to be in line with them. How do I do that?
<table class="bordercolor" width="100%">
<table cellspacing="0" class="bordercolor" width="100%">
Quote from: Gmans on January 09, 2009, 03:21:08 AM
MMMM :) Nice theme
Maybe.... open forum/themes/default/ directory
If you forum Smf 2 version, open Sportal2.template.php in notepad and find thisCode Select<table class="bordercolor" width="100%">
stroke 150
and replace
Code Select<table cellspacing="0" class="bordercolor" width="100%">
Smf 1.1.x
In smf 1.1.x did not try, but think process not differs
Sorry ;) , my english bad
<img src="' . $settings['images_url'] . '/dot.gif" alt="', $txt['sp-dot'], '" /> ', $txt[21], ': ',$memberContext[$member_id]['posts'],'<br />'
<img src="' . $settings['images_url'] . '/dot.gif" alt="', $txt['sp-dot'], '" /> ', $txt[21], ': <a href="', $scripturl, '?action=profile;u=', $message['member']['id'], ';sa=showPosts">',$memberContext[$member_id]['posts'],'</a><br />'
QuoteWarning: require_once(/home/www/hotsaucekj.com/Sources/SPortal1-1.php) [function.require-once]: failed to open stream: No such file or directory in /home/www/hotsaucekj.com/index.php on line 63
Fatal error: require_once() [function.require]: Failed opening required '/home/www/hotsaucekj.com/Sources/SPortal1-1.php' (include_path='.:/usr/local/php5/share/pear') in /home/www/hotsaucekj.com/index.php on line 63
Quote from: SmokyBlue on January 09, 2009, 05:40:35 PM
you will need to manually edit the files that the mod affected, then re install..
the info you are looking to remove can be found in the index.template.php file in the theme directory you are using ;)
[img]http://.../....jpg[/img]
Quote from: videoman57 on January 11, 2009, 09:10:56 PM
I downloaded this simplePortal and it does not work...I get all sorts of errors...?
I guess I will stick with tinyportal...at least it works well.
Thanks
8: Undefined variable: scripturl
File: /home/bullbree/public_html/smf/Themes/default/SPortal1-1.template.php (portal_below sub template - eval?)
Line: 58
Quote from: erisa on January 17, 2009, 02:22:12 PM
my right block is not showing anything. after i upgrade 2.1.1 for 2.04
Quote8: Undefined index: 01
File: /home/!!!!##$@@/public_html/forum/Themes/default/SPortal.template.php (eval?)
Line: 228
Quote from: tonyluzzi on January 20, 2009, 05:48:28 AM
For some reason I can't register on the SP website, clock verification always fails. >>>
Quote from: aw06 on January 20, 2009, 08:49:41 PM
Line 228 doesnt even exist .. any ideas ?
Quote from: Tiribulus on January 20, 2009, 10:42:57 PM
I'm looking for some basic documentation for SP. Maybe I'm dense, but I can't seem to find any.
/*
Calender DIN1031 Version 11-11-2008-1
This is a costumizable calendar php block
It will show a calendar, and add the Today Events, Holidays and Birthdays.
Normal it's programmed and tested for SMF 1.1.X
I don't use any SSI.php, because all data that needed is loaded.
*/
global $scripturl, $modSettings, $sourcedir, $txt;
//With that you can start the calander on a other day
//-1 = Start on Saturaday, 0 = Start on Sunday, 1 = Start on Monday, 2 = Start on Thusday...
$first_day = 0;
//How many day in future should be shown in the events on today? (If you disable today nothing will work ;D)
$eventes_future = 5;
//Show Weeksnumber? 1 = on 0 = off
$show_weeknumber = 0;
//How long should the day, if the number higher 3 than the complete dayname will be shown
$day_name_length = 0; //0 is short day name 1 is full day name :)
//The background color of days with Events, birthdays or holidays, you can use css colors
$color_background_items_mixed = 'lightblue';
$color_background_items_event = 'lightblue';
$color_background_items_birthday = 'lightblue';
$color_background_items_holiday = 'lightblue';
//The textcolor of days with Events, birthdays or holidays, you can use css colors
$color_text_items_mixed = 'steelblue';
$color_text_items_event = 'steelblue';
$color_text_items_birthday = 'steelblue';
$color_text_items_holiday = 'steelblue';
//The Color of the todays background / text
$color_background_today = 'white';
$color_text_today = 'green';
//The Textcolor for the standard days
$color_text = 'steelblue';
//The Textcolor for the Sundays
$color_text_sunday = '#C00000';
//The Textcolor for the Week Number
$color_text_week = '#990000';
//If you have a diffrent calender you can change the link to it here
$month_href = $scripturl . '?action=calendar';
//What should the callendar show?
$show_events = 1; //0 No, 1 Yes
$show_birthdays = 1; //0 No, 1 Yes
$show_holidays = 1; //0 No, 1 Yes
//Show the single events and items of the day :)
$show_today = 1; //0 No, 1 Yes
//Dateformat of day you can use %y for year %d for day and %m for month (Only digital numbers!)
$currentDateFormat = '%m/%d';
//This Variable is only for mulitple blocks of this type, please change it only if you know what you do ;)
//If show today disabled than this will not work and is disabled!
$enableJavaScript = 1;
$javascript_idFix = 'calendarDIN1031_';
//Okay please don't do anything here if you not now what you do
/**************************************************************/
// You can't do anything if the calendar is off!
if (empty($modSettings['cal_enabled']))
fatal_lang_error('calendar_off', false);
//First try to make it compatible between versions SMF 1.1 and 2.0 ;) (Not Working, text problems ;P)
if(file_exists($sourcedir . '/Subs-Calendar.php')) {
require_once($sourcedir . '/Subs-Calendar.php');
$smcFunc['getEvents'] = 'getEventRange';
$smcFunc['getBirthdays'] = 'getBirthdayRange';
$smcFunc['getHolidays'] = 'getHolidayRange';
}
else {
require_once($sourcedir . '/Calendar.php');
$smcFunc['getEvents'] = 'calendarEventArray';
$smcFunc['getBirthdays'] = 'calendarBirthdayArray';
$smcFunc['getHolidays'] = 'calendarHolidayArray';
}
//Fix possible mistakes by user
$eventes_future = (int) $eventes_future;
$eventes_future = !empty($eventes_future) ? abs($eventes_future) : 0;
//Easier and faster to handel =).
$show_weeknumber = !empty($show_weeknumber);
//Enable the Javascript?
$enableJavaScript = !empty($enableJavaScript) && !empty($show_today);
//Built some standard dates
$now = time() + $modSettings['time_offset'] * 3600;
$today = date('j',$now);
$year = date("Y",$now);
$month = date("n",$now);
$days = array();
$pn = array();
$first_of_month = gmmktime(0,0,0,$month,1,$year);
//retrieve this month events, holydays and birthdays
$days_in_month = gmdate('t',$first_of_month);
//Built Month low and high date :)
$low_date = $year.'-'.$month.'-01';
$high_date = $year.'-'.$month.'-'.$days_in_month;
//Premission Checkup
$can_post_calendar = allowedTo('calendar_post');
$calendarDataToday = array('events' => array(), 'birthdays' => array(), 'holidays' => array());
$collectionDays = array(); //This is for the java script build :)
$calendarEventsFuture = array();
$todayDate = date("Y-m-d", time());
//add important days to the days array
if(!empty($show_events)) {
$insert_date = true;
//Special Case the high date of events can be more in the future than normal
$event_future_time = $now + $eventes_future * 86400;
if($eventes_future != 0) {
$month_event = date("n",$event_future_time);
//Next Month?
if($month_event != $month) {
$day_event = date("j",$event_future_time);
$year_event = date("Y",$event_future_time); //This is need, could be possible that this jan next year.
$event_future_date = $year_event.'-'.$month_event.'-'.$day_event;
}
else
$event_future_date = $high_date;
}
else
$event_future_date = $high_date;
$events = $smcFunc['getEvents']($low_date, $event_future_date);
foreach($events as $startdate => $event) {
list($cyear, $cmonth, $cday) = explode('-', $startdate);
$current_timestamp = mktime(0,0,0, $cmonth, $cday, $cyear);
//This insert the today events and future events if they exist
if($startdate == $todayDate || ($current_timestamp >= $now && $current_timestamp <= $event_future_time)) {
if($startdate == $todayDate)
$calendarDataToday['events'] = $event;
else
$calendarEventsFuture[$startdate] = $event;
}
//We must select between create or only show!
$href_calendar = $enableJavaScript ? '#day'.$cday.'" onclick="return '.$javascript_idFix.'selectCalendarDate(\'day'.$cday.'\');' : $month_href;
//Insert only the current informtions
if($cmonth == $month) //Next month is not avaible ;)
$days[$cday] = '<a class="smalltext" style="color: '.$color_text_items_event.'; font-weight: bold; background-color: '.$color_background_items_event.'; padding: 0px 4px 0px 4px;" href="'.$href_calendar.'" target="_self">'.$cday.'</a>';
if($cmonth == $month && $startdate != $todayDate)
$collectionDays[$startdate] = $cday;
}
//Correct the order :)
if(!empty($calendarEventsFuture))
ksort($calendarEventsFuture, SORT_NUMERIC);
}
//Add holidays into the day array?
if(!empty($show_birthdays)) {
$birthdays = $smcFunc['getBirthdays']($low_date, $high_date);
foreach($birthdays as $startdate => $birth) {
//This insert the today events if they exist
if($todayDate == $startdate)
$calendarDataToday['birthdays'] = $birth;
$cday = (int) substr($startdate,8,2);
//We must select between create or only show!
$href_calendar = $enableJavaScript ? '#day'.$cday.'" onclick="return '.$javascript_idFix.'selectCalendarDate(\'day'.$cday.'\');' : $month_href;
//Mixed color?
$text_color = !empty($days[$cday]) ? $color_text_items_mixed : $color_text_items_birthday;
$background_color = !empty($days[$cday]) ? $color_background_items_mixed : $color_background_items_birthday;
$days[$cday] = '<a class="smalltext" style="color: '.$text_color.'; font-weight: bold; background-color: '.$background_color.'; padding: 0px 4px 0px 4px;" href="'.$href_calendar.'" target="_self">'.$cday.'</a>';
if($startdate != $todayDate)
$collectionDays[$startdate] = $cday;
}
}
//Add holidays into the day array?
if(!empty($show_holidays)) {
$holidays = $smcFunc['getHolidays']($low_date, $high_date);
foreach($holidays as $startdate => $holiday) {
//This insert the today events if they exist
if($todayDate == $startdate)
$calendarDataToday['holidays'] = $holiday;
$cday = (int) substr($startdate,8,2);
//We must select between create or only show!
$text_color = !empty($days[$cday]) ? $color_text_items_mixed : $color_text_items_holiday;
$background_color = !empty($days[$cday]) ? $color_background_items_mixed : $color_background_items_holiday;
$href_calendar = $enableJavaScript ? '#day'.$cday.'" onclick="return '.$javascript_idFix.'selectCalendarDate(\'day'.$cday.'\');' : $month_href;
$days[$cday] = '<a class="smalltext" style="color: '.$text_color.'; font-weight: bold; background-color: '.$background_color.'; padding: 0px 4px 0px 4px;" href="'.$href_calendar.'" target="_self">'.$cday.'</a>';
if($startdate != $todayDate)
$collectionDays[$startdate] = $cday;
}
}
//So Todays it's an diffrent color :D
$href_calendar = $enableJavaScript ? '#today" onclick="return '.$javascript_idFix.'selectCalendarDate(\'today\');' : $month_href;
$days[$today] = '<a class="smalltext" style="color: '.$color_text_today.'; font-weight: bold; border: solid 1px black; background-color: '.$color_background_today.'; padding: 0px 4px 0px 4px;" href="'.$href_calendar.'" target="_self">'.$today.'</a>';
//Wellcome to the smf way of Day building with existing Language strings :D
$day_names = $txt['days'];
$day_names_short = $txt['days_short'];
//So lets see $firstday = 0 means sunday this is the first day :)
//if there is a higher number than i need to resort them
//negativ values can also be used :)
if(!empty($first_day)) {
if($first_day < 0)
$first_day = 7-(abs($first_day)%7);
else
$first_day = ($first_day%7);
}
if(!empty($first_day)) {
$old = $day_names;
$old_s = $day_names_short;
$day_names = array();
$day_names_short = array();
//Create the new day order :)
for($n=0; $n<7; $n++) {
$c = (($first_day+$n)%7);
$day_names[$n] = $old[$c];
$day_names_short[$n] = $old_s[$c];
}
}
list($month, $year, $weekday) = explode(',',gmstrftime('%m,%Y,%w',$first_of_month));
$weekday = ($weekday + 7 - $first_day) % 7; //adjust for $first_day
$title = $txt['months_titles'][$month].' '.$year; //This is the SMF Text string, so it should be corrected for ut8 or iso
//Insert the Java Sciptfunction
if($enableJavaScript) {
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var '.$javascript_idFix.'current_block = "'.$javascript_idFix.'today";
function '.$javascript_idFix.'selectCalendarDate (day) {
var blockid = "'.$javascript_idFix.'" + day;
if(blockid == '.$javascript_idFix.'current_block) {
return false;
}
document.getElementById('.$javascript_idFix.'current_block).style.display = "none";
'.$javascript_idFix.'current_block = blockid + "";
document.getElementById(blockid).style.display = "block";
return false;
}
// ]]></script>';
}
/* Begin calendar. Uses a real <caption>. See http://diveintomark.org/archives/2002/07/03 */
$calendar = '
<table align="center" style="display:block; width:100%;" width="100%">
<caption>'.($month_href ? '<a href="'.htmlspecialchars($month_href).'">'.$title.'</a>' : $title)."</caption>
<tr>";
//Show the weekday?
if($show_weeknumber)
$calendar .= '
<th class="smalltext" abbr="'.$txt['calendar51'].'">'.$txt['calendar51'].'</th>';
//Put out the Daynames :)
foreach($day_names as $k => $d)
$calendar .= '
<th class="smalltext" abbr="'.$d.'">'.(!empty($day_name_length) ? $d : $day_names_short[$k]).'</th>';
$calendar .= "
</tr>
<tr style=\"text-align:right;\">";
if($show_weeknumber)
$calendar .= '
<td class="smalltext" abbr="'.$txt['calendar51'].'" align="center"><span style="color:'.$color_text_week.'">'.gmdate('W', $first_of_month).'</span></td>';
if($weekday > 0) $calendar .= '
<td class="smalltext" colspan="'.$weekday.'"> </td>'; //initial 'empty' days
for($day=1,$days_in_month=gmdate('t',$first_of_month); $day<=$days_in_month; $day++,$weekday++){
if($weekday == 7){
$weekday = 0; //start a new week
$calendar .= "
</tr>
<tr style=\"text-align:right;\">";
if($show_weeknumber)
$calendar .= '
<td class="smalltext" abbr="'.$txt['calendar51'].'" align="center"><span style="color:'.$color_text_week.'">'.gmdate('W', gmmktime(0,0,0, $month ,$day, $year)).'</span></td>';
}
if(isset($days[$day])){
$calendar .= '
<td>'.$days[$day].'</td>';
}
else
{
$href_calendar = $enableJavaScript ? '#none" onclick="return '.$javascript_idFix.'selectCalendarDate(\'none\');' : $month_href;
$calendar .= "
<td class=\"smalltext\" style=\"padding-right:4px;\"><a";
if(((($weekday+$first_day) % 7)==0))
{
$calendar .= ' style="color:'.$color_text_sunday.';"';
}
$calendar .= " href=\"".$href_calendar."\" target=\"_self\">$day</a></td>";
}
}
if($weekday != 7) $calendar .= '
<td class="smalltext" colspan="'.(7-$weekday).'"> </td>'; //remaining "empty" days
$calendar .= '
</tr>
</table>';
echo $calendar;
if(!empty($show_today)) {
echo '
<div style="display:block; width:100%;" align="center">';
if (!empty($calendarDataToday['events']) || !empty($calendarDataToday['birthdays']) || !empty($calendarDataToday['holidays']) || !empty($calendarEventsFuture)) {
//Standard Output :)
echo '
<table id="'.$javascript_idFix.'today" align="center" style="display:block; width:100%;">';
if(!empty($calendarDataToday['holidays'])){
echo '
<tr>
<td width="15%">
<hr />
</td>
<td class="smalltext" align="center" style="color: ' . $color_text_items_holiday . ';">
<b>Holidays</b>
</td>
<td width="15%">
<hr />
</td>
</tr>
<tr>
<td colspan="3" class="smalltext" style="width:100%;">';
echo implode('<br />', $calendarDataToday['holidays']);
echo '
</td>
</tr>';
}
if(!empty($calendarDataToday['birthdays'])){
echo '
<tr>
<td width="15%">
<hr />
</td>
<td class="smalltext" align="center" style="color: ' . $color_text_items_birthday . ';">
<b>Birthdays</b>
</td>
<td width="15%">
<hr />
</td>
</tr>
<tr>
<td colspan="3" class="smalltext" style="width:100%;">';
foreach( $calendarDataToday['birthdays'] as $member )
echo '
<a href="', $scripturl, '?action=profile;u=', $member['id'], '">', $member['name'], isset($member['age']) ? ' (' . $member['age'] . ')' : '', '</a>', '<br />';
echo '
</td>
</tr>';
}
if(!empty($calendarDataToday['events']))
{
$dayOutput = str_replace(array('%y','%m','%d'), explode('-', $todayDate), $currentDateFormat);
echo '
<tr>
<td width="15%">
<hr />
</td>
<td class="smalltext" align="center" style="color: ' . $color_text_items_event . ';">
<b>Events ('.$dayOutput.')</b>
</td>
<td width="15%">
<hr />
</td>
</tr>
<tr>
<td colspan="3" class="smalltext" align="left" style="width:100%;">';
foreach ($calendarDataToday['events'] as $event)
{
if ($event['can_edit'])
echo '
<a href="' . $event['modify_href'] . '" style="color: #FF0000;">*</a> ';
echo '
' . $event['link'] . '<br />';
}
echo '
</td>
</tr>';
}
if(!empty($calendarEventsFuture))
{
echo '
<tr>
<td width="15%">
<hr />
</td>
<td class="smalltext" align="center" style="color: ' . $color_text_items_event . ';" style="width:100%;">
<b>Upcoming Events</b>
</td>
<td width="15%">
<hr />
</td>
</tr>
<tr>
<td colspan="3" class="smalltext" align="left">';
foreach ($calendarEventsFuture as $startdate => $future_events)
{
//Okay tell the user the date of this even...
$dayOutput = str_replace(array('%y','%m','%d'), explode('-', $startdate), $currentDateFormat);
foreach($future_events as $event) {
if ($event['can_edit'])
echo '
<a href="' . $event['modify_href'] . '" style="color: #FF0000;">*</a> ';
echo '
' . $dayOutput . ' ' . $event['link'] . '<br />';
}
}
echo '
</td>
</tr>';
}
echo '
</table>';
}
else
echo '
<table id="'.$javascript_idFix.'today" align="center" width="100%" style="display:block; width:100%;">
<tr>
<td>
No Entries Found.
</td>
</tr>
</table>';
//Okay Start he Java Script insert :)
if($enableJavaScript) {
//First the Table for none ;)
echo '
<table id="'.$javascript_idFix.'none" align="center" width="100%" style="display:none; width:100%;">
<tr>
<td class="smalltext">
No Entries Found.
</td>
</tr>
</table>';
foreach($collectionDays as $startdate => $day) {
echo '
<table id="'.$javascript_idFix.'day'.$day.'" align="center" width="100%" style="display:none; width:100%;">';
if(!empty($holidays[$startdate])){
echo '
<tr>
<td width="15%">
<hr />
</td>
<td class="smalltext" align="center" style="color: ' . $color_text_items_holiday . ';">
<b>Holidays</b>
</td>
<td width="15%">
<hr />
</td>
</tr>
<tr>
<td colspan="3" class="smalltext" style="width:100%;">';
echo implode('<br />', $holidays[$startdate]);
echo '
</td>
</tr>';
}
if(!empty($birthdays[$startdate])){
echo '
<tr>
<td width="15%">
<hr />
</td>
<td class="smalltext" align="center" style="color: ' . $color_text_items_birthday . ';">
<b>Birthdays</b>
</td>
<td width="15%">
<hr />
</td>
</tr>
<tr>
<td colspan="3" class="smalltext" style="width:100%;">';
foreach( $birthdays[$startdate] as $member )
echo '
<a href="', $scripturl, '?action=profile;u=', $member['id'], '">', $member['name'], isset($member['age']) ? ' (' . $member['age'] . ')' : '', '</a>', '<br />';
echo '
</td>
</tr>';
}
if(!empty($events[$startdate]))
{
$dayOutput = str_replace(array('%y','%m','%d'), explode('-', $startdate), $currentDateFormat);
echo '
<tr>
<td width="15%">
<hr />
</td>
<td class="smalltext" align="center" style="color: ' . $color_text_items_event . ';">
<b>Events ('.$dayOutput.')</b>
</td>
<td width="15%">
<hr />
</td>
</tr>
<tr>
<td colspan="3" class="smalltext" align="left" style="width:100%;">';
foreach ($events[$startdate] as $event)
{
if ($event['can_edit'])
echo '
<a href="' . $event['modify_href'] . '" style="color: #FF0000;">*</a> ';
echo '
' . $event['link'] . '<br />';
}
echo '
</td>
</tr>';
}
echo '
</table>';
}
}
echo '
</div>';
}
Quote from: Blue Dream on January 21, 2009, 08:08:44 AM
aw06:
I have no idea about those codes and can't check right now. Would be glad if you can drop a post in the related topic on sp.net. I'll try to check it in a few days.
Quote from: Blue Dream on January 20, 2009, 04:52:04 PM
It is compatible. Installation just will fail on dropdown.css file, which you can ignore.
// Show the start of the tab section.
echo '
<table cellpadding="0" cellspacing="0" border="0" style="margin-left: 10px;">
<tr>
<td class="maintab_' , $first , '"> </td>';
// Show the [home] button.
echo ($current_action=='home' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'home' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '">' , $txt[103] , '</a>
</td>' , $current_action == 'home' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
// Show the [forum] button.
if(!empty($context['portalactive']))
echo ($current_action=='forum' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'forum' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=forum">' . $txt['sp-forum'] . '</a>
</td>' , $current_action=='forum' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
// Show the [help] button.
echo ($current_action == 'help' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'help' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=help">' , $txt[119] , '</a>
</td>' , $current_action == 'help' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
// How about the [search] button?
if ($context['allow_search'])
echo ($current_action == 'search' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'search' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=search">' , $txt[182] , '</a>
</td>' , $current_action == 'search' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
// Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])
echo ($current_action == 'admin' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'admin' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=admin">' , $txt[2] , '</a>
</td>' , $current_action == 'admin' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo ($current_action == 'profile' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'profile' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=profile">' , $txt[79] , '</a>
</td>' , $current_action == 'profile' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
// Go to PM center... [pm]
if ($context['user']['is_logged'] && $context['allow_pm'])
echo ($current_action == 'pm' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'pm' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=pm">' , $txt['pm_short'] , ' ', $context['user']['unread_messages'] > 0 ? '[<strong>'. $context['user']['unread_messages'] . '</strong>]' : '' , '</a>
</td>' , $current_action == 'pm' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
// The [calendar]!
if ($context['allow_calendar'])
echo ($current_action == 'calendar' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'calendar' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=calendar">' , $txt['calendar24'] , '</a>
</td>' , $current_action == 'calendar' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
// the [member] list button
if ($context['allow_memberlist'])
echo ($current_action == 'mlist' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'mlist' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=mlist">' , $txt[331] , '</a>
</td>' , $current_action == 'mlist' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
// If the user is a guest, show [login] button.
if ($context['user']['is_guest'])
echo ($current_action == 'login' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'login' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=login">' , $txt[34] , '</a>
</td>' , $current_action == 'login' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
// If the user is a guest, also show [register] button.
if ($context['user']['is_guest'])
echo ($current_action == 'register' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'register' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=register">' , $txt[97] , '</a>
</td>' , $current_action == 'register' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
// Otherwise, they might want to [logout]...
if ($context['user']['is_logged'])
echo ($current_action == 'logout' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'logout' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '">' , $txt[108] , '</a>
</td>' , $current_action == 'logout' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
// The end of tab section.
echo '
<td class="maintab_' , $last , '"> </td>
</tr>
</table>';
Quote from: lepard on January 21, 2009, 04:43:10 PM
I get this error.
Table 'pulaskic_smf.sp_articles' doesn't exist
File: /home/pulaskic/public_html/smf/Packages/temp/install2.php
Line: 69Quote from: Blue Dream on January 20, 2009, 04:52:04 PM
It is compatible. Installation just will fail on dropdown.css file, which you can ignore.
Quote from: Eclipse16V on January 22, 2009, 10:04:16 AM
Hi,
I have a problem with my SMF 1.1.7 and SP 2.1.1
After the Update it doesn´t view the right Blocks on the Portal Site.
Link: http://www.h0-welt.de
$db_show_debug = true;
Quote from: Blue Dream on January 22, 2009, 12:12:35 PMQuote from: lepard on January 21, 2009, 04:43:10 PM
I get this error.
Table 'pulaskic_smf.sp_articles' doesn't exist
File: /home/pulaskic/public_html/smf/Packages/temp/install2.php
Line: 69Quote from: Blue Dream on January 20, 2009, 04:52:04 PM
It is compatible. Installation just will fail on dropdown.css file, which you can ignore.
Have you installed SP before? Can you check if you have that table in your database?Quote from: Eclipse16V on January 22, 2009, 10:04:16 AM
Hi,
I have a problem with my SMF 1.1.7 and SP 2.1.1
After the Update it doesn´t view the right Blocks on the Portal Site.
Link: http://www.h0-welt.de
This issue was reported by a few people too. But it is rare and I'm unable to reproduce it. I'd be glad if you can help me with debugging.
You can do that by adding this line to your Settings.php file:Code Select$db_show_debug = true;
and providing me an admin account to check it.
Of course, if you want to...
Quote from: Blue Dream on January 22, 2009, 01:14:55 PM
I haven't checked, though I guess it is related to this bug:
Bug #2963: 'update', 'overwrite', and 'update_remove' option for 'if_exists' on db_create_table function fails (http://dev.simplemachines.org/mantis/view.php?id=2963)
We are planning a better upgrade/install script for next version of SP.
Quote from: IndigoStar on January 22, 2009, 03:04:25 PM
A SMF newbie
Does the portal page take on the custom theme of the forum ?
Also how easy is it to add articles is it pulled from a forum ?
Thanks
QuoteTemplates: 3: index (babylon), SPortalBlocks1-1 (default), SPortal1-1 (default).
Sub templates: 5: init, main_above, portal_above, main, main_below.
Language files: 5: index.german (default), Modifications.german (default), SPortal.german (default), Stats.german (default), Stats.german (default).
Files included: 14 - 709KB. (show./index.php, ./Settings.php, ./Sources/QueryString.php, ./Sources/Subs.php, ./Sources/Errors.php, ./Sources/Load.php, ./Sources/Security.php, ./Sources/SPortal1-1.php, ./Sources/LoadPages.php, ./Sources/LoadAds.php, ./Sources/Subs-SPortal1-1.php, ./Sources/Subs-Aeva.php, ./Sources/Calendar.php, ./Sources/Subs-Aeva-Sites.php)
Queries used: 52.
[show queries]
Quote from: aw06 on January 21, 2009, 07:18:52 AMPlease update to the latest Version of this php block... i post a link to you on simpleportal.net ;). (Sorry for my late answer...).
Yeah, i have a php calender block .. im almost sure its responsible ..Code Select/*
Calender DIN1031 Version 11-11-2008-1
Quote from: Eclipse16V on January 22, 2009, 10:04:16 AM
Hi,
I have a problem with my SMF 1.1.7 and SP 2.1.1
After the Update it doesn´t view the right Blocks on the Portal Site.
Link: http://www.h0-welt.de
Quote from: Blue Dream on January 21, 2009, 08:08:44 AM
eledhel:
Welcome to SMF and SP eledhel!
That's a known issue and can be fixed easily. Have a look at the post here:
http://simpleportal.net/index.php?topic=1126.msg7858#msg7858
Quote from: LaughOften on January 23, 2009, 02:51:41 PM
Sorry if this has been asked but I could not find it anywhere
SMF 1.1.7
SP 2.0.5
When a member wants to change their look and pick a different template it changes it everywhere but the home page of the portal. Is there a way to change this when they want to change their template?
Thanks in advance!!
Table 'balkandd_iis.iis_sp_blocks' doesn't exist
File: /home/balkandd/public_html/iis/Sources/Subs-SPortal1-1.php
Line: 44
Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.7, while your database is at version 1.1.6. The above error might possibly go away if you execute the latest version of upgrade.php.
Quote8: Undefined index: block_info
File: /home/xxxxx/public_html/forum/Sources/SPortalAdmin1-1.php
Line: 382
Quote8: Undefined index: sp-forum
File: /home/xxxxx/public_html/forum/Themes/default/Login.template.php (eval?)
Line: 329
Quote8: Undefined index: DESCRIPTION
File: /home/xxxxx/public_html/forum/Sources/SPortal1-1.php
Line: 2222
Quote8: Undefined index: LINK
File: /home/xxxxx/public_html/forum/Sources/SPortal1-1.php
Line: 2221
Quote8: Undefined index: TITLE
File: /home/xxxxx/public_html/forum/Sources/SPortal1-1.php
Line: 2221
Quote8: Undefined index: sp-forum
File: /home/xxxxx/public_html/forum/Themes/default/Login.template.php (eval?)
Line: 329
CREATE TABLE IF NOT EXISTS `smf_sp_articles` (
`ID_ARTICLE` int(10) NOT NULL auto_increment,
`ID_CATEGORY` int(10) NOT NULL default '0',
`ID_MESSAGE` int(10) NOT NULL default '0',
`approved` tinyint(2) NOT NULL default '0',
PRIMARY KEY (`ID_ARTICLE`)
) ENGINE=MyISAM ;
CREATE TABLE IF NOT EXISTS `smf_sp_blocks` (
`ID_BLOCK` int(10) unsigned NOT NULL auto_increment,
`label` tinytext NOT NULL,
`type` text NOT NULL,
`content` text NOT NULL,
`parameters` tinytext NOT NULL,
`col` tinyint(4) unsigned NOT NULL default '0',
`row` tinyint(4) unsigned NOT NULL default '0',
`state` tinyint(4) NOT NULL default '1',
`allowed_groups` text NOT NULL,
`force_view` tinyint(2) unsigned NOT NULL default '0',
`permission_type` tinyint(2) unsigned NOT NULL default '0',
`display` text NOT NULL,
PRIMARY KEY (`ID_BLOCK`)
) ENGINE=MyISAM ;
CREATE TABLE IF NOT EXISTS `smf_sp_categories` (
`ID_CATEGORY` int(10) unsigned NOT NULL auto_increment,
`name` tinytext NOT NULL,
`picture` tinytext NOT NULL,
`articles` tinyint(4) NOT NULL default '0',
`publish` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`ID_CATEGORY`)
) ENGINE=MyISAM ;
CREATE TABLE IF NOT EXISTS `smf_sp_functions` (
`ID_FUNCTION` tinyint(4) NOT NULL auto_increment,
`name` tinytext NOT NULL,
`parameter` tinyint(4) NOT NULL default '0',
PRIMARY KEY (`ID_FUNCTION`)
) ENGINE=MyISAM ;
INSERT INTO `smf_sp_functions` (`ID_FUNCTION`, `name`, `parameter`) VALUES
(18, 'sp_php', 0),
(17, 'sp_html', 0),
(16, 'sp_smfGallery', 1),
(15, 'sp_smfArcade', 1),
(14, 'sp_smfShop', 0),
(13, 'sp_news', 0),
(12, 'sp_boardNews', 5),
(11, 'sp_recentTopics', 1),
(10, 'sp_recentPosts', 1),
(9, 'sp_topTopics', 2),
(8, 'sp_topBoards', 1),
(7, 'sp_topPoster', 1),
(6, 'sp_quickSearch', 0),
(5, 'sp_boardStats', 0),
(4, 'sp_showPoll', 1),
(3, 'sp_whosOnline', 0),
(2, 'sp_latestMember', 0),
(1, 'sp_userInfo', 0),
(19, 'sp_bbc', 0),
(20, 'sp_attachmentImage', 1),
(21, 'sp_attachmentRecent', 1),
(22, 'sp_mgallery', 2),
(23, 'sp_recent', 2),
(24, 'sp_calendarInformation', 4),
(25, 'sp_rssFeed', 1);
1090
820
// Why bother for wireless? Its not worth it. ;D
if(WIRELESS)
return;
$sportal_version = '2.1.1';
$context['page_title'] = $context['forum_name'];
$context['portalactive'] = !empty($modSettings['portalactive']);
require_once($sourcedir . '/Subs-SPortal1-1.php');
//Why not? We need it anyway 8)
if(loadLanguage('SPortal', '', false) === false)
loadLanguage('SPortal', 'english', false);
$sportal_version = '2.1.1';
$context['page_title'] = $context['forum_name'];
$context['portalactive'] = !empty($modSettings['portalactive']);
require_once($sourcedir . '/Subs-SPortal1-1.php');
//Why not? We need it anyway 8)
if(loadLanguage('SPortal', '', false) === false)
loadLanguage('SPortal', 'english', false);
// Why bother for wireless? Its not worth it. ;D
if(WIRELESS)
return;
Quote from: BOS4O on January 07, 2009, 07:36:43 PM
hi,
hot to add this code in one php block in the simple portal
this is the code for random images from the SMF Media GalleryCode Select// Random items?
if(!empty($context['random_items'])) {
echo '
<div class="catbg item_heading">',$txt['mgallery_random_items'],'</div>
<div id="random_pics">
<ul id="pics">';
foreach($context['random_items'] as $i) {
echo '
<li class="windowbg smalltext">
<a href="',$galurl,'sa=viewitem;id=',$i['id'],'">',$i['item_title'],'</a><br />
<a href="',$galurl,'sa=viewitem;id=',$i['id'],'"><img alt="" src="',$galurl,'sa=getmedia;id=',$i['id_thumb'],'" /></a><br />
',$txt['mgallery_views'],' : ',$i['views'],'<br />
',$txt['mgallery_posted_by'],' : <a href="',$scripturl,'?action=profile;u=',$i['member_id'],'">',$i['member_name'],'</a><br />
',$txt['mgallery_in_album'],' : <a href="',$galurl,'sa=viewalbum;id=',$i['id_album'],'">',$i['album_name'],'</a>
',$i['is_new'] ? '<br /><img alt="" src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" border="0" />' : '','
</li>';
}
echo '</ul>
</div>
<br style="clear: left;" />';
}
and these are the includesCode Selectglobal $context, $mgalSettings, $txt, $galurl, $galurl2, $scripturl, $settings;
when i try to add something like thatCode Selectglobal $context, $mgalSettings, $txt, $galurl, $galurl2, $scripturl, $settings;
// Random items?
if(!empty($context['random_items'])) {
echo '
<div class="catbg item_heading">',$txt['mgallery_random_items'],'</div>
<div id="random_pics">
<ul id="pics">';
foreach($context['random_items'] as $i) {
echo '
<li class="windowbg smalltext">
<a href="',$galurl,'sa=viewitem;id=',$i['id'],'">',$i['item_title'],'</a><br />
<a href="',$galurl,'sa=viewitem;id=',$i['id'],'"><img alt="" src="',$galurl,'sa=getmedia;id=',$i['id_thumb'],'" /></a><br />
',$txt['mgallery_views'],' : ',$i['views'],'<br />
',$txt['mgallery_posted_by'],' : <a href="',$scripturl,'?action=profile;u=',$i['member_id'],'">',$i['member_name'],'</a><br />
',$txt['mgallery_in_album'],' : <a href="',$galurl,'sa=viewalbum;id=',$i['id_album'],'">',$i['album_name'],'</a>
',$i['is_new'] ? '<br /><img alt="" src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" border="0" />' : '','
</li>';
}
echo '</ul>
</div>
<br style="clear: left;" />';
}
echo '
</div>';
?>
this is my forum http://lfs-bg.net
--------------------------
when making a new table for the smf gallery is tells meCode SelectTable 'bos4o_smf.smf_gallery_pic' doesn't exist
File: /www/hostrator.com/b/o/s/bos4o/htdocs/Sources/SPortal.php
Line: 1357
it needs to be bos4o_smf_gallery_pic how to fix it?
it tells me a error like that for the smf shop too
i need to remove the one smf from this hereCode Selectbos4o_smf.smf_gallery_pic
how? :(
Quote from: Blue Dream on February 04, 2009, 03:39:35 PM
BOS4O:
Do you have a kind of gallery mod installed on your forum? If yes, which is that?
vivithemage:
Thanks for you too, for using SimplePortal.
Quote from: Blue Dream on February 04, 2009, 03:22:27 PM
LOVELORD:
Run this query from phpMyAdmin:Code SelectCREATE TABLE IF NOT EXISTS `smf_sp_articles` (
`ID_ARTICLE` int(10) NOT NULL auto_increment,
`ID_CATEGORY` int(10) NOT NULL default '0',
`ID_MESSAGE` int(10) NOT NULL default '0',
`approved` tinyint(2) NOT NULL default '0',
PRIMARY KEY (`ID_ARTICLE`)
) ENGINE=MyISAM ;
CREATE TABLE IF NOT EXISTS `smf_sp_blocks` (
`ID_BLOCK` int(10) unsigned NOT NULL auto_increment,
`label` tinytext NOT NULL,
`type` text NOT NULL,
`content` text NOT NULL,
`parameters` tinytext NOT NULL,
`col` tinyint(4) unsigned NOT NULL default '0',
`row` tinyint(4) unsigned NOT NULL default '0',
`state` tinyint(4) NOT NULL default '1',
`allowed_groups` text NOT NULL,
`force_view` tinyint(2) unsigned NOT NULL default '0',
`permission_type` tinyint(2) unsigned NOT NULL default '0',
`display` text NOT NULL,
PRIMARY KEY (`ID_BLOCK`)
) ENGINE=MyISAM ;
CREATE TABLE IF NOT EXISTS `smf_sp_categories` (
`ID_CATEGORY` int(10) unsigned NOT NULL auto_increment,
`name` tinytext NOT NULL,
`picture` tinytext NOT NULL,
`articles` tinyint(4) NOT NULL default '0',
`publish` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`ID_CATEGORY`)
) ENGINE=MyISAM ;
CREATE TABLE IF NOT EXISTS `smf_sp_functions` (
`ID_FUNCTION` tinyint(4) NOT NULL auto_increment,
`name` tinytext NOT NULL,
`parameter` tinyint(4) NOT NULL default '0',
PRIMARY KEY (`ID_FUNCTION`)
) ENGINE=MyISAM ;
INSERT INTO `smf_sp_functions` (`ID_FUNCTION`, `name`, `parameter`) VALUES
(18, 'sp_php', 0),
(17, 'sp_html', 0),
(16, 'sp_smfGallery', 1),
(15, 'sp_smfArcade', 1),
(14, 'sp_smfShop', 0),
(13, 'sp_news', 0),
(12, 'sp_boardNews', 5),
(11, 'sp_recentTopics', 1),
(10, 'sp_recentPosts', 1),
(9, 'sp_topTopics', 2),
(8, 'sp_topBoards', 1),
(7, 'sp_topPoster', 1),
(6, 'sp_quickSearch', 0),
(5, 'sp_boardStats', 0),
(4, 'sp_showPoll', 1),
(3, 'sp_whosOnline', 0),
(2, 'sp_latestMember', 0),
(1, 'sp_userInfo', 0),
(19, 'sp_bbc', 0),
(20, 'sp_attachmentImage', 1),
(21, 'sp_attachmentRecent', 1),
(22, 'sp_mgallery', 2),
(23, 'sp_recent', 2),
(24, 'sp_calendarInformation', 4),
(25, 'sp_rssFeed', 1);
rsanchez78118:
../Themes/BlackRainV2/style.css
Find:Code Select1090
Replace:Code Select820
B.SkiLLs:
That's a hard to figure out bug, but let's try this:
SPortal1-1.php
Find:Code Select// Why bother for wireless? Its not worth it. ;D
if(WIRELESS)
return;
$sportal_version = '2.1.1';
$context['page_title'] = $context['forum_name'];
$context['portalactive'] = !empty($modSettings['portalactive']);
require_once($sourcedir . '/Subs-SPortal1-1.php');
//Why not? We need it anyway 8)
if(loadLanguage('SPortal', '', false) === false)
loadLanguage('SPortal', 'english', false);
Replace:Code Select$sportal_version = '2.1.1';
$context['page_title'] = $context['forum_name'];
$context['portalactive'] = !empty($modSettings['portalactive']);
require_once($sourcedir . '/Subs-SPortal1-1.php');
//Why not? We need it anyway 8)
if(loadLanguage('SPortal', '', false) === false)
loadLanguage('SPortal', 'english', false);
// Why bother for wireless? Its not worth it. ;D
if(WIRELESS)
return;
vivithemage:
There is the package. Just install it using your Package Manager.
Quote from: Tiribulus on February 05, 2009, 04:36:47 PM
Am I correct in assuming that SP is not ready for SMF 2 RC1?
Quote from: KahneFan on February 05, 2009, 07:22:35 PMQuote from: Tiribulus on February 05, 2009, 04:36:47 PM
Am I correct in assuming that SP is not ready for SMF 2 RC1?
It's OK as far as I can tell. If you're running it on b4 and are going to upgrade, I would suggest uninstalling it before the upgrade, the reinstalling it after. (that goes for all mods)
I have it running on a site with RC1 running as well.
10. Execute Modification ./Sources/Subs.php Test failed
1. Replace ./Sources/Subs.php Test successful
2. Replace ./Sources/Subs.php Test successful
3. Replace ./Sources/Subs.php Test failed
4. Replace ./Sources/Subs.php Test successful
Quote from: Tiribulus on February 07, 2009, 03:47:22 PM
For some reason I am having no end of woe. Ignoring the dropmenu thing gets me this:
Database Error
Table 'smf2.sp_articles' doesn't exist
File: /srv/www/htdocs/forum1/Packages/temp/install2.php
Line: 50
and it doesn't install.
Maybe I should delete the folder and database and start over. This is a totally beta forum anyway.
Quote from: Blue Dream on February 07, 2009, 03:48:47 PMQuote from: Tiribulus on February 07, 2009, 03:47:22 PM
For some reason I am having no end of woe. Ignoring the dropmenu thing gets me this:
Database Error
Table 'smf2.sp_articles' doesn't exist
File: /srv/www/htdocs/forum1/Packages/temp/install2.php
Line: 50
and it doesn't install.
Maybe I should delete the folder and database and start over. This is a totally beta forum anyway.
That's because you already have those tables on your database. Removing those tables from your database or the install script inside the package should do it. That's a known issue about SMF database functions.
// Finally create the Articles table.
$smcFunc['db_create_table']('sp_articles', $columns, $indexes, array(), 'update_remove');
// Set up the columns for the Blocks Table
$columns = array(
array(
'name' => 'id_block',
'type' => 'int',
'size' => '10',
'auto' => true,
),
array(
'name' => 'label',
'type' => 'tinytext',
),
array(
'name' => 'type',
'type' => 'text',
),
array(
'name' => 'content',
'type' => 'text',
),
array(
'name' => 'parameters',
'type' => 'tinytext',
),
array(
'name' => 'col',
'type' => 'tinyint',
'size' => '4',
'default' => 0,
),
array(
'name' => 'row',
'type' => 'tinyint',
'size' => '4',
'default' => 0,
),
array(
'name' => 'state',
'type' => 'tinyint',
'size' => '4',
'default' => 1,
),
array(
'name' => 'allowed_groups',
'type' => 'text',
'size' => '4',
),
array(
'name' => 'force_view',
'type' => 'tinyint',
'size' => '2',
'default' => 0,
),
array(
'name' => 'permission_type',
'type' => 'tinyint',
'size' => '2',
'default' => 0,
),
array(
'name' => 'display',
'type' => 'text',
),
);
Quote from: KahneFan on February 07, 2009, 04:14:17 PM
PerryM, I received the same error, but as BD says, it's OK to skip it, it still runs fine.
Quote from: Tiribulus on February 07, 2009, 04:08:40 PM
The error says that table doesn't exist, you're it's because it DOES already exist? I'm definitely not arguing, just trying to understand. When I search for that table in the DB I get no results.
Quote from: PerryM on February 07, 2009, 04:37:39 PMI got it on the front page by clicking "Add and Article" on the post - it should have changed to "Remove this Article" to make it easy.
Quote from: Blue Dream on February 07, 2009, 04:48:46 PM
You can manage your articles from
Admin CP >> SimplePortal >> Articles
area.Quote from: PerryM on February 07, 2009, 04:37:39 PMI got it on the front page by clicking "Add and Article" on the post - it should have changed to "Remove this Article" to make it easy.
and yeah, a good idea. Thanks, noted.
Quote from: Blue Dream on February 07, 2009, 04:22:26 PMQuote from: Tiribulus on February 07, 2009, 04:08:40 PM
The error says that table doesn't exist, you're it's because it DOES already exist? I'm definitely not arguing, just trying to understand. When I search for that table in the DB I get no results.
Yeah, I'm pretty sure that they exists (Error doesn't say that, I know). Have you checked smf_sp_articles ({your_db_prefix}sp_articles) table?
Extract package; remove install2.php file; pack it up again; use that package.
Quote from: PerryM on February 07, 2009, 04:53:28 PM
I've been there and I see no articles to delete. It seems to bring me to the Articles Module which is independent of your module. I've never added an article in that system.
I'm stumped...
Quote from: Tiribulus on February 07, 2009, 04:56:50 PM
You're right the table is there. I'm using Webmin on a Linux box for this and I must have misspelled the table name before, but manually looking through the tables I see it there. However, running the installer without install2.php, ignoring the dropmenu.css error got me a blank white browser display and then going back into packages shows nothing installed. This isn't any kind of emergency as this forum is just for me to eventually get used to 2.0. I do appreciate your help though.
Quote from: Blue Dream on February 07, 2009, 04:59:28 PM
. Would you try the attached package?
<code>install2.php</code>
Quote from: Blue Dream on February 07, 2009, 05:18:15 PM
<<< Tiribulus:
Just removed this code from package_info.xml:Code Select<code>install2.php</code>
That code was there to run the install script, you know what would happen when you remove it.
And for copyright, press Ctrl+F5 and that should fix it. Mod makes a change in style.css, which is cached by the browser and hard refresh would make it turn into normal. Fixed that in the next version FYI.
Quote
11. Execute Modification ./Sources/Admin.php Test failed
1. Replace ./Sources/Admin.php Test successful
2. Replace ./Sources/Admin.php Test failed
3. Replace ./Sources/Admin.php Test successful
4. Replace ./Sources/Admin.php Test successful
Quote from: Blue Dream on February 07, 2009, 03:10:51 PM
dropmenu.css edit is okay to ignore.
----
It does not fail in Subs.php. There should be a problem with your files, as I myself have installed it more than 10 times in the last two days. Which edit is that?
global $scripturl, $context, $modSettings, $db_show_debug, $db_cache;
// In case we have mail to send, better do that - as obExit doesn't always quite make it...
if (!empty($context['flush_mail']))
AddMailQueue(true);
$add = preg_match('~^(ftp|http)?://~', $setLocation) == 0 && substr($setLocation, 0, 6) != 'about:';
// Redirect to the forums action not the portal, when Simple Portal is active.
if((empty($setLocation) || $scripturl == $setLocation) && !empty($modSettings['portalactive']) && empty($modSettings['sp_disableForumRedirect'])) $setLocation = 'action=forum';
[/forum]
Quote from: navjotjsingh on February 09, 2009, 07:00:09 AMQuote from: Blue Dream on February 07, 2009, 03:10:51 PM
dropmenu.css edit is okay to ignore.
----
It does not fail in Subs.php. There should be a problem with your files, as I myself have installed it more than 10 times in the last two days. Which edit is that?
It seems, Pretty Urls was installed first and it was causing error. The code which failed was :Code Select
global $scripturl, $context, $modSettings, $db_show_debug, $db_cache;
// In case we have mail to send, better do that - as obExit doesn't always quite make it...
if (!empty($context['flush_mail']))
AddMailQueue(true);
$add = preg_match('~^(ftp|http)[s]?://~', $setLocation) == 0 && substr($setLocation, 0, 6) != 'about:';
// Redirect to the forums action not the portal, when Simple Portal is active. ;)
if((empty($setLocation) || $scripturl == $setLocation) && !empty($modSettings['portalactive']) && empty($modSettings['sp_disableForumRedirect'])) $setLocation = 'action=forum';
[/forum]
Now here, prettyurl added one more variable in the first global line called $sourcedir which was resulting in the fail. I would suggest to make the package installer to only add the last line.
Quote from: Blue Dream on February 14, 2009, 03:36:31 AM
It works with RC1. Just ignore the dropdown.css edit error.
QuoteDatabase Errorusing SMF 2.0 RC1 (upgraded from 2.0 Beta 4), SimplePortal 2.1.1 recently downloaded from mod site
Table 'forum.sp_articles' doesn't exist
File: /the/path/to/forum/Packages/temp/install2.php
Line: 50
'update_remove'
'ignore'
Quote from: Blue Dream on February 17, 2009, 08:46:47 AM
Well, I've never heard/seen such an issue yet. What was the error and did it disappear when you uninstalled the mod?
Quote from: Kasyx on February 17, 2009, 09:01:45 AM
I can't check because every mod I have tried to install since SimplePortal has thrown errors at me. I think it would be best if I just do a full reinstall of the SMF software and start again. Is there a way to reimport a database backed up from the Admin console through the admin console? Or do I have to do it via phpmyadmin?
Thanks for the help.
Quote from: iceman~ on February 17, 2009, 09:12:17 AMQuote from: Blue Dream on February 17, 2009, 08:46:47 AM
Well, I've never heard/seen such an issue yet. What was the error and did it disappear when you uninstalled the mod?
There was no error mate ... Simple portal worked perfect ( like usual )
Just could not login or logout using the welcome screen ( default ) section ...
Yes after i uninstaled it ... the login issue is sorted ..
Quote from: Kasyx on February 17, 2009, 12:43:34 PM
I have now attempted to install Simple Portal 2.1.1 on a completely fresh install of SMF2.0RC1, and have the exact same problem. It just doesn't seem to want to install via the package manager.
I am completely at a loss here...
Quote from: flamechica on February 19, 2009, 05:44:34 AM
Hello,
I have SMF 1.1.8 and am using SimplePortal 2.1.1
Anyways, I placed the "Who's Online" block on my forum and in firefox it says "Dot" before each line of text (i.e. before "Online Guests," "Online Users," etc. If I am not mistaken there should be a bullet point there, not the word "Dot." in IE it has the little box with the red "X' that is displayed when a picture cannot be displayed.
How do I go about fixing this or is this a bug?
Quote from: Blue Dream on February 19, 2009, 06:15:27 AMQuote from: flamechica on February 19, 2009, 05:44:34 AM
Hello,
I have SMF 1.1.8 and am using SimplePortal 2.1.1
Anyways, I placed the "Who's Online" block on my forum and in firefox it says "Dot" before each line of text (i.e. before "Online Guests," "Online Users," etc. If I am not mistaken there should be a bullet point there, not the word "Dot." in IE it has the little box with the red "X' that is displayed when a picture cannot be displayed.
How do I go about fixing this or is this a bug?
Extract the SimplePortal 2.1.1 package you downloaded. Copy dot.gif and arrow.gif images to ../Themes/your_custom_theme/images directory. It is because package manager only makes changes for the default theme.
Quote16. Izvrši modifikaciju ./Themes/default/css/dropmenu.css Test nije uspeo
1. Zameni ./Themes/default/css/dropmenu.css Test nije uspeo
Quoteul.admin_menu { display: table-cell; background: url(../images/admintab_right.gif) top right no-repeat; width: 34em; }
Quote from: Blue Dream on February 19, 2009, 10:20:57 AM
Ignore the error and install the mod, if it is only dropdown.css. It fixed a bug in SMF default theme, but it have been fixed with SMF 2.0 RC1. The rest should be fine.
QuoteGreška u bazi podataka Table 'baklja_smf1.sp_articles' doesn't existDatabase error,
Datoteka: /home/baklja/public_html/forum/Packages/temp/install2.php
Linija: 50
Napomena: Izgleda da vaša baza podataka zahteva ažuriranje. Datoteke vašeg foruma su trenutno na verziji SMF 2.0 RC1 dok je vaša baza podataka verzije SMF 2.0 Beta 4. Preporučujemo da izvršite poslednju verziju datoteke upgrade.php.
Quote from: Blue Dream on February 17, 2009, 06:38:40 AM
Download the package.
Extract it.
Open install2.php with Notepad.
Make this edit:
Find:Code Select'update_remove'
Replace:Code Select'ignore'
Make sure you replace all instances, there are more than one.
Save the file and pack it up as .zip.
Use that package.
#c
#
[/t] 16. Execute Modification ./Themes/default/css/dropmenu.css Test failed
|
Quote from: Blue Dream on February 20, 2009, 02:12:25 AMQuote from: Blue Dream on February 19, 2009, 10:20:57 AM
Ignore the error and install the mod, if it is only dropdown.css. It fixed a bug in SMF default theme, but it have been fixed with SMF 2.0 RC1. The rest should be fine.
We will get rid of that edit with 2.2 version which will be released very soon.
Quote from: Blue Dream on February 21, 2009, 05:23:01 AM
It is perfect to ignore it, if that is the only test failed error.Quote from: Blue Dream on February 20, 2009, 02:12:25 AMQuote from: Blue Dream on February 19, 2009, 10:20:57 AM
Ignore the error and install the mod, if it is only dropdown.css. It fixed a bug in SMF default theme, but it have been fixed with SMF 2.0 RC1. The rest should be fine.
We will get rid of that edit with 2.2 version which will be released very soon.
Quotejossanaijr:
When it is broken, do you see it as it should be in topic view?
Quote from: Blue Dream on February 24, 2009, 10:28:28 AM
victoryrock:
I've applied the changes to your file manually. Ignore the errors and install the mod. Then use the file attached.
Quote from: Blue Dream on February 24, 2009, 10:28:28 AM
JFlame:
That's an intended behavior. Once you install the portal, the first item of the linktree will redirect users to forum, not main page.
Quote from: willerby on February 26, 2009, 06:31:44 PM
<<< Can content be customised depending upon user group? >>>
// Make Article Button
if ($context['can_make_article'])
$normal_buttons['article'] = array('text' => 'sp-make_article', 'image' => 'addarticle.gif', 'lang' => true, 'url' => $scripturl . '?sa=addarticle;message=' . $context['topic_first_message'] . ';return=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id']);
// Show the page index... "Pages: [1]".
/ Show a "go down" link?
if (!empty($modSettings['topbottomEnable']))
echo $context['menu_separator'], '<a href="#bot">', $settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/go_down.gif" alt="' . $txt['topbottom5'] . '" border="0" align="top" />' : $txt['topbottom5'], '</a>';
echo '
</td>
<td align="', !$context['right_to_left'] ? 'right' : 'left', '" style="font-size: smaller;">';
$buttonArray = array();
if ($context['can_reply'])
$buttonArray[] = '<a href="' . $scripturl . '?action=post;topic=' . $context['current_topic'] . '.' . $context['start'] . ';num_replies=' . $context['num_replies'] . '">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/reply.gif" alt="' . $txt[146] . '" border="0" />' : $txt[146]) . '</a>';
if ($context['can_mark_notify'])
$buttonArray[] = '<a href="' . $scripturl . '?action=notify;sa=' . ($context['is_marked_notify'] ? 'off' : 'on') . ';topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id'] . '" onclick="return confirm(\'' . ($context['is_marked_notify'] ? $txt['notification_disable_topic'] : $txt['notification_enable_topic']) . '\');">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/notify.gif" alt="' . $txt[131] . '" border="0" />' : $txt[131]) . '</a>';
QuoteUnknown column 'display' in 'field list'
File: /home/content/b/u/c/buc240/html/eastcoastastro/forums/Sources/Subs-SPortal1-1.php
Line: 44
Quote from: protonxl on March 05, 2009, 11:32:07 AM
Hey!
This is by far one of my fav smf plugins.
I have a question tho
I wanna upgrade to the latest one but I have these errors
Installing this package will perform the following actions:
Type Action Description
1. Execute Modification ./index.php Test failed
8. Execute Modification ./Themes/default/index.template.php Test failed
these two files failed to uninstall.
I did not continue, I still have it installed.
Whats the next step?
Quote from: sheryltoo on March 05, 2009, 11:46:29 AM
I am using an html block for the top block and unless I put several line breaks in my codes, the text from line to line overlaps each other.
Is there a way to prevent this from happening without having to put in several line breaks?
Sheryl
<table align="center" background="http://img.photobucket.com/albums/v200/sheryltoo/backgrounds/blstrps02.jpg" cellpadding="20" cellspacing="0" width="100%"
border="2" bordercolor="#476c8e">
<tr>
<td>
<TABLE borderColor=#476c8e cellSpacing=0 cellPadding=10 width="100%"
background="http://img.photobucket.com/albums/v200/sheryltoo/SMF/brtns01.jpg" border=1>
<tr>
<td>
<TABLE borderColor=#476c8e cellSpacing=0 cellPadding=10 width="100%" background="http://img.photobucket.com/albums/v200/sheryltoo/SMF/smf12.jpg" border=1>
<tr>
<td align="center">
<br>
<P align=center><FONT face="Comic sans ms" color=#476c8e size=5>PSP Addicts
<br><br>
Pull up a chair and come share your
<br> <br>PSP talents with us.</FONT></P>
Quote from: Blue Dream on March 05, 2009, 11:54:23 AMQuote from: protonxl on March 05, 2009, 11:32:07 AM
Hey!
This is by far one of my fav smf plugins.
I have a question tho
I wanna upgrade to the latest one but I have these errors
Installing this package will perform the following actions:
Type Action Description
1. Execute Modification ./index.php Test failed
8. Execute Modification ./Themes/default/index.template.php Test failed
these two files failed to uninstall.
I did not continue, I still have it installed.
Whats the next step?
Did you completely uninstall the old version before installing the new one?
Quote from: jhd_20 on March 07, 2009, 11:19:07 PM
Can somebody help me with this problem I'm encountering..? First I uploaded this to my test site and then tried to installed it using install packages but everytime this error occured:
screenshot:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fusera.imagecave.com%2FSkavenger%2Fnewzone%2F2009-66-22-8-37-1-simple.JPG&hash=f3bd96a68e21d8be2a850247dcf3cdb784008f6e)
And then I have also tried to manually edit files as showed on the manual on modification area but I I just end up messing around my database so again I re-install everything from the beginning using the smf v1.1.8 and tried to upload and install this modification again but it gives me the same error as before that was same on the screenshot above..
I've tried chmod the files but it was already set to 777 and one more thing how can you chmod a zip file anyway...
Please help... I really need this to work on my test site before trying to do the same on my live site.. Thank you so much...
jhd_20
<table align="center" background="http://img.photobucket.com/albums/v200/sheryltoo/backgrounds/blstrps02.jpg" cellpadding="20" cellspacing="0" width="100%"
border="2" bordercolor="#476c8e">
<tr>
<td>
<TABLE borderColor=#476c8e cellSpacing=0 cellPadding=10 width="100%"
background="http://img.photobucket.com/albums/v200/sheryltoo/SMF/brtns01.jpg" border=1>
<tr>
<td>
<TABLE borderColor=#476c8e cellSpacing=0 cellPadding=10 width="100%" background="http://img.photobucket.com/albums/v200/sheryltoo/SMF/smf12.jpg" border=1>
<tr>
<td align="center">
<br>
<P align=center><FONT face="Comic sans ms" color=#476c8e size=5>PSP Addicts
<br><br>
Pull up a chair and come share your
<br> <br>PSP talents with us.</FONT></P>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
LEFT JOIN {$db_prefix}messages AS m ON (m.ID_MSG = a.ID_MESSAGE)
LEFT JOIN {$db_prefix}boards AS b ON (b.ID_BOARD = m.ID_BOARD)
INNER JOIN {$db_prefix}messages AS m ON (m.ID_MSG = a.ID_MESSAGE)
INNER JOIN {$db_prefix}boards AS b ON (b.ID_BOARD = m.ID_BOARD)
LEFT JOIN {$db_prefix}messages AS m ON (m.ID_MSG = a.ID_MESSAGE)
LEFT JOIN {$db_prefix}boards AS b ON (b.ID_BOARD = m.ID_BOARD)
INNER JOIN {$db_prefix}messages AS m ON (m.ID_MSG = a.ID_MESSAGE)
INNER JOIN {$db_prefix}boards AS b ON (b.ID_BOARD = m.ID_BOARD)
Quote from: SmokyBlue on March 09, 2009, 11:31:45 AM:)
Sheryl, what box is it going into? is the box wide enough for the code?? cuz everyone knows, size matters ;)
QuoteType Action Description
1. Execute Modification install1-1.xml Modification parse error
2. Execute Modification - Modification parse error
3. Execute Modification english.xml Modification parse error
4. Execute Modification - Modification parse error
Quote<br>in between some sentences.
<table align="center" background="http://img.photobucket.com/albums/v200/sheryltoo/backgrounds/blstrps02.jpg" cellpadding="20" cellspacing="0" width="100%"
border="2" bordercolor="#476c8e">
<tr>
<td>
<TABLE borderColor=#476c8e cellSpacing=0 cellPadding=10 width="100%"
background="http://img.photobucket.com/albums/v200/sheryltoo/SMF/brtns01.jpg" border=1>
<tr>
<td>
<TABLE borderColor=#476c8e cellSpacing=0 cellPadding=10 width="100%" background="http://img.photobucket.com/albums/v200/sheryltoo/SMF/smf12.jpg" border=1>
<tr>
<td align="center">
<br>
<P align=center><FONT face="Comic sans ms" color=#476c8e size=5>PSP Addicts
<br><br>
Pull up a chair and come share your
<br> <br>PSP talents with us.
<br>
This is just a test to see how close the lines are.
<br>
I added one break in between these last two sentences.
<br>
<br>
Here is a sentence with two line breaks above it.
</FONT></P>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
color=#476c8e
and use the border color for the boarder.. would save you a bit of effort there as well.. might want to think on taking out the tables and using divs.. just a thought.. :)
Quote from: Cudamine on March 09, 2009, 12:25:32 PMQuoteType Action Description
1. Execute Modification install1-1.xml Modification parse error
2. Execute Modification - Modification parse error
3. Execute Modification english.xml Modification parse error
4. Execute Modification - Modification parse error
I get this while trying to install on the package manager.
Anyone knows what to do?
Quote from: Blue Dream on March 08, 2009, 08:58:33 AM
jhd_20:
Please do not bump your posts.
Do you get the same error with other mods you are installing or is this specific to SP? Make sure the files are writable for Package Manager to edit them. From the error, I see the path you entered does not seem to be valid.
Quote from: .HuNTeR. on March 15, 2009, 02:29:48 AM
adding a block for Download System (http://custom.simplemachines.org/mods/index.php?mod=992) will be great
Global $smcFunc;
echo '<table cellspacing="10px" cellpadding="10px" border="0">
<tr>
<td>';
$request = $smcFunc['db_query']('', "SELECT f.ID_FILE, f.id_member, f.date, f.ID_CAT, f.title AS ftitle, f.totaldownloads,
c.title, m.real_name, m.id_member AS mid_member
FROM {db_prefix}down_file AS f, {db_prefix}down_cat AS c, {db_prefix}members AS m
WHERE f.ID_CAT = c.ID_CAT
AND f.approved = '1'
AND f.id_member = m.id_member
ORDER BY RAND()
LIMIT 1");
$row = $smcFunc['db_fetch_assoc']($request);
echo '
<ul style="padding: 0; list-style-type: none;">
<li><a href="',$scripturl,'?action=downloads;sa=view;id=',$row['ID_FILE'],'">',$row['ftitle'],'</a></li>
<li style="font-size: x-small"><hr />Uploaded:</li>
<li style="font-size: x-small"><i>('.timeformat($row['date']).')</i></li>
<li style="font-size: x-small"><i>Submitted by: <a href="',$scripturl,'?action=profile;u=',$row['id_member'],'">',$row['real_name'],'</a></i></li>
<li style="font-size: x-small">Downloads: <b>', $row['totaldownloads'] ,'</b></li>
<li style="font-size: x-small">Category: <b><a href="' . $scripturl . '?action=downloads;cat=' . $row['ID_CAT'] . '">' . parse_bbc($row['title']) . '</a></b></li>';
echo '</ul>';echo '</td>
<td></td>
</tr>
</table>';
Global $db_prefix, $scripturl;
$request = db_query("SELECT ID_FILE, title
FROM ${db_prefix}down_file
WHERE approved = '1'
ORDER BY date DESC
LIMIT 5", __FILE__, __LINE__);
while($row = mysql_fetch_assoc($request))
echo '
<a href="',$scripturl,'?action=downloads;sa=view;id=',$row['ID_FILE'],'">',$row['title'],'</a><br/><br/>';
Quote from: .HuNTeR. on March 16, 2009, 09:04:58 AM
suggestion:
end of articles a "...more" button to topic will be good
'url' => $scripturl . '#' . $board_info['cat']['id'],
'url' => $scripturl . '?action=forum#' . $board_info['cat']['id'],
Quote from: karbaciun on March 24, 2009, 12:41:50 PMAnyone? I'm interested in such opinions as well. i have tp installed, but I'm not too fond of it.
hi
tinyportal or simple portal are beter? why?
Quote from: karbaciun on March 24, 2009, 12:41:50 PM
hi
tinyportal or simple portal are beter? why?
Quote from: Manu0372 on March 25, 2009, 06:09:39 PMQuote from: karbaciun on March 24, 2009, 12:41:50 PM
hi
tinyportal or simple portal are beter? why?
I personal dislike to compare things. I think it's up what you want to have and need.
I think both portals are great, but for people like me, with no php-knowledge or those who don't
know cms-stuff, as me too, Simpleportal is the best solution. ;)
I tried to use tinyportal and mkportal, but I gave up to get them work. I saw simpleportal, downloaded it, installed it via package-manager and felt in love with it. :D
Quote from: SmokyBlue on March 29, 2009, 03:50:01 PM
if that is a custom theme you must edit it with what mods you have so they will show up..
failure to do this will give you what you are seeing..
if you want to know what edits, read this: http://docs.simplemachines.org/index.php?topic=402
Quote from: mrtrc266 on March 30, 2009, 12:50:09 AM
Thanks for the response,
I understand what she's saying I have added TONS of Mods to TONS of Themes but these are the only Theme Edits aside from addiing some pics and the language edits.
./Themes/default/Display.template.php
./Themes/default/css/dropmenu.css
./Themes/default/languages/Who.english.php
My theme does NOT have a language folder, it uses the default, according to the Parser my theme does NOT have any files to edit???
Quote from: SmokyBlue on March 31, 2009, 05:06:42 PMThis will be available in the new version.
side note: hey Blue.. if you could make it to where the blocks can have option of name or no name would be good..
my blog in a block isnt looking to hot with the name twice.. :'(
Quote from: SmokyBlue on March 31, 2009, 05:06:42 PM
so mrtrc, you are saying its based off the default?
is there an index.template.php file there? what theme is it?
more info you give the better the help you will get..
side note: hey Blue.. if you could make it to where the blocks can have option of name or no name would be good..
my blog in a block isnt looking to hot with the name twice.. :'(
Quote from: Yağız... on March 31, 2009, 06:24:43 PMQuote from: SmokyBlue on March 31, 2009, 05:06:42 PMThis will be available in the new version.
side note: hey Blue.. if you could make it to where the blocks can have option of name or no name would be good..
my blog in a block isnt looking to hot with the name twice.. :'(
Quote from: flamechica on March 29, 2009, 03:54:13 PM
I use SMF 1.1.8 and I have added the Calendar Block to my forum. For some reason my Calendar Block has stopped showing upcoming holidays and such. It showed St. Patrick's day awhile back. I have it set to show 7 days in advance and it is not showing April Fool's on there, even though it is on the calendar and displayed on the board index as a holiday.
I would like to let the developer know that when there are no events to display it says "Sorry! There are no calendar items avaible at the moment." Available is spelled wrong...
Database Error
Unknown column 'sp_smfGallery' in 'where clause'
File: /srv/www/htdocs/Packages/temp/install1-1.php
Line: 566
Database Error
Unknown column 'sp_smfGallery' in 'where clause'
File: /srv/www/htdocs/Packages/temp/install1-1.php
Line: 566
Quote from: Blue Dream on April 02, 2009, 11:13:28 AM
We had to replace the install script inside the package due to a bug in block update query. This only affects SMF 1.1 version with SimplePortal installed before. If you didn't get this error while installing, you do not have to do anything.Code SelectDatabase Error
Unknown column 'sp_smfGallery' in 'where clause'
File: /srv/www/htdocs/Packages/temp/install1-1.php
Line: 566
If you get this error, download the package again and use it.
Apply Filter: Only show the error messages of this URL http://gregnmary.gotdns.com:8080/index.php?action=packages;sa=install2;package=SimplePortal2.1.1.zip
Apply Filter: Only show the errors with the same message
Database Error: Column count doesn't match value count at row 1
File: /srv/www/htdocs/Packages/temp/install1-1.php
Line: 171
Quote from: Blue Dream on April 02, 2009, 11:33:57 AM
Well, all you have to do is uninstall 2.1.1 completely, download a new 2.2 package and install it. The replaced package should have solved your issue.
http://gregnmary.gotdns.com:8080/index.php?action=packages;sa=install2;package=SimplePortal_2.2.zip
Database Error: Unknown column 'sp_smfGallery' in 'where clause'
File: /srv/www/htdocs/Packages/temp/install1-1.php
Line: 566
Quote from: Blue Dream on April 02, 2009, 11:46:34 AM
No, you just still have the old package on your server. Do this and you should be fine:
1) Go to mod page and download SimplePortal_2.2.zip
2) Admin CP >> Packages >> Browse Packages
3) Delete SimplePortal 2.2.
4) Admin CP >> Packages >> Download Packages
5) Upload the package you just downloaded from mod site.
6) Install it.
Everything should be fine then. If you still get error after these, you can pm me an admin account to check it if you want to.
// Show the [home] button.
echo '<li><a href="', $scripturl, '">' , $txt[103] , '</a></li>';
//the [forum] button
if(!empty($context['portalactive']))
echo ($current_action=='forum' || $context['browser']['is_ie4']) ? '' : '' , '
<li class="' , $current_action == 'forum' ? 'current' : '' , '"><a href="', $scripturl, '?action=forum">' , $txt['sp-forum'] , '</a></li>';
//return;
return;
Quote from: PRaDiUS on April 04, 2009, 02:31:14 PM
Where do I get the SimplePortal block for SMF Media Gallery?
QuoteOn line 1773 of sportal1-1.php added the m to this
<a href="' . $scripturl . '?action=mgallery
piece and that block at least now does what I want.
Database Error
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '(4) NOT NULL default ''' at line 2
File: /home/content/x/x/x/xxxxxxxx/html/forum/Packages/temp/install1-1.php
Line: 852
Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.8, while your database is at version 1.1.1. The above error might possibly go away if you execute the latest version of upgrade.php.
Quote from: Tiribulus on April 04, 2009, 03:10:22 PM
I don't remember exactly how I did it at the moment, but I used the regular gallery block and add an "m" to a couple places. might've been just one, and it works fine. I'll see if I can dig it up if nobody else answers before then.
Don't know if this exactly what you're asking about and I am no expert, but this got my galley block pointing at media gallery.QuoteOn line 1773 of sportal1-1.php added the m to this
<a href="' . $scripturl . '?action=mgallery
piece and that block at least now does what I want.
Quote from: learjet45 on April 05, 2009, 09:56:46 AM
ok. I just went to upgrade and I have one issue. I get a "Test Failed" for index.php. Should I go in and make the manual change from what is added/changed to 2.1.1 to before installing 2.1.1 and then should I uninstall 2.1.1. Then should I install 2.2?
Quote from: Blinker on April 07, 2009, 05:02:21 AM
Hi guys, I'm still looking for help for my issue a few posts up. Please? My members want their portal back! :)
Quote from: Blinker on April 07, 2009, 05:02:21 AM
Hi guys, I'm still looking for help for my issue a few posts up. Please? My members want their portal back! :)
Quote from: karbaciun on April 07, 2009, 04:39:05 AM
I translate simple portal 2.1.1 to persian language
after install, my theme be left to right in IE but on the firefox and safari working good
provided my language is right to left
even befor add block and on the default theme
why?
and how solution this problem?
tnx a lot
Quote from: daveaite on April 08, 2009, 04:36:36 AMGo into simple portal -> configuration -> block settings to enable the blocks and the size of them.
I can't find the location of the button to:
-re-enable left side blocks
Quote from: tfs on April 08, 2009, 06:50:14 PM
Future birthdays...
I'm displaying a "Calendar Information" type block and would like it to show upcoming birthdays for the next month. Currently it only shows a birthday if it's today. I have "Events In Future:" set to 30.
Also, the verbage on the new "Calendar" type block seems to be wanting for days when there's no activities scheduled. It just says "No calendar events were found" even though there are dates in the month that have an event. There should be some indicator to the user that they need to click on BOLD numbers in the GUI calendar to see the scheduled activities for those dates. Additionally, the BOLD numbers don't really grab the eye. They should be color coded somehow to indicate that something's scheduled.
1. Execute Modification ./index.php Test failed
2. Execute Modification ./Sources/BoardIndex.php Test successful
3. Execute Modification ./Sources/Display.php Test successful
4. Execute Modification ./Sources/Load.php Test successful
5. Execute Modification ./Sources/ManagePermissions.php Test failed
6. Execute Modification ./Sources/QueryString.php Test successful
7. Execute Modification ./Sources/Recent.php Test successful
8. Execute Modification ./Sources/Subs.php Test failed
9. Execute Modification ./Sources/Help.php Test successful
10. Execute Modification ./Sources/ManageServer.php Test successful
11. Execute Modification ./Sources/Admin.php Test failed
12. Execute Modification ./SSI.php Test successful
13. Execute Modification ./Themes/default/index.template.php Test failed
14. Execute Modification ./Themes/default/Display.template.php Test successful
15. Execute Modification ./Themes/default/languages/Who.english.php Test successful
16. Execute Modification ./Themes/default/languages/Who.english-utf8.php Skipping file
17. Delete File ./Sources/SPortal1-1.php
18. Delete File ./Sources/SPortalAdmin1-1.php
19. Delete File ./Sources/Subs-SPortal1-1.php
20. Delete File ./Themes/default/SPortal1-1.template.php
21. Delete File ./Themes/default/SPortalAdmin1-1.template.php
22. Delete File ./Themes/default/SPortalBlocks1-1.template.php
23. Delete File ./Themes/default/languages/SPortal.english.php
24. Delete File ./Themes/default/languages/SPortal.english-utf8.php
25. Delete File ./Themes/default/languages/SPortalAdmin.english.php
26. Delete File ./Themes/default/languages/SPortalAdmin.english-utf8.php
27. Delete File ./Themes/default/languages/SPortalHelp.english.php
28. Delete File ./Themes/default/languages/SPortalHelp.english-utf8.php
29. Delete File ./Themes/default/images/arrow.gif
30. Delete File ./Themes/default/images/dot.gif
31. Delete File ./Themes/default/images/selected1.gif
Quote from: Robbo_ on April 08, 2009, 10:12:20 AMQuote from: daveaite on April 08, 2009, 04:36:36 AMGo into simple portal -> configuration -> block settings to enable the blocks and the size of them.
I can't find the location of the button to:
-re-enable left side blocks
Then go into simple portal -> blocks and make sure there are some left blocks to be shown.
Quote from: mrtrc266 on April 08, 2009, 07:21:42 PM
I agree with you 100% the old Custom Block Code was much better than the 2 calendar blocks that are now the default for SP 2.2. You can see it here
http://monsters-mansion.com/index.php
class="sp_online_flow"
Quote from: Blue Dream on April 09, 2009, 04:27:50 AM
Future events is just for events as it says in the title. It won't show Birthdays or Holidays.
Quote
By default, events, birthdays and holidays on that day are displayed under the calendar, unless user clicks on another date. What's wrong with that? It isn't a good idea to color days when there are 1000+ themes in the Theme Site.
Quote from: mrtrc266 on April 09, 2009, 01:17:59 PM
@ tfs, not sure if you saw my post above but there is a custom calendar php block that you can use to get what you're requesting, you can color code your events, holidays and birthdays so that the number on the calendar pops out and say "Hey, we have something going on this day!" Also you can set out how many days to show upcoming events and it shows the text below the calendar seperated by birthdays, events, holidays.
Once again you can see it HERE (http://monsters-mansion.com/index.php)
And you can get it here ( I use the DIN1031CalenderBlockV3.php )
http://simpleportal.net/index.php?topic=89.msg5205#msg5205
Hope that helps
//How many day in future should be shown in the events on today? (If you disable today nothing will work)
$eventes_future = 5;
Quote from: mrtrc266 on April 09, 2009, 03:37:40 PM
Glad you like it, I find it much more functional as well. ;)
You should be able to set this out to 30
Code Select//How many day in future should be shown in the events on today? (If you disable today nothing will work ;D)
$eventes_future = 5;
Quote from: mrtrc266 on April 09, 2009, 03:37:40 PM
Glad you like it, I find it much more functional as well. ;)
You should be able to set this out to whatever you like
Code Select//How many day in future should be shown in the events on today? (If you disable today nothing will work)
$eventes_future = 5;
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '(4) NOT NULL ,
`force_view` tinyint(2) NOT NULL default '0',
File: /home/content/x/x/x/xxxxxxxx/html/forum/Packages/temp/install1-1.php
Line: 784
Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.8, while your database is at version 1.1.1. The above error might possibly go away if you execute the latest version of upgrade.php.
Quote from: Blue Dream on April 07, 2009, 10:44:25 AMQuote from: Blinker on April 07, 2009, 05:02:21 AM
Hi guys, I'm still looking for help for my issue a few posts up. Please? My members want their portal back! :)
Can you pm me an admin account to check it?
Quote from: karbaciun on April 07, 2009, 01:17:12 PM
after install simple portal the verificationcode image not loading in the registering page
on the all theme and all language setting
http://gregnmary.gotdns.com:8080/index.php?action=spadmin;area=blocks;sa=edit
[Thu Apr 16 23:47:40 2009] [error] [client 192.168.1.1] File does not exist: /srv/www/htdocs/\\\\\\"http:, referer: http://gregnmary.gotdns.com:8080/index.php?action=spadmin;area=blocks;sa=edit
[Thu Apr 16 23:48:35 2009] [error] [client 192.168.1.1] File does not exist: /srv/www/htdocs/\\"http:, referer:
Quote from: R.Bourne on April 12, 2009, 03:55:25 AM
EDIT #1 ---> Looks like this issue has been already reported here http://www.simplemachines.org/community/index.php?topic=227599.msg2003227#msg2003227
EDIT #2 ---> When the portal is in "Maintenance Mode", the Admin or Global Moderators don't have this issue using any browsers.
Quote from: Tiribulus on April 17, 2009, 05:59:14 PM
I'm not having this issue either with IE7 or 8 with or without compatibility mode as either admin or regular user. I'm not trying to minimize it for you guys, but unless you can reproduce it on my site I can't make it happen. I don't know.
Quote from: R.Bourne on April 17, 2009, 06:31:46 PMQuote from: Tiribulus on April 17, 2009, 05:59:14 PM
I'm not having this issue either with IE7 or 8 with or without compatibility mode as either admin or regular user. I'm not trying to minimize it for you guys, but unless you can reproduce it on my site I can't make it happen. I don't know.
Thankfully, your site appears to be working fine. Good for you :)
I uninstalled it already so I really don't care but I compared your site with Filipina's and noticed couple of things:
1) On all message forums, you have this portal.css as stylesheet but not on Filipina's!
2) I think it might have something to do with the theme that you're using. Maybe, if you switch to default SMF, we could duplicate this issue. Then again, maybe not! Either case, I am out of here :D
Quote from: R.Bourne on April 12, 2009, 03:55:25 AM
The following browsers have issues:
Camino 1.6.7 (OS X), IE 8 (Compatibility mode ENABLED)
As you know, there is a problem with IE 8 and SMF as discussed in this forum. So, we need to enable this option. Or, as suggested by someone else, this line can also be added to index.template.php file (<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />).
IF, we check off the "Maintenance Mode" for the MOD, things are back to normal!
Any suggestions, please?
//-Ignore MOD- START
$context['html_headers'] = '
//-Ignore MOD- START
$context['html_headers'] .= '
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<div align="center"><a href="www.rapidbikes.com.au"><img src="/Ads/rapid/rapid.jpg" /></a>
</body>
</html>
Quote from: mpforum on April 26, 2009, 12:28:30 AM
Need a bit of advice.
I set up a HTML block and I placed a picture and linked it to another site (www.rapidbikes.com.au (http://www.rapidbikes.com.au)) through the HTML code.Code Select<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<div align="center"><a href="www.rapidbikes.com.au"><img src="/Ads/rapid/rapid.jpg" /></a>
</body>
</html>
Problem is, the link points to http://www.mpforum.com.au/www.rapidbikes.com.au (http://www.mpforum.com.au/www.rapidbikes.com.au)
How can I fix this?
Thanks in advance,
Dean.
<p align="center"><a href="http://www.rapidbikes.com.au/home.php"><img src="/Ads/rapid/rapid.jpg" /></a>
Quote from: BoZilla on April 25, 2009, 02:42:21 PM
How can I make it so that the boxes for new posts on the portal page don't show the coding from the post? (See attachment to see what I'm talking about)
Quote from: Blue Dream on April 27, 2009, 05:16:40 AMQuote from: BoZilla on April 25, 2009, 02:42:21 PM
How can I make it so that the boxes for new posts on the portal page don't show the coding from the post? (See attachment to see what I'm talking about)
This will be fixed in the new bug fix version, which will be out very very soon.
Quote from: mrtrc266 on April 26, 2009, 10:37:11 AM
Try using just thisCode Select<p align="center"><a href="http://www.rapidbikes.com.au/home.php"><img src="/Ads/rapid/rapid.jpg" /></a>
Quote from: Praatwurst on April 28, 2009, 03:06:15 PM
How do I enable the function to let users react on a Block? :)
Quote from: impennetrate on April 28, 2009, 05:48:12 PM
Um, I'm getting parse errors whenever I use a php block...And I really wanna add the treasury mod to my homepage. How do I fix this?
global $sourcedir;
include("$sourcedir/DonationBlock.php");
Quote from: Blue Dream on April 29, 2009, 05:14:00 AMResponse, reply, react, answer, comments.Quote from: Praatwurst on April 28, 2009, 03:06:15 PM
How do I enable the function to let users react on a Block? :)
What do you mean by react?
Quote from: impennetrate on April 29, 2009, 05:28:49 AM
Any php script doesn't work...Code Selectglobal $sourcedir;
include("$sourcedir/DonationBlock.php");
global $sourcedir;
require_once($sourcedir . '/DonationBlock.php');
Quote from: Praatwurst on April 29, 2009, 08:24:20 AMQuote from: Blue Dream on April 29, 2009, 05:14:00 AMResponse, reply, react, answer, comments.Quote from: Praatwurst on April 28, 2009, 03:06:15 PM
How do I enable the function to let users react on a Block? :)
What do you mean by react?
Kinda lika a blog where people can response on the written blogs ;)
Quote from: Blue Dream on April 30, 2009, 05:35:55 AMIt's the 'Read More | Write Comment' I mean,Quote from: Praatwurst on April 29, 2009, 08:24:20 AMQuote from: Blue Dream on April 29, 2009, 05:14:00 AMResponse, reply, react, answer, comments.Quote from: Praatwurst on April 28, 2009, 03:06:15 PM
How do I enable the function to let users react on a Block? :)
What do you mean by react?
Kinda lika a blog where people can response on the written blogs ;)
You can of course. You can see an example at www.simpleportal.net, the shoutbox block. It just has some PHP codes within. However, it really depends on what you want exactly.
Quote from: Blue Dream on April 30, 2009, 12:50:43 PMCan't find it anywhere, could you tell me step by step please? :)
They appear by default for articles and board news block.
Quote from: impennetrate on May 02, 2009, 09:35:52 AM
Also, custom html doesn't work because it automatically links within my site. So if i add this url: http://www.google.com/ (http://www.google.com/)
i'll get this: http://www.mysite.com/http://www.google.com/ (http://www.mysite.com/http://www.google.com/)
I think these two problems may be linked <.<
<a href="http://www.google.com/">http://www.google.com/</a>
<a href="Google'>http://www.google.com/">Google</a>
<a href="http://www.google.com/">http://www.google.com/</a>
, Quote from: impennetrate on May 02, 2009, 12:18:35 PM
I know that. I'm saying that if I enterCode Select<a href="http://www.google.com/">http://www.google.com/</a>
,
I will not get www.google.com
Instead, I get http://www.mysite.com/www.google.com
<a href="http://www.google.com/">http://www.google.com/</a>
it should return exactly http://www.google.com as a live link.<a href="http://www.google.com/">google</a>
would get you google as a live link to google. Your're not going to get www.google.com with any of the options you have here. That would be <a href="http://www.google.com/">www.google.com/</a>
. If you do know all this and entering <a href="http://www.google.com/">google</a>
does NOT for instance get you google as a live link them something is indeed wrong.
Quote from: Electro-X- on May 02, 2009, 07:43:04 PM
How do i add the forum button on the top menu on any other themes? The forum button only appear on the default " core" theme. Lets say how do i add the forum button to a babylon theme? or is it the same for any other theme?
<a href="URL"><img src="PATH TO IMAGE" border="XXX" width="XXX" height="XXX"/>
Quote from: Tiribulus on May 02, 2009, 09:00:10 PM
I'm not the most l33t codemeister here by any hilarious stretch , but this is might work if you play around with it:Code Select<a href="URL"><img src="PATH TO IMAGE" border="XXX" width="XXX" height="XXX"/>
This would return an image that is also a clickable link. At least it does for me in global headers and footers.
Quote from: mtechama on May 02, 2009, 09:37:30 PMQuote from: Tiribulus on May 02, 2009, 09:00:10 PM
I'm not the most l33t codemeister here by any hilarious stretch , but this is might work if you play around with it:Code Select<a href="URL"><img src="PATH TO IMAGE" border="XXX" width="XXX" height="XXX"/>
This would return an image that is also a clickable link. At least it does for me in global headers and footers.
I have done that it didn't work at all.
Quote from: kkattfish on May 01, 2009, 04:27:39 PM
i'm using the camo theme, and my users and i don't have the link to forum from this portal. am i missing something? it does work with the default theme.
Quote from: impennetrate on May 02, 2009, 09:35:52 AM
Nope that php script doesn't work either. Even if I disable php validation...
Also, custom html doesn't work because it automatically links within my site. So if i add this url: http://www.google.com/
i'll get this: http://www.mysite.com/http://www.google.com/
I think these two problems may be linked <.<
Quote from: mtechama on May 02, 2009, 07:18:18 PM
I am using a block and my images are to big how can I shrink the images to a smaller size?
Quote from: Electro-X- on May 02, 2009, 07:43:04 PM
How do i add the forum button on the top menu on any other themes? The forum button only appear on the default " core" theme. Lets say how do i add the forum button to a babylon theme? or is it the same for any other theme?
Quote from: mtechama on May 02, 2009, 08:47:56 PM
I have setup a block and I have a image in the block and the image is way to big. How can I make the image smaller than the orignal size?
Quote from: Nathaniel on May 07, 2009, 01:48:12 AMThanks, I tried that but they all turned into white buttons instead.
@johncccccc,
The issue is your custom theme's 'dropdown.css' file then. Its likely that it doesn't really change anything important, try temporarily renaming, so that the default dropdown.css file gets loaded instead. If there are no issues with using the default css file, then you should be able to delete the renamed 'dropdown.css' file form your custom themes css folder (as its would be unnecessary).
Otherwise post the file and I'll see what I can do.
Quote from: neverhurry on May 07, 2009, 01:08:23 PMAre you work with UTF-8 or with an other encoding type?
Hello,
i use simple portal and love it, but i got this strange ????, it doesn't show correctly the title of the block in Chinese, please look at the attachment i marked within the white circle, i am using chinese version of SMF.
thank you!
Quote from: naijaweb on May 08, 2009, 02:19:48 AMPossible this will help you -> http://simpleportal.net/index.php?topic=1906.0
Hello, i really love simple portal, i installed a new smf 1.1.8 forum. Then i tried installing simple portal 2.2 and i got this error
Database Error
Field 'content' doesn't have a default value
File: /www/110mb.com/n/i/g/e/r/i/a/t/nigeriatest/htdocs/Packages/temp/install1-1.php
Line: 1073
please i need a solution
Quote from: ディン1031 on May 08, 2009, 04:05:19 AM
Are you work with UTF-8 or with an other encoding type?
Possible if you work with UTF-8 that the database things of Simple Portal are not in the correct encoding type.
Quote from: kitekid on May 09, 2009, 11:45:41 AM
Upgraded from 2.1.1 with out a hitch.
Thanks guys. Works great!
Quote from: Filipina on May 09, 2009, 01:47:12 PM
great upgraded without a hitch.. awesome... ok this is where i ask the dumb question
7. SimplePortal 2.2.1
8. SimplePortal 2.2
16. SimplePortal 2.1.1
Can I safely delete 2.1.1 only, or can I delete 2.2 off my package manager too :) Something tells me I should leave 2.2 in place
Quote from: Tiribulus on May 09, 2009, 09:22:17 PM
I spoke too soon. Could very well be something on my end, but my quick check earlier didn't reveal that on all OSes and browsers I now get this after the 2.2.1 install:
I restored a backup from yesterday and all went back to normal. Reinstalled 2.2.1 and it's back like the above screener. Installs fine, no errors in the log. If one of the SP folks has any idea why I'd sure appreciate it.
Thanks.
table-layout: fixed;
Quote from: Blinker on May 10, 2009, 03:02:10 AM
Quick question: My board has no guest access and previously when you navigate to my forum's URL (http://myforum.org/forum/index.php) it would land on the Home button and show the warning saying you have to be a registered member, then it would have the login section below that.
Now, the Home and Forum buttons show and the http://myforum.org/forum/index.php link takes you to a blank section with just the forum name displayed the way it does on the linktree when you're logged in.
You need to click on either the Forum or Login buttons to get the main login box.
How can I get it to default back to the Forum or Login page?
Quote from: Blinker on May 10, 2009, 03:02:10 AM
... Quick question: My board has no guest access and previously when you navigate to my forum's URL (http://myforum.org/forum/index.php) it would land on the Home button and show the warning saying you have to be a registered member, then it would have the login section below that.
Now, the Home and Forum buttons show and the http://myforum.org/forum/index.php link takes you to a blank section with just the forum name displayed the way it does on the linktree when you're logged in.
You need to click on either the Forum or Login buttons to get the main login box.
How can I get it to default back to the Forum or Login page?
Quote from: johncccccc on May 10, 2009, 10:53:09 AM
I also have updated, went perfect, even though i didnt notice any bugs before lol..
nice work :)
im still have the problem here though
http://www.simplemachines.org/community/index.php?topic=227599.msg2045290#msg2045290
I had uploaded dropmenu.css here, as requested, but no downloads of it . . .
http://www.simplemachines.org/community/index.php?topic=227599.msg2048168#msg2048168
Quote from: johncccccc on May 05, 2009, 12:48:41 PMI will try to get with you on IM later today or tomorrow and show you how to fix that.
everything is perfect with the mod, even using it for displaying my ads lol..
im having an issue which is caused by this mod
my admin panel and profile navigation buttons are messed up after installing the mod
here is an image
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi43.tinypic.com%2Fruzf2w.jpg&hash=08c5322225e0b094342c17078a3bba54bbf18f47)
any ideas on a fix?
Quote from: Blue Dream on May 09, 2009, 06:16:52 AM
neverhurry:
Download the attached file install1-1.php.
Upload it to your forum root, where index.php file is.
Run it with your browser like: http://yoursite.com/install1-1.php.
Remove the file.
Quote from: Tyrsson on May 10, 2009, 01:44:43 PMQuote from: johncccccc on May 05, 2009, 12:48:41 PMI will try to get with you on IM later today or tomorrow and show you how to fix that.
everything is perfect with the mod, even using it for displaying my ads lol..
im having an issue which is caused by this mod
my admin panel and profile navigation buttons are messed up after installing the mod
here is an image
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi43.tinypic.com%2Fruzf2w.jpg&hash=08c5322225e0b094342c17078a3bba54bbf18f47)
any ideas on a fix?
Quote from: Blue Dream on May 10, 2009, 06:05:55 AMQuote from: Tiribulus on May 09, 2009, 09:22:17 PM
I spoke too soon. Could very well be something on my end, but my quick check earlier didn't reveal that on all OSes and browsers I now get this after the 2.2.1 install:
I restored a backup from yesterday and all went back to normal. Reinstalled 2.2.1 and it's back like the above screener. Installs fine, no errors in the log. If one of the SP folks has any idea why I'd sure appreciate it.
Thanks.
Probably the new property (table-layout: fixed;) in portal.css file caused this issue. It was added to some bugs about the main table for SMF 2.0. It should have been okay with SMF 1.1.8, however, I guess it caused issue because of the numerous HTML errors in your theme. If you are happy with how 2.2 looks, just remove this line from Themes/default/portal.css:Code Selecttable-layout: fixed;
Quote from: neverhurry on May 10, 2009, 03:21:31 PMI try to explain it better:
Permission Settings:
One Membergroup
All Membergroups
Ignore Permissions
function sp_attachmentImage($parameters, $id, $return_parameters = false)
{
global $db_prefix, $modSettings, $scripturl, $txt, $settings;
function sp_attachmentImage($parameters, $id, $return_parameters = false)
{
global $db_prefix, $modSettings, $scripturl, $txt, $settings, $user_info;
att.width, att.height" . (empty($modSettings['attachmentShowImages']) || empty($modSettings['attachmentThumbnails']) ? "" : ", IFNULL(thumb.ID_ATTACH, 0) AS id_thumb, thumb.width AS thumb_width, thumb.height AS thumb_height") . "
FROM {$db_prefix}attachments AS att
INNER JOIN {$db_prefix}messages AS m ON (m.ID_MSG = att.ID_MSG)
INNER JOIN {$db_prefix}topics AS t ON (t.ID_TOPIC = m.ID_TOPIC)
att.width, att.height" . (empty($modSettings['attachmentShowImages']) || empty($modSettings['attachmentThumbnails']) ? "" : ", IFNULL(thumb.ID_ATTACH, 0) AS id_thumb, thumb.width AS thumb_width, thumb.height AS thumb_height") . "
FROM {$db_prefix}attachments AS att
INNER JOIN {$db_prefix}messages AS m ON (m.ID_MSG = att.ID_MSG)
INNER JOIN {$db_prefix}topics AS t ON (t.ID_TOPIC = m.ID_TOPIC)
LEFT JOIN {$db_prefix}boards AS b ON (b.ID_BOARD = t.ID_BOARD)
WHERE att.attachmentType = 0
AND att.width != 0
$boards
WHERE att.attachmentType = 0
AND att.width != 0
AND $user_info[query_see_board]
$boards
Quote from: ディン1031 on May 11, 2009, 06:43:14 AM
@neverhurry
Is the problem solved with the title?
Quote from: ディン1031 on May 11, 2009, 06:43:14 AM
Change in SPortal1-1.phpCode Select
function sp_attachmentImage($parameters)
{
global $db_prefix, $modSettings, $scripturl, $txt, $settings;
Replace:Code Select
function sp_attachmentImage($parameters)
{
global $db_prefix, $modSettings, $scripturl, $txt, $settings, $user_info;
Bye
DIN1031
Quote from: neverhurry on May 11, 2009, 07:57:48 AMOkay, i've a question why do you want to run this file? Normal the upgrade do this automatic? What kind of error appear there?Quote from: ディン1031 on May 11, 2009, 06:43:14 AM
@neverhurry
Is the problem solved with the title?
no, because i got that error (shown in the attached images), i couldn't run the repairing file install1-1.php.
can you help?
thank you!
Quote from: Filipina on April 22, 2009, 07:38:24 PMQuote from: R.Bourne on April 12, 2009, 03:55:25 AM
The following browsers have issues:
Camino 1.6.7 (OS X), IE 8 (Compatibility mode ENABLED)
As you know, there is a problem with IE 8 and SMF as discussed in this forum. So, we need to enable this option. Or, as suggested by someone else, this line can also be added to index.template.php file (<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />).
IF, we check off the "Maintenance Mode" for the MOD, things are back to normal!
Any suggestions, please?
[SiNaN] found the answer to the posts being squeezed to the left side with the big open space on the right. I want to say thanks to him for his efforts and making my forum look right again. It has to do with the Ignore Users Mod. I have it, and R.Bourne I think you have this Mod too.
This all goes back to my post here
http://www.simplemachines.org/community/index.php?topic=227599.msg2003227#msg2003227
Sources/Display.php
Code: (Find)Code Select
//-Ignore MOD- START
$context['html_headers'] = '
Code: (Replace With)Code Select//-Ignore MOD- START
$context['html_headers'] .= '
Yest there is a difference if you look closely and that little difference fixed my forum!
Quote from: ディン1031 on May 11, 2009, 08:57:45 AM
Sorry my mistake <<..., I fixed the code, should be correct now.Quote from: neverhurry on May 11, 2009, 07:57:48 AMOkay, i've a question why do you want to run this file? Normal the upgrade do this automatic? What kind of error appear there?Quote from: ディン1031 on May 11, 2009, 06:43:14 AM
@neverhurry
Is the problem solved with the title?
no, because i got that error (shown in the attached images), i couldn't run the repairing file install1-1.php.
can you help?
thank you!
Bye
DIN1031
Quote from: neverhurry on May 07, 2009, 01:08:23 PM
Hello,
i use simple portal and love it, but i got this strange ????, it doesn't show correctly the title of the block in Chinese, please look at the attachment i marked within the white circle, i am using chinese version of SMF.
thank you!
Quote from: Blue Dream on May 12, 2009, 05:09:11 AM
It's in Sources directory and depending on your version it should be SPortal1-1.php or SPortal2.php.
Quote
1. You can edit that going to your SPortal.phpCode (find) Select', $txt['posted_by'], '
Code (replace to) Selectby
2. You can change the width going to SSI.php, i think since the block requires ssi_recentattachments
3. You can edit that in Sportal.php too
...
'link' => '<a href="' . $scripturl . '?action=dlattach;topic=' . $row['ID_TOPIC'] . '.0;attach=' . $row['ID_ATTACH'] . ';image"><img src="' . $scripturl . '?action=dlattach;topic=' . $row['ID_TOPIC'] . '.0;attach=' . $id_thumb . ';image" alt="' . $filename . '"' . (empty($row['ID_THUMB']) ? ' width="100"' : '') . ' /></a>',
'link' => '<a href="' . $scripturl . '?topic=' . $row['ID_TOPIC'] . '.msg' . $row['ID_MSG'] . '#msg' . $row['ID_MSG'] . '"><img src="' . $scripturl . '?action=dlattach;topic=' . $row['ID_TOPIC'] . '.0;attach=' . $id_thumb . ';image" alt="' . $filename . '"' . (empty($row['ID_THUMB']) ? ' width="100"' : '') . ' /></a>',
Quote from: neverhurry on May 12, 2009, 09:01:53 AM
DIN, works like charm! Thank you! (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.veryeurope.com%2FSmileys%2Fskype%2Frose.gif&hash=37f775b716732e59e0886beaec39fb637e318890)(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.veryeurope.com%2FSmileys%2Fskype%2Frose.gif&hash=37f775b716732e59e0886beaec39fb637e318890)(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.veryeurope.com%2FSmileys%2Fskype%2Frose.gif&hash=37f775b716732e59e0886beaec39fb637e318890)(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.veryeurope.com%2FSmileys%2Fskype%2Fthanks.gif&hash=58db107104210fdaf2e65c1923aeb0484e221480)
do you know where can i edit the text "posted by" to simply "by"? THANK YOU!!!
QuoteOkay i forgot the file SPortal1-1.php ;).
I think you would like to replace the $txt['sp-downloadsPoster'] to $txt[525] than there should be stand only by ;).
But think on next update this could be not available anymore
Quote
Line: 14
Char: 1
Error: 'is_ie5up' is undefined
Code: 0
URL: http://www.northeastsportbikes.com/index.php?action=forum
Quote from: c5Quad on May 12, 2009, 04:26:26 PMDon't know ;). We will see it when it avaible.
I have a question, I've been trying to wait for SMF RC2 to be released before I started my webpage, but we don't know how long that might be.
What I want to know is if I build my site with SimplePortal 2.2.1 and SMF RC1 will I have to wipe out everything and completely start over when SMF RC2 comes out?
Thanks
Quote from: dry3210 on May 12, 2009, 04:52:36 PMWhich SMF version and Portal Version are you useing?
I did a search and didn't get anything and I'm not reading through 108 pages to see if its there so any help would be appreciated
1. Clicking "Mark All Messages Read" on the main page makes the user go to the home/portal page. I'd rather it stay where it is. Any fix for this?
2. I get this error in ExplorerQuote
Line: 14
Char: 1
Error: 'is_ie5up' is undefined
Code: 0
URL: http://www.northeastsportbikes.com/index.php?action=forum
I'm assuming it's because I'm using IE6? But I can't upgrade cause its a work computer. Any way to fix this?
Quote from: dry3210 on May 12, 2009, 04:52:36 PMWhich SMF version and Portal Version are you useing?
I did a search and didn't get anything and I'm not reading through 108 pages to see if its there so any help would be appreciated
1. Clicking "Mark All Messages Read" on the main page makes the user go to the home/portal page. I'd rather it stay where it is. Any fix for this?
2. I get this error in ExplorerQuote
Line: 14
Char: 1
Error: 'is_ie5up' is undefined
Code: 0
URL: http://www.northeastsportbikes.com/index.php?action=forum
I'm assuming it's because I'm using IE6? But I can't upgrade cause its a work computer. Any way to fix this?
if (is_ie5up && !is_ie7up && document.body.filters)
// Some very basic browser detection
var ua = navigator.userAgent.toLowerCase();
var is_opera = ua.indexOf("opera") != -1;
var is_ie = ua.indexOf("msie") != -1 && !is_opera;
var is_ie4 = is_ie && ua.indexOf("msie 4") != -1;
var is_ie5 = is_ie && ua.indexOf("msie 5") != -1;
var is_ie50 = is_ie && ua.indexOf("msie 5.0") != -1;
var is_ie55 = is_ie && ua.indexOf("msie 5.5") != -1;
var is_ie5up = is_ie && !is_ie4;
var is_ie6 = is_ie && ua.indexOf("msie 6") != -1;
var is_ie6up = is_ie5up && !is_ie55 && !is_ie5;
var is_ie6down = is_ie6 || is_ie5 || is_ie4;
var is_ie7 = is_ie && ua.indexOf("msie 7") != -1;
var is_ie7up = is_ie6up && !is_ie6;
var is_ie7down = is_ie7 || is_ie6 || is_ie5 || is_ie4;
if (is_ie5up && !is_ie7up && document.body.filters)
<div><p>欢迎加入《非常欧洲》,如果您喜欢这个独特的网站,那么请您帮《非常欧洲》宣传几句。只需要您把一个文字链接或者一个图片链接加到您的个人网站,或者Myspace、Facebood等社会网站,或者您所属的任何论坛的个人资料页或签名中。办法非常简单,只需要复制下面的代码然后拷贝就行了。</p><br />
<table width="96%" border="0">
<tr>
<td width="50%">文字链接:</td>
<td width="50%"><span style="float: left;">文字链接显示:</span></td>
</tr>
<tr>
<td><textarea rows="1" cols="70"><a href="http://www.veryeurope.com">自豪的《非常欧洲》论坛会员</a></textarea></td>
<td><a href="http://www.veryeurope.com/">自豪的《非常欧洲》论坛会员</a></td>
</tr>
<tr>
<td><span style="float: left;">图片链接:</span></td>
<td><span style="float: left;">图片链接显示:</span></td>
</tr>
<tr>
<td><textarea name="textarea" cols="70" rows="2"><a href="http://www.veryeurope.com" title="《非常欧洲》" target="_blank"><img border="0" src="http://www.veryeurope.com/images/ouwang.gif" /></a></textarea></td>
<td><a href="http://www.veryeurope.com/" title="《非常欧洲》" target="_blank"><img src="http://www.veryeurope.com/images/ouwang.gif" alt="非常欧洲" border="0" /></a></td>
</tr>
</table>
<br>
</div>
Quote from: DarkSynopsis on May 15, 2009, 01:03:47 PM
Is it possible to move the Topic name closer to the Message Icon since I feel its just a bit to far apart on my site.
If so what file am I looking to edit and what line? Thanks :)
I'm using SMF 1.1.8 & SimplePortal 2.2.1
td.sp_recent_icon
{
vertical-align: middle;
width: 5%;
}
td.sp_recent_subject
{
width: 60%;
}
td.sp_recent_icon
{
vertical-align: middle;
width: 3%;
}
td.sp_recent_subject
{
width: 62%;
}
Quote from: alex_sercan on May 15, 2009, 02:20:41 PM
Hi, is it working properly on Windows hosting ?
Thanks.
Quote from: neverhurry on May 15, 2009, 03:18:30 PM
hello,
i use smf 1.1.8
sp 2.2.1
and i add a custom html block to the bottom blocks and i got this strange layout. pls look at the attachment.
but when i activated a blcok "board news" then it displays normally (shown in the attachment just below the problematic custom html block).
thank you very much in advance,
<div><p>欢迎加入《非常欧洲》,如果您喜欢这个独特的网站,那么请您帮《非常欧洲》宣传几句。只需要您把一个文字链接或者一个图片链接加到您的个人网站,或者Myspace、Facebood等社会网站,或者您所属的任何论坛的个人资料页或签名中。办法非常简单,只需要复制下面的代码然后拷贝就行了。</p><br />
<table width="96%" border="0">
<tr>
<td width="50%">文字链接:</td>
<td width="50%"><span style="float: left;">文字链接显示:</span></td>
</tr>
<tr>
<td><textarea rows="1" cols="70"><a href="http://www.veryeurope.com">自豪的《非常欧洲》论坛会员</a></textarea></td>
<td><a href="http://www.veryeurope.com/">自豪的《非常欧洲》论坛会员</a></td>
</tr>
<tr>
<td><span style="float: left;">图片链接:</span></td>
<td><span style="float: left;">图片链接显示:</span></td>
</tr>
<tr>
<td><textarea name="textarea" cols="70" rows="2"><a href="http://www.veryeurope.com" title="《非常欧洲》" target="_blank"><img border="0" src="http://www.veryeurope.com/images/ouwang.gif" /></a></textarea></td>
<td><a href="http://www.veryeurope.com/" title="《非常欧洲》" target="_blank"><img src="http://www.veryeurope.com/images/ouwang.gif" alt="非常欧洲" border="0" /></a></td>
</tr>
</table>
<br>
</div>
Quote from: Blue Dream on May 16, 2009, 04:17:34 AMQuote from: DarkSynopsis on May 15, 2009, 01:03:47 PM
Is it possible to move the Topic name closer to the Message Icon since I feel its just a bit to far apart on my site.
If so what file am I looking to edit and what line? Thanks :)
I'm using SMF 1.1.8 & SimplePortal 2.2.1
./Themes/default/portal.cssCode (Find) Selecttd.sp_recent_icon
{
vertical-align: middle;
width: 5%;
}
td.sp_recent_subject
{
width: 60%;
}
Change the widths there. You can make it:Code Selecttd.sp_recent_icon
{
vertical-align: middle;
width: 3%;
}
td.sp_recent_subject
{
width: 62%;
}
Quote from: Blue Dream on May 16, 2009, 06:11:44 AM
Try making a hard refresh to your browser. (Ctrl+F5)
Quote from: Blue Dream on May 16, 2009, 07:30:18 AM
Which block are you trying to do this for then?
Quote from: Blue Dream on May 16, 2009, 05:09:01 AM
You really don't need to re-install mods every time you get an error. I doubt it is something related to SimplePortal. May I see the forum itself.
Quote from: DarkSynopsis on May 16, 2009, 07:55:18 AMQuote from: Blue Dream on May 16, 2009, 07:30:18 AM
Which block are you trying to do this for then?
Board News
<td class="sp_middle">', $news['icon'], '</td>
<td class="sp_middle" style="padding: 0 0 0 5px;">', $news['icon'], '</td>
Quote from: neverhurry on May 16, 2009, 02:02:38 PMQuote from: Blue Dream on May 16, 2009, 05:09:01 AM
You really don't need to re-install mods every time you get an error. I doubt it is something related to SimplePortal. May I see the forum itself.
Yes, it is very nice of you indeed. The admin name and password are in the PM to you. please check.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.cinask.com%2FSmileys%2Fskype%2Fthanks.gif&hash=88edc56ffffe4016f0ed23642e76e188615528dd)
Quote from: ディン1031 on May 13, 2009, 11:19:48 AM
Okay a possible Fix (it's untested) ;).
Change in sp_pngfix.js (it's normal in you default theme dir)Code Select
if (is_ie5up && !is_ie7up && document.body.filters)
Replace withCode Select
// Some very basic browser detection
var ua = navigator.userAgent.toLowerCase();
var is_opera = ua.indexOf("opera") != -1;
var is_ie = ua.indexOf("msie") != -1 && !is_opera;
var is_ie4 = is_ie && ua.indexOf("msie 4") != -1;
var is_ie5 = is_ie && ua.indexOf("msie 5") != -1;
var is_ie50 = is_ie && ua.indexOf("msie 5.0") != -1;
var is_ie55 = is_ie && ua.indexOf("msie 5.5") != -1;
var is_ie5up = is_ie && !is_ie4;
var is_ie6 = is_ie && ua.indexOf("msie 6") != -1;
var is_ie6up = is_ie5up && !is_ie55 && !is_ie5;
var is_ie6down = is_ie6 || is_ie5 || is_ie4;
var is_ie7 = is_ie && ua.indexOf("msie 7") != -1;
var is_ie7up = is_ie6up && !is_ie6;
var is_ie7down = is_ie7 || is_ie6 || is_ie5 || is_ie4;
if (is_ie5up && !is_ie7up && document.body.filters)
Use is on you're own risk! And think if you insert it it could be possible that you can not upgrade to newer versions!
Bye
DIN1031
8: Undefined variable: modSettings
File: /-----------------/htdocs/forum/Themes/default/SPortal2.template.php (body_above sub template - eval?)
Line: 341
Line:339
Line:330
elseif (empty($modSettings['allow_guestAccess']) && !(!empty($_REQUEST['action']) && $_REQUEST['action'] == 'dlattach' && !empty($_REQUEST['type']) && $_REQUEST['type'] == 'avatar') && !(empty($_REQUEST['action']) && empty($board) && empty($topic) && $modSettings['sp_portal_mode'] == 1) && $user_info['is_guest'] && (!isset($_REQUEST['action']) || !in_array($_REQUEST['action'], array('coppa', 'login', 'login2', 'register', 'register2', 'reminder', 'activate', 'smstats', 'help', '.xml', 'verificationcode'))))
elseif (empty($modSettings['allow_guestAccess']) && !(!empty($_REQUEST['action']) && $_REQUEST['action'] == 'dlattach' && !empty($_REQUEST['type']) && $_REQUEST['type'] == 'avatar') && !(empty($_REQUEST['action']) && empty($board) && empty($topic) && $modSettings['sp_portal_mode'] == 1) && $user_info['is_guest'] && (!isset($_REQUEST['action']) || !in_array($_REQUEST['action'], array('coppa', 'login', 'login2', 'register', 'register2', 'reminder', 'activate', 'smstats', 'help', 'verificationcode'))))
QuoteThe way I got it working was by using KDIFF to figure out that the presence of '.xml', toward the end there was the difference.
'reminder', 'activate', 'help', 'smstats', '.xml',
'reminder', 'activate', 'help', 'smstats',
'reminder', 'activate', 'smstats', 'help', '.xml',
'reminder', 'activate', 'smstats', 'help',
Quote from: Blue Dream on May 21, 2009, 04:04:40 AM
For users getting index.php "Test Failed" error on upgrade to SMF 1.1.9 or 2.0 RC1-1 and have SimplePortal 2.2.1 installed
./index.phpCode (Find) Select'reminder', 'activate', 'smstats', 'help', '.xml',
Code (Replace) Select'reminder', 'activate', 'smstats', 'help',
Then you can ignore the error if it is *only* for index.php and continue with the upgrade.
This is not a bug at our end nor at SMF end. It is just a conflict between searches these two packages make.
Quote from: Kingus on May 21, 2009, 08:23:11 AM
thanks for your offer of help, i encoutered the same problem when i installed the custom tab mod. my index.template file is attached
Quote from: Blue Dream on May 21, 2009, 04:04:40 AM
For users getting index.php "Test Failed" error on upgrade to SMF 1.1.9 or 2.0 RC1-1 and have SimplePortal 2.2.1 installed
./index.phpCode (Find) Select'reminder', 'activate', 'smstats', 'help', '.xml',
Code (Replace) Select'reminder', 'activate', 'smstats', 'help',
Then you can ignore the error if it is *only* for index.php and continue with the upgrade.
This is not a bug at our end nor at SMF end. It is just a conflict between searches these two packages make.
Quote from: Hondenfora on May 21, 2009, 10:56:32 AM
I have tried this and searched in my index.php but I cannot find these lines with my editor, where do I have to search specifically ??
We work with a CPanel
Quote from: romper on May 23, 2009, 07:36:01 PM
Can I please get help with install....I removed everything and wanted to go with SP but I got:
Execute Modification ./index.php Test failed
What I did is install anyway and then manualy rewrite index.php with manual instructions given. Is that ok or shuold I uninstall and give you index.php file.?
Quote from: lorenzone92 on May 25, 2009, 12:30:54 PM
Hello!!
First of all, thanks for this wonderful MOD!! :D
I have SMF installed in /forum directory (i've created a subdomain, so in the browser it's forum.mysite.com), is it possibile to install simpleportal and have the portal in the home page?
I try to explain better... I'd like to have the simpleportal page displayed in www.mysite.com but continue to have the forum in /forum...
Thanks in advance!! ;)
Quote from: TommyJoe on May 25, 2009, 01:15:59 PM
Is there a way to have multiple portal pages?
Quote from: TommyJoe on May 25, 2009, 01:15:59 PM
I have several feeds on the portal page and scrolling down I find "Pages: [1] " and then
it continues on below that? Am I missing something in the setup for the portal?
Quote from: TommyJoe on May 25, 2009, 01:15:59 PM
Is there a way to have multiple portal pages?
Quote from: TommyJoe on May 25, 2009, 01:15:59 PM
I have several feeds on the portal page and scrolling down I find "Pages: [1] " and then
it continues on below that? Am I missing something in the setup for the portal?
Quote from: [SiNaN] on May 25, 2009, 01:29:57 PMThanks for the reply!!Quote from: lorenzone92 on May 25, 2009, 12:30:54 PM
Hello!!
First of all, thanks for this wonderful MOD!! :D
I have SMF installed in /forum directory (i've created a subdomain, so in the browser it's forum.mysite.com), is it possibile to install simpleportal and have the portal in the home page?
I try to explain better... I'd like to have the simpleportal page displayed in www.mysite.com but continue to have the forum in /forum...
Thanks in advance!! ;)
Yeah, we have the standalone support. Select "Standalone" as the portal mode from Admin > SimplePortal > Configuration > General Settings area. Then open the SPStandalone.php file in your root with a text editor (like Notepad) and follow the instructions written with comment lines.
Quote from: [SiNaN] on May 25, 2009, 02:22:34 PMit simply redirects to my root...
What do you mean by "it doesn't work". The error you are getting or the result?
Quote from: [SiNaN] on May 25, 2009, 02:35:43 PMNo... my .htaccess only had:
Do you have anything to rewrite URLs, or a redirection of some kind with .htaccess in the root? Does it work when you move it to some other directory?
$forum_dir = dirname(__FILE__) . '/forum';
QuoteDatabase error, given array of integer values is empty. (include_boards)
Quote from: [SiNaN] on May 26, 2009, 09:50:57 AMThis was unchecked... I checked it, cleared the cache in SMF but... the same..
Use subdomain independent cookies => checked
Quote from: [SiNaN] on May 26, 2009, 04:45:04 AM
lorenzone92:
Are you sure that you set the $forum_dir correctly first? See if this works:Code Select$forum_dir = dirname(__FILE__) . '/forum';
arockets:
Glad that you find the mod useful. Check out this topic for your question:
http://simpleportal.net/index.php?topic=148.0
Quote from: lorenzone92 on May 26, 2009, 10:39:14 AM
I'd like to change 'em only in the portal... :)
if (!empty($context['standalone']))
echo 'I\'m on portal page';
else
echo 'I\'m not on portal page';
Quote from: lorenzone92 on May 26, 2009, 10:39:14 AM
In SPortal2.php I see this:
// If you want to remove Forum link when it is
// alone, take out the following two comment lines.
//if (empty($context['linktree'][1]))
// $context['linktree'] = array();
// If you want to remove Forum link when it is
// alone, take out the following two comment lines.
if (empty($context['linktree'][1]))
$context['linktree'] = array();
Quote from: LOVELORD on May 26, 2009, 02:02:43 PM
hove to make all block same? heigh and weith to be same...
etc:
left block 15 % middle 60% and right 15%
also down block to be 95 %
Quote from: [SiNaN] on May 27, 2009, 11:09:20 AMMmh.. what do this code do? And in which file I have to put it?Quote from: lorenzone92 on May 26, 2009, 10:39:14 AM
I'd like to change 'em only in the portal... :)
Then you can use $context['standalone'] to check if you are on portal or not, and echo content according to that in index.template.php file. Example:Code Selectif (!empty($context['standalone']))
echo 'I\'m on portal page';
else
echo 'I\'m not on portal page';
Quote from: [SiNaN] on May 27, 2009, 11:09:20 AMOK, thanks!!! :DQuote from: lorenzone92 on May 26, 2009, 10:39:14 AM
In SPortal2.php I see this:
You should be able to see more than that, no? ;)Code (Find) Select// If you want to remove Forum link when it is
// alone, take out the following two comment lines.
//if (empty($context['linktree'][1]))
// $context['linktree'] = array();Code (Replace) Select// If you want to remove Forum link when it is
// alone, take out the following two comment lines.
if (empty($context['linktree'][1]))
$context['linktree'] = array();
Quote from: [SiNaN] on May 27, 2009, 11:57:54 AM
Specify the width in pixels like: 200px
Quote from: BoZilla on May 27, 2009, 10:50:25 PMAs far i know for this is the "Recent Topics" Block ;).
I'm using SimplePortal 2.2.1 and have a question about the "Recent Post" block. Is there anyway to just show the topic that was started once instead of a new one each time someone replies? Maybe just update the topic date and time when there are new replies?
(See attachment for image of what I'm talking about)
Quote from: lorenzone92 on May 27, 2009, 12:40:40 PMQuote from: [SiNaN] on May 27, 2009, 11:09:20 AMMmh.. what do this code do? And in which file I have to put it?
Then you can use $context['standalone'] to check if you are on portal or not, and echo content according to that in index.template.php file. Example:Code Selectif (!empty($context['standalone']))
echo 'I\'m on portal page';
else
echo 'I\'m not on portal page';
Quote from: LOVELORD on May 27, 2009, 01:01:37 PMQuote from: [SiNaN] on May 27, 2009, 11:57:54 AM
Specify the width in pixels like: 200px
where?
Quote from: BoZilla on May 27, 2009, 10:50:25 PM
I'm using SimplePortal 2.2.1 and have a question about the "Recent Post" block. Is there anyway to just show the topic that was started once instead of a new one each time someone replies? Maybe just update the topic date and time when there are new replies?
(See attachment for image of what I'm talking about)
Quote from: [SiNaN] on May 28, 2009, 02:25:52 AMQuote from: lorenzone92 on May 27, 2009, 12:40:40 PMQuote from: [SiNaN] on May 27, 2009, 11:09:20 AMMmh.. what do this code do? And in which file I have to put it?
Then you can use $context['standalone'] to check if you are on portal or not, and echo content according to that in index.template.php file. Example:Code Selectif (!empty($context['standalone']))
echo 'I\'m on portal page';
else
echo 'I\'m not on portal page';
Using $context['standalone'], as I showed in the example, you can hide or show things you want only on portal. In your case, you'll have to edit your index.template.php to hide things as in the example.Quote from: LOVELORD on May 27, 2009, 01:01:37 PMQuote from: [SiNaN] on May 27, 2009, 11:57:54 AM
Specify the width in pixels like: 200px
where?
Admin > SimplePortal > Configuration > Block Settings
Left side width and Right side width settings.Quote from: BoZilla on May 27, 2009, 10:50:25 PM
I'm using SimplePortal 2.2.1 and have a question about the "Recent Post" block. Is there anyway to just show the topic that was started once instead of a new one each time someone replies? Maybe just update the topic date and time when there are new replies?
(See attachment for image of what I'm talking about)
Yeah, as ディン1031 noted above, Recent Topics block does that.
Quote from: [SiNaN] on May 28, 2009, 02:25:52 AMSo, for example, to modify the "description" meta tag, I have to replace the code with this:Quote from: lorenzone92 on May 27, 2009, 12:40:40 PMQuote from: [SiNaN] on May 27, 2009, 11:09:20 AMMmh.. what do this code do? And in which file I have to put it?
Then you can use $context['standalone'] to check if you are on portal or not, and echo content according to that in index.template.php file. Example:Code Selectif (!empty($context['standalone']))
echo 'I\'m on portal page';
else
echo 'I\'m not on portal page';
Using $context['standalone'], as I showed in the example, you can hide or show things you want only on portal. In your case, you'll have to edit your index.template.php to hide things as in the example.
<meta name="description" content="if (!empty($context['standalone']))
echo 'This is the description of the portal';
else
echo 'This is the description of the forum';" />
Quote from: lorenzone92 on May 28, 2009, 08:45:10 AMUhm... I receive a template parse error here:
Is it correct?
Quote from: lorenzone92 on May 28, 2009, 08:45:10 AM
P.S.: I've selected, instead of "Standalone" mode, "Integration"... do I have to use $context['standalone'] or $context['integration']
Quote from: JM2Chen on May 28, 2009, 11:45:04 AMLooks like it really is simple for you though not simple for me... pun intended. :)
I tried to add simple portal. Nice
<meta name="description" content="';
if (!empty($context['standalone']))
echo 'This is the description of the portal';
else
echo 'This is the description of the forum';
echo '" />
Quote from: [SiNaN] on May 29, 2009, 04:17:19 AMYeeaah!!! It works!! ..and you rock!! :D
lorenzone92:
It should be something like this:Code Select
<meta name="description" content="';
if (!empty($context['standalone']))
echo 'This is the description of the portal';
else
echo 'This is the description of the forum';
echo '" />
<h1>';
if (empty($settings['header_logo_url']))
echo $context['forum_name_html_safe'];
else
echo '
<img src="', $settings['header_logo_url'], '" alt="', $context['forum_name_html_safe'], '" />';
echo '
</h1>
if (empty($settings['header_logo_url']))
echo $context['forum_name_html_safe'];
if (empty($settings['header_logo_url']))
echo empty($context['standalone']) ? $context['forum_name_html_safe'] : 'Forum Portal';
<?php
require_once('path/to/SSI.php');
obExit(true);
function template_main()
{
echo 'Hello! I\'m some HTML code!';
}
?>
Quote from: TheListener on May 30, 2009, 08:53:57 AMIf you are in "Standalone" mode, open index.template.php, find the part you want to modify and add
How do I add some colour to the main html welcome block?
if (!empty($context['standalone']))
echo '<span style="something">YOUR COLOURED TEXT</span>';
Quote from: TheListener on May 30, 2009, 08:53:57 AM
How do I add some colour to the main html welcome block?
This is my uncolored text.
<span style="color: red;">Now this text is colored red. ;D</span>
Quote from: [SiNaN] on May 30, 2009, 08:39:27 AMOok! :)
You could create a page with SSI. A sample code:Code Select<?php
require_once('path/to/SSI.php');
obExit(true);
function template_main()
{
echo 'Hello! I\'m some HTML code!';
}
?>
require_once('path/to/SSI.php');
$_GET['action'] = 'search';
require_once('path/to/SSI.php');
if (empty($settings['header_logo_url']))
echo empty($context['standalone']) ? $context['forum_name_html_safe'] : 'RockCiclopedia';
else
echo '
<img src="', $settings['header_logo_url'], '" alt="', $context['forum_name_html_safe'], '" />';
if (empty($settings['header_logo_url']))
echo empty($context['standalone']) ? $context['forum_name_html_safe'] : 'RockCiclopedia';
if (empty($settings['header_logo_url']))
echo empty($context['aboutpage']) ? $context['forum_name_html_safe'] : 'About - RockCiclopedia';
else
echo '
<img src="', $settings['header_logo_url'], '" alt="', $context['forum_name_html_safe'], '" />';
if (empty($settings['header_logo_url']))
echo empty($context['standalone']) ? $context['forum_name_html_safe'] : 'RockCiclopedia';
else
echo '
<img src="', $settings['header_logo_url'], '" alt="', $context['forum_name_html_safe'], '" />';
if (empty($settings['header_logo_url']))
{
if (!empty($context['standalone']))
echo 'RockCiclopedia';
elseif (!empty($context['aboutpage']))
echo 'About - RockCiclopedia';
else
echo $context['forum_name_html_safe'];
}
else
echo '
<img src="', $settings['header_logo_url'], '" alt="', $context['forum_name_html_safe'], '" />';
Quote from: [SiNaN] on June 06, 2009, 07:02:37 AM
For users that are currently running SimplePortal 2.2 or SimplePortal 2.2.1; you can upgrade to 2.2.2 using the SimplePortal 2.2.2 installation package.
<div><p>欢迎加入《21世纪艺术论坛》,如果您喜欢这个独特的网站,那么请您帮《21世纪艺术论坛》宣传几句。只需要您把一个文字链接或者一个图片链接加到您的个人网站,或者Myspace、Facebood等社会网站,或者您所属的任何论坛的个人资料页或签名中。办法非常简单,只需要复制下面的代码然后拷贝就行了。点击右上角"-"号可以折叠本版块。谢谢!</p><br />
<table width="96%" border="0">
<tr>
<td width="50%">文字链接:</td>
<td width="50%"><span style="float: left;">文字链接显示:</span></td>
</tr>
<tr>
<td><textarea rows="4" cols="70">
html代码:
<a href="http://www.21arte.com">《21世纪艺术论坛》会员</a>
bbc代码:
[url=http://www.21arte.com]《21世纪艺术论坛》会员[/url] </textarea></td>
<td><a href="http://www.21arte.com/">《21世纪艺术论坛》会员</a></td>
</tr>
<tr>
<td><span style="float: left;">图片链接:</span></td>
<td><span style="float: left;">图片链接显示:</span></td>
</tr>
<tr>
<td><textarea name="textarea" cols="70" rows="8">
html代码:
<a href="http://www.21arte.com" title="《21世纪艺术论坛》" target="_blank"><img border="0" src="http://www.21arte.com/images/ouwangbig.gif" /></a>
bbc代码:
[url=http://www.21arte.com/][img]http://www.21arte.com/images/ouwangbig.gif[/img][/url]</textarea></td>
<td><a href="http://www.21arte.com/" title="《21世纪艺术论坛》" target="_blank"><img src="http://www.21arte.com/images/ouwangbig.gif" alt="21世纪艺术论坛" border="0" /></a></td>
</tr>
</table>
</div>
Quote from: smldmr on June 06, 2009, 04:34:17 PM
- Now all the thumbnails on portal are bigger then in Forum. The forum scales all images to 100x100 but now this images are on Portal not 100x100. How can i fix this?
Quote from: smldmr on June 06, 2009, 04:34:17 PM
- How cann i use the cutt-off function?
Quote from: neverhurry on June 08, 2009, 04:15:23 AM
Hi,
i don't know why every time when i need to edit a block, it breaks the layout, please have a look at the attachment. thank you!
the code i use in that block is:
Quote from: Kat on June 11, 2009, 03:16:23 PM
Silly question time...
We're thinking of using SP as a kind of front page, open to guests. We don't want anybody to be able to get past the portal, though, until they login/register.
Is that possible, with SP, as-is (v2.2)?
Quote from: AngelinaBelle on June 15, 2009, 03:28:51 PM
Great demo!
I'm seriously considering it. Any chance of having a news fader block in the near future? I've grown quite fond of it. I wonder how difficult it would be for me to create a news fader block myself...
Quote from: willerby on June 15, 2009, 05:26:22 PMThat was easy!Quote from: AngelinaBelle on June 15, 2009, 03:28:51 PM
Any chance of having a news fader block in the near future?
Code for a custom php block for this is available here http://simpleportal.net/index.php?topic=1763.0
// How about the [home] button?
echo '<ul><li', $current_action == 'home' ? ' id="active"' : '', '><a href="', $scripturl, '"><span>'.$txt[103].'</span></a></li>';
// Show the [home] button.
echo ($current_action=='home' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'home' ? 'active_back' : 'back' , '">
<a href="', ($modSettings['sp_portal_mode'] == 3 ? $modSettings['sp_standalone_url'] : $scripturl), '">' , $txt[103] , '</a>
</td>' , $current_action == 'home' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
// Show the [forum] button.
if (in_array($modSettings['sp_portal_mode'], array(1, 3)))
echo ($current_action=='forum' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'forum' ? 'active_back' : 'back' , '">
<a href="', $scripturl . ($modSettings['sp_portal_mode'] == 1 ? '?action=forum' : ''), '">', empty($txt['sp-forum']) ? 'Forum' : $txt['sp-forum'], '</a>
</td>' , $current_action=='forum' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
8: Undefined variable: modSettings
File: /home/preat/public_html/Themes/default/languages/SPortalHelp.english.php (main_above sub template - eval?)
Line: 505
2: Invalid argument supplied for foreach()
File: /home/username/public_html/Sources/Subs-SPortal1-1.php
Line: 967
2: array_keys() [<a href='function.array-keys'>function.array-keys</a>]: The first argument should be an array
File: /home/username/public_html/Sources/Subs-SPortal1-1.php
Line: 965
// MemberColorLink compatible, chache more data, handle also some special member color link colors
if (!empty($modSettings['MemberColorLinkInstalled']))
{
$colorDatas = load_onlineColors($users);
Line965 -> $loaded_ids = array_keys($colorDatas);
Line967 -> foreach($loaded_ids as $id)
{
if(!empty($id) && !isset($color_profile[$id]['link']))
{
$color_profile[$id]['link'] = $colorDatas[$id]['colored_link'];
$color_profile[$id]['colored_name'] = $colorDatas[$id]['colored_name'];
}
}
Quote1. SMFBlog 1.0 [ Uninstall ] [ List Files ] [ Delete ]
2. SMFShop 3.1.1 [ Uninstall ] [ List Files ] [ Delete ]
3. Additional Membergroups on Profile 1.0 [ Uninstall ] [ List Files ] [ Delete ]
4. RSS Feed Poster 1.1 [ Uninstall ] [ List Files ] [ Delete ]
5. Admin Notepad 1.0 [ Uninstall ] [ List Files ] [ Delete ]
6. Invite 1.14 [ Uninstall ] [ List Files ] [ Delete ]
7. Global Headers Footers 1.4.1 [ Apply Mod ] [ List Files ] [ Delete ]
8. Topic Solved 1.22 [ Uninstall ] [ List Files ] [ Delete ]
9. SSI Topic and Replies 0.1 [ Uninstall ] [ List Files ] [ Delete ]
10. Aeva ~ Auto-Embed Video & Audio 6.9.99 [ Uninstall ] [ List Files ] [ Delete ]
11. SimplePortal 2.2.2 [ Uninstall ] [ List Files ] [ Delete ]
12. Images On Board 2.1 [ Uninstall ] [ List Files ] [ Delete ]
13. Group Moderators 1.4 [ Uninstall ] [ List Files ] [ Delete ]
15. Password Protect Boards 0.2 [ Uninstall ] [ List Files ] [ Delete ]
16. reCAPTCHA for SMF 0.9.5.4b [ Uninstall ] [ List Files ] [ Delete ]
17. SMF Arcade 2.0.18 [ Uninstall ] [ List Files ] [ Delete ]
18. Search Time Limitation 1.0 [ Uninstall ] [ List Files ] [ Delete ]
19. SMF Media Gallery 1.5.6 [ Uninstall ] [ List Files ] [ Delete ]
20. Advanced Reputation System 0.1.3 [ Uninstall ] [ List Files ] [ Delete ]
21. Custom Profile Field Mod 3.20 [ Uninstall ] [ List Files ] [ Delete ]
22. Global Announcements 1.0 [ Uninstall ] [ List Files ] [ Delete ]
23. Download Quota 1.0 [ Uninstall ] [ List Files ] [ Delete ]
24. VisualWarning 1.42 [ Uninstall ] [ List Files ] [ Delete ]
25. SMF Arcade 2.5 Beta 5 [ List Files ] [ Delete ]
26. User Control Panel By Alan S 2.0 [ Uninstall ] [ List Files ] [ Delete ]
29. Additional Membergroups on Profile 1.0 [ Uninstall ] [ List Files ] [ Delete ]
30. Stop Spammer 2.2 [ Uninstall ] [ List Files ] [ Delete ]
31. [HTML] Permission Mod 1.01 [ Uninstall ] [ List Files ] [ Delete ]
32. Buddy Message Highlight 1.2 [ Uninstall ] [ List Files ] [ Delete ]
33. hidden for guests 1.0.3 [ List Files ] [ Delete ]
34. Paid Subscriptions 0.18 [ Uninstall ] [ List Files ] [ Delete ]
35. Advanced Reputation System 1.7.4 [ List Files ] [ Delete ]
36. Hack's Park Shoutbox 2.0 [ Uninstall ] [ List Files ] [ Delete ]
37. MCLegendII.2 3.0 [ Uninstall ] [ List Files ] [ Delete ]
38. Moderator Activity Report for SMF1.1.4 1.2 [ Uninstall ] [ List Files ] [ Delete ]
39. View Any Topic Permission Mod 1.9 [ Uninstall ] [ List Files ] [ Delete ]
40. Pm_Informer 2.0 [ Uninstall ] [ List Files ] [ Delete ]
41. Favicon 1.2 [ Uninstall ] [ List Files ] [ Delete ]
43. Karma Buttons 1.1 [ Uninstall ] [ List Files ] [ Delete ]
44. Custom Form Mod 1.4 [ Uninstall ] [ List Files ] [ Delete ]
45. Download Quota 1.0 [ Uninstall ] [ List Files ] [ Delete ]
46. Member Color Link 3.0.7 [ Uninstall ] [ List Files ] [ Delete ]
47. Smiley Pops 1.1.3 1.1.3 [ Uninstall ] [ List Files ] [ Delete ]
Installed mods: current version older version
Quote1. Execute Modification ./index.php Test successful
2. Execute Modification ./SSI.php Test successful
3. Execute Modification .Sources/Admin.php Test successful
4. Execute Modification .Sources/BoardIndex.php Test successful
5. Execute Modification .Sources/Display.php Test successful
6. Execute Modification .Sources/Help.php Test successful
7. Execute Modification .Sources/Load.php Test successful
8. Execute Modification .Sources/ManagePermissions.php Test failed
9. Execute Modification .Sources/ManageServer.php Test successful
10. Execute Modification .Sources/QueryString.php Test successful
11. Execute Modification .Sources/Recent.php Test successful
12. Execute Modification .Sources/Subs.php Test successful
13. Execute Modification .Themes/default/index.template.php Test successful
14. Execute Modification .Themes/default/Display.template.php Test successful
15. Execute Modification .Themes/default/languages/Who.english.php Test successful
16. Execute Modification .Themes/default/languages/Who.english-utf8.php Skipping file
Quote from: nodent on June 21, 2009, 03:17:06 PM
I was looking up forum stuff on your website, as now it seems to be hijacked by an ad.
Quote from: katbloke on June 20, 2009, 06:06:25 AMYou need to make a custom edit to the index.template.php file for your theme. If you attach it to a post, I'm sure someone would be happy to take care of it if you don't know how to.
just installed the portal and when i click home it takes me to the portal where it used to take me to the forum index, using the clean blue theme how can i add a forum button because i like the look of the portal
Quote from: sombra on June 20, 2009, 03:12:39 PMUpdates are released for a reason :) It is also very easy to update simple portal. If you are indeed using 2.2.1, then all you have to do to update is upload the 2.2.2 package and then instead of a new install it will update 2.2.1.
im using the version before this one do you recomend to update? or wait for another version
what normal problems can i get for updating or what advanteges
thanks wondurfull mod
Quote from: DJBoddington on June 21, 2009, 11:30:54 PMIf you need help making custom edits to a file, then I suggest you post the file as an attachment in this thread. I'm sure someone would be more than willing to make the edits for you. I'm more than happy to do it myself. As nopity said, just install the mod even though the test fails, then upload the new ManagePermissions.php file. Be sure to back things up first.
ah okay thanks!
urmm okay yea could be better - im not good at editing files, you use a FTP Client?
Quote from: Eliana Tamerin on June 21, 2009, 11:38:31 PMQuote from: nodent on June 21, 2009, 03:17:06 PM
I was looking up forum stuff on your website, as now it seems to be hijacked by an ad.
I'm working with my host to resolve it. I'll keep you guys updated here until it gets back up.
Quote from: learjet45 on June 22, 2009, 01:21:11 AMQuote from: DJBoddington on June 21, 2009, 11:30:54 PMIf you need help making custom edits to a file, then I suggest you post the file as an attachment in this thread. I'm sure someone would be more than willing to make the edits for you. I'm more than happy to do it myself. As nopity said, just install the mod even though the test fails, then upload the new ManagePermissions.php file. Be sure to back things up first.
ah okay thanks!
urmm okay yea could be better - im not good at editing files, you use a FTP Client?
'sp' => array(
'sp_moderate' => false,
'sp_add_article' => false,
'sp_auto_article_approval' => false,
),
ipconfig /flushdns
Quote from: Eliana Tamerin on June 22, 2009, 06:01:14 PM
@alke: http://simpleportal.net/index.php?topic=2517.0
Quote from: sombra on June 24, 2009, 03:43:39 AMoO okay...
Recent Topcis
but i notice that it fixed him self
Quote from: Snowy on June 24, 2009, 07:08:16 AM
I installed this but when I go to the forum, my forum index page is only about half my screen size wide. How can I fix this?
Quote from: Snowy on June 24, 2009, 07:08:16 AM
And How can I edit the text on the portal page in the center?
// flashchat users
echo '
<tr>
<td class="catbg" colspan="2">Users in Chat</td>
</tr>
<tr>
<td class="windowbg"> </td>
<td class="windowbg2" width="100%"><iframe frameborder="0" height="100" src="', $GLOBALS['boardurl'], '/ourchatroom/info_embedded.php" style="width: 100%; margin: 0; padding: 0; border: 0; overflow: hidden;" scrolling="no" border="0" allowtransparency="true"></iframe></td>
</tr>';
// flashchat users
echo '
<table width="100%">
<tr>
<td class="catbg" colspan="2">Users in Chat</td>
</tr>
<tr>
<td class="windowbg"> </td>
<td class="windowbg2" width="100%"><iframe frameborder="0" height="100" src="', $GLOBALS['boardurl'], '/ourchatroom/info_embedded.php" style="width: 100%; margin: 0; padding: 0; border: 0; overflow: hidden;" scrolling="no" border="0" allowtransparency="true"></iframe></td>
</tr>
</table>';
<style type="text/css" media="screen">
@import url("Web Menu/TImenu.css");
</style>
<script language="JavaScript1.2" type="text/javascript" src="Web Menu/mm_css_menu.js"></script>
<script type="text/javascript">
<!--
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_nbGroup(event, grpName) { //v6.0
var i,img,nbArr,args=MM_nbGroup.arguments;
if (event == "init" && args.length > 2) {
if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
nbArr[nbArr.length] = img;
for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = img.MM_dn = args[i+1];
nbArr[nbArr.length] = img;
} }
} else if (event == "over") {
document.MM_nbOver = nbArr = new Array();
for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])? args[i+1] : img.MM_up);
nbArr[nbArr.length] = img;
}
} else if (event == "out" ) {
for (i=0; i < document.MM_nbOver.length; i++) {
img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
} else if (event == "down") {
nbArr = document[grpName];
if (nbArr)
for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
document[grpName] = nbArr = new Array();
for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up;
nbArr[nbArr.length] = img;
} }
}
//-->
</script>
<body onLoad="MM_preloadImages('Web Menu/TImenu_r2_c2_f3.jpg','Web Menu/TImenu_r2_c2_f2.jpg','Web Menu/TImenu_r2_c2_f4.jpg','Web Menu/TImenu_r4_c2_f3.jpg','Web Menu/TImenu_r4_c2_f2.jpg','Web Menu/TImenu_r4_c2_f4.jpg','Web Menu/TImenu_r6_c2_f3.jpg','Web Menu/TImenu_r6_c2_f2.jpg','Web Menu/TImenu_r6_c2_f4.jpg','Web Menu/TImenu_r8_c2_f3.jpg','Web Menu/TImenu_r8_c2_f2.jpg','Web Menu/TImenu_r8_c2_f4.jpg','Web Menu/TImenu_r10_c2_f3.jpg','Web Menu/TImenu_r10_c2_f2.jpg','Web Menu/TImenu_r10_c2_f4.jpg','Web Menu/TImenu_r12_c2_f3.jpg','Web Menu/TImenu_r12_c2_f2.jpg','Web Menu/TImenu_r12_c2_f4.jpg','Web Menu/TImenu_r14_c2_f3.jpg','Web Menu/TImenu_r14_c2_f2.jpg','Web Menu/TImenu_r14_c2_f4.jpg','Web Menu/TImenu_r16_c2_f3.jpg','Web Menu/TImenu_r16_c2_f2.jpg','Web Menu/TImenu_r16_c2_f4.jpg','Web Menu/TImenu_r18_c2_f3.jpg','Web Menu/TImenu_r18_c2_f2.jpg','Web Menu/TImenu_r18_c2_f4.jpg','Web Menu/TImenu_r20_c2_f3.jpg','Web Menu/TImenu_r20_c2_f2.jpg','Web Menu/TImenu_r20_c2_f4.jpg','Web Menu/TImenu_r22_c2_f3.jpg','Web Menu/TImenu_r22_c2_f2.jpg','Web Menu/TImenu_r22_c2_f4.jpg')">
Quote from: Eliana Tamerin on June 23, 2009, 11:14:47 AM
Have you tried flushing your DNS cache? If you're running Windows, go to Start > Run and enter inipconfig /flushdns
Quote from: Eliana Tamerin on June 23, 2009, 05:53:32 PM
/me sighs
In the process of transferring the domain to a more secure registrar, it seems the DNS settings got reset. I had to configure the nameservers again, and now it just needs to propagate.
I'm very sorry for all the inconveniences.
Quote from: [SiNaN] on June 24, 2009, 08:40:11 AM
Try this:Code (Find) Select// flashchat users
echo '
<tr>
<td class="catbg" colspan="2">Users in Chat</td>
</tr>
<tr>
<td class="windowbg"> </td>
<td class="windowbg2" width="100%"><iframe frameborder="0" height="100" src="', $GLOBALS['boardurl'], '/ourchatroom/info_embedded.php" style="width: 100%; margin: 0; padding: 0; border: 0; overflow: hidden;" scrolling="no" border="0" allowtransparency="true"></iframe></td>
</tr>';Code (Replace) Select// flashchat users
echo '
<table width="100%">
<tr>
<td class="catbg" colspan="2">Users in Chat</td>
</tr>
<tr>
<td class="windowbg"> </td>
<td class="windowbg2" width="100%"><iframe frameborder="0" height="100" src="', $GLOBALS['boardurl'], '/ourchatroom/info_embedded.php" style="width: 100%; margin: 0; padding: 0; border: 0; overflow: hidden;" scrolling="no" border="0" allowtransparency="true"></iframe></td>
</tr>
</table>';
Quote from: Eliana Tamerin on June 23, 2009, 05:53:32 PMCan you give newly server ip? Maybe we can edit our "host" file for permatently. :)
/me sighs
In the process of transferring the domain to a more secure registrar, it seems the DNS settings got reset. I had to configure the nameservers again, and now it just needs to propagate.
I'm very sorry for all the inconveniences.
Quote from: Eliana Tamerin on June 24, 2009, 03:07:24 PM
Updates:
I've got good news and bad news, folks.
The good news is, the domain is ready (again) for normal usage.
The bad news is, the my host thinks the account was abusing resources and suspended it. I can't see anything on my end for resource abuse, so I've put a support ticket in to request an answer.
Hopefully I'll have one soon. Sorry for all the issues, this just hasn't been a good week for SP.
The last bit of good news is that Sinan's vacation has been extended for a few more hours. Anyone wanting a beach drink from a coconut, talk to Sinan about sharing. :P
8: Use of undefined constant N - assumed 'N'
File: /membri2/gsalcazar/Themes/default/languages/SPortalAdmin.english.php (portal_above sub template - eval?)
Line: 9
8: Use of undefined constant N - assumed 'N'
File: /membri2/gsalcazar/Themes/default/Errors.template.php (portal_above sub template - eval?)
Line: 9
8: Use of undefined constant N - assumed 'N'
File: /membri2/gsalcazar/Themes/default/Login.template.php (portal_above sub template - eval?)
Line: 9
8: Use of undefined constant N - assumed 'N'
File: /membri2/gsalcazar/Themes/default/MessageIndex.template.php (portal_above sub template - eval?)
Line: 9
Quote from: Snowy on June 25, 2009, 08:35:07 PM
I have a member who says their computer freezes up since I installed the portal. They are using AOL, but they said it does the same with IE for them. Any thoughts on what might cause this? I really don't want to take the portal down.
// Show the [home] button.
echo ($current_action=='home' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'home' ? 'active_back' : 'back' , '">
<a href="', ($modSettings['sp_portal_mode'] == 3 ? $modSettings['sp_standalone_url'] : $scripturl), '">' , $txt[103] , '</a>
</td>' , $current_action == 'home' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
// Show the [forum] button.
if (in_array($modSettings['sp_portal_mode'], array(1, 3)))
echo ($current_action=='forum' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'forum' ? 'active_back' : 'back' , '">
<a href="', $scripturl . ($modSettings['sp_portal_mode'] == 1 ? '?action=forum' : ''), '">', empty($txt['sp-forum']) ? 'Forum' : $txt['sp-forum'], '</a>
</td>' , $current_action=='forum' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
// Show the [home] button.
echo '
<li', $current_action == 'home' ? ' id="active"' : '', '><a href="', $scripturl, '">', $txt[103], '</a></li>';
// Show the [help] button.
echo '
<li', $current_action == 'help' ? ' id="active"' : '', '><a href="', $scripturl, '?action=help">', $txt[119], '</a></li>';
// Show the [forum] button
echo '
<li', $current_action == 'forum' ? ' id="active"' : '', '><a href="', $scripturl, '?action=forum">', $txt['sp-forum'], '</a></li>';
// We will SPortal too.
loadLanguage('SPortal', '', false);
// Initialize the theme.
loadSubTemplate('init', 'ignore');
Quote from: digit on June 26, 2009, 02:40:44 PM
p.s., why are you blocking my PM's ???
Quote from: Eliana Tamerin on June 27, 2009, 01:54:51 AMQuote from: digit on June 26, 2009, 02:40:44 PMWho are you speaking to?
p.s., why are you blocking my PM's ???
Quote from: learjet45 on June 26, 2009, 09:45:42 PM
digit -
Down at the bottom of your screen where the SMF copyrights shows up, there should also be a SimplePortal copyright that displays the version.
Quote from: AngelinaBelle on June 25, 2009, 10:06:23 PM
If you are using the 1.1 version of simpleportal, there is a bug that could cause a browser to hang up after loading the portal page.
I am using SMF 1.1.9, and am using the SPStandalone portal page.
I encountered a problem with the onload event, due to a bug in sportal_init.php. It affected IE7 (actually IE8 in compatability mode), but not IE8 (because IE8 was not detected by SMF). The page loaded fine, but then the browser window froze for a long time while the onload event did an infinite recursion, and finally gave an out-of-memory error. I only observed the freezing problem on the portal page.
The fix turned out to be very easy:
http://simpleportal.net/index.php?topic=2613.msg17355#msg17355
Add one line to sportal_init.php to prevent a block of js from being written to the page twice.
(after I finally narrowed the problem down: http://simpleportal.net/index.php?topic=2613.msg17250#msg17250 )
I hope this fix solves your user's problem.
Quote from: digit on June 27, 2009, 04:22:45 AMQuote from: learjet45 on June 26, 2009, 09:45:42 PM
digit -
Down at the bottom of your screen where the SMF copyrights shows up, there should also be a SimplePortal copyright that displays the version.
COOL! SOOOO - I need to uninstall 2.0.4 :P Does anyone have that original installer?
Quote from: [SiNaN] on June 27, 2009, 05:57:59 AM
Apply the suggested edits here:
http://www.simplemachines.org/community/index.php?topic=318651.msg2117125#msg2117125
http://simpleportal.net/index.php?topic=2613.msg17295#msg17295
Quote from: digit on June 27, 2009, 04:21:11 AMQuote from: Eliana Tamerin on June 27, 2009, 01:54:51 AMQuote from: digit on June 26, 2009, 02:40:44 PMWho are you speaking to?
p.s., why are you blocking my PM's ???
I was referring to.... SimplePortal Team (http://www.simplemachines.org/community/index.php?action=profile;u=174836)
I sent a pm, and was told the user is blocking your pm's or something to that effect....
Quote from: willerby on June 27, 2009, 02:01:02 PMi've already explained my reason here: http://simpleportal.net/index.php?topic=576.msg17273#msg17273
DW,
Your entire profile on SP consists of the name Dark-Wolf and 4 posts. Why so angry that they won't delete your alias and posts you have made?
On here, I can tell your name (through your link to your website), and age, I can see 273 posts you have made, and the town you live in. It really is not worth the stress...
Quote from: learjet45 on June 26, 2009, 10:34:51 AM
zeljko -Code Select
// Show the [forum] button
echo '
<li', $current_action == 'forum' ? ' id="active"' : '', '><a href="', $scripturl, '?action=forum">', $txt['sp-forum'], '</a></li>';
There are also a few other custom edits that need to be made to the index.template.php file.
Quote from: Bruno36 on June 29, 2009, 02:02:15 AM
Hello!
How to view the forum on the portal
Quote from: digit on June 29, 2009, 12:45:31 PM
Ok thanks for the non response - due to absolutely unreal SUCKO problems related to the external css file, and javascript bs AND erratic signal Segmentation faults, I AM DELETING THIS MOD.
We need a way to rate mods!
FRUSTRATED TO THE CORE.
$context += array(
'portal_url' => $modSettings['sp_standalone_url'],
'page_title' => $context['forum_name'],
);
{
$context['portal_url'] = $modSettings['sp_standalone_url'];
if ($stanlone)
$context['page_title'] = $context['forum_name'];
}
Quote from: digit on June 29, 2009, 12:59:34 PM
Ok, well... For the record, I am using it in standalone mode, and am disappointed in the way it embeds the external css file AND javascript files in the forum too!
Quote from: digit on June 29, 2009, 12:59:34 PM
My forum is ALL screwed up - forms not displaying correctly, as well as the issues mentioned above.
$context['template_layers'][] = 'portal';
$context['template_layers'][] = 'portal';
$initialized = true;
Quote from: digit on June 29, 2009, 12:59:34 PM
I hope that helps fix, what to be honest I liked! (v. 2.0.4 anyway!)
Quote from: digit on June 29, 2009, 01:26:56 PM
The Profile Summary page title issue is WHY I manually uninstalled 2.0.4... (it was my only - hard to find - issue with it)... so to go through a manual uninstall and manual install, just to see I STILL had the title issue, PLUS a whole host of other issues was frustrating to say the least!
You can see how long I was trying to figure out WHY I no longer had usernames in the profile summaries here.....
http://www.simplemachines.org/community/index.php?topic=288021.msg1893568#msg1893568
MONTHS!
Quote from: digit on June 29, 2009, 01:26:56 PM
I just manually uninstalled 2.2.2 - and am thinking about going to an earlier version - maybe 2.0.4 - unless there is a more recent version that doesn't effect my css (or add javascript doohickies to my forum!) Let me know ok?
Sorry for venting!
Thanks!
Quote from: [SiNaN] on June 30, 2009, 02:54:04 AM
Do you use any [html] tags in your post? Does this happen with articles or board news block?
Quote from: [SiNaN] on July 01, 2009, 06:23:49 AM
You have these errors only on portal page, right?
<a href="http://www.vintage-camera-online.com/smf/index.php?action=forum" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Nothanks','','/images/1184259649button_0.gif1191570045button_0.gif'>,1)"><img src="/images/1184259649button_0.gif" alt="No thanks - let me in" border="0"></a>
Quote from: Paolo Bitta on June 25, 2009, 09:27:15 AM
I experience this error(s) since I installed the mod:Code Select8: Use of undefined constant N - assumed 'N'
File: /membri2/gsalcazar/Themes/default/languages/SPortalAdmin.english.php (portal_above sub template - eval?)
Line: 9
8: Use of undefined constant N - assumed 'N'
File: /membri2/gsalcazar/Themes/default/Errors.template.php (portal_above sub template - eval?)
Line: 9
8: Use of undefined constant N - assumed 'N'
File: /membri2/gsalcazar/Themes/default/Login.template.php (portal_above sub template - eval?)
Line: 9
8: Use of undefined constant N - assumed 'N'
File: /membri2/gsalcazar/Themes/default/MessageIndex.template.php (portal_above sub template - eval?)
Line: 9
well, the error is over a lot of files... I reported these just to clarify.
any hints on how to resolve it?
Quote from: Eliana Tamerin on July 01, 2009, 11:06:22 PM
@qubbah: In the SimplePortal General Settings, change Portal Mode from Frontpage to Integration. You may have to adjust each block's display properties to show up on the Forum after that, though.
Quote from: digit on July 01, 2009, 08:42:03 AM
Thanks a BUNCH!
:P
Quote from: pkrpkr on July 01, 2009, 11:32:15 AM
Does anybody know how to create a button in a SimplePortal custom HTML block?
I want someone who clicks the button to be sent to a specific URL.
HTML below works half, i.e. the button doesn't change color when hovering over it with a mouse (using 2 different rollover images).Code Select<a href="http://www.vintage-camera-online.com/smf/index.php?action=forum" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Nothanks','','/images/1184259649button_0.gif1191570045button_0.gif'>,1)"><img src="/images/1184259649button_0.gif" alt="No thanks - let me in" border="0"></a>
This is a button in the Welcome block, and redirects the visitor to the forum when the button is clicked.
Any help appreciated. Thanks.
<a href="http://www.vintage-camera-online.com/smf/index.php?action=forum"><img src="http://www.vintage-camera-online.com/images/1184259649button_0.gif" alt="" id="my_button" onmouseover="changeimage('in');" onmouseout="changeimage('out');" /></a>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
function changeimage(mode)
{
document.getElementById("my_button").src = (mode == "in" ? "http://www.vintage-camera-online.com/images/1191570045button_0.gif" : "http://www.vintage-camera-online.com/images/1184259649button_0.gif");
}
// ]]></script>
Quote from: kaniagbon05 on July 01, 2009, 07:15:16 PM
i got this error.. i use SQLITE...
WTF..
SQL logic error or missing database
near "EXISTS": syntax error
File: C:\xampp\htdocs\Forum\Packages\temp\install2.php
Line: 262
Quote from: Chaos Dragon on July 02, 2009, 02:03:32 AM
Just wondering how do I change the Welcome?
Never mind I see how it is done after I noticed images weren't there that didn't upload during install......Should of checked that right away since it seems to be the norm here...Installs say a ok for the go ahead and next thing I know codes and images or files in general aren't there that needed to be. Any who Sorry about that.
I would like to say though, excellent work. Of all the items I have installed this gave me really no hassle and no manual installing except a few images no biggie. I'd rather just upload a few images then hunt through files and codes to get them working.
Good Luck with everything and keep up the good work.
Quote from: Paolo Bitta on July 02, 2009, 03:11:01 AM
any hints?
This error is filling my log every time somebody loads any page.......
Quote from: [SiNaN] on June 06, 2009, 11:02:09 AM
The error message isn't very useful.
Try running this query in PHPMyAdmin (replace 'smf_' with your forums db prefix):Code SelectREPLACE INTO smf_settings VALUES ('disableTemplateEval', 1);
That should allow us to see where the error is actually occuring, post the error message that SMF gives you then.
You can then run this query to turn eval back on:Code SelectDELETE FROM smf_settings WHERE variable = 'disableTemplateEval';
Quote from: qubbah on July 02, 2009, 08:45:53 AM
ok very nice..
tq..
then how about to change panel witdh?
Quote from: Chaos Dragon on July 02, 2009, 02:03:32 AM
Just wondering how do I change the Welcome?
Never mind I see how it is done after I noticed images weren't there that didn't upload during install......Should of checked that right away since it seems to be the norm here...Installs say a ok for the go ahead and next thing I know codes and images or files in general aren't there that needed to be. Any who Sorry about that.
I would like to say though, excellent work. Of all the items I have installed this gave me really no hassle and no manual installing except a few images no biggie. I'd rather just upload a few images then hunt through files and codes to get them working.
Good Luck with everything and keep up the good work.
Which images exactly? If you can provide some more details we can help you solving the issue.
Quote from: [SiNaN] on July 02, 2009, 09:35:35 AM
I'm not sure if this is related to SimplePortal at all. Follow the instructions given in the quote below which will give you more details on the error:
..[cut]..
define("N","N");
Quote from: totaltutankoll on July 07, 2009, 05:31:09 PMStupid me :-[ when finally asking the question I've found all the funcationality and coudl even set up the "thing" with seperate pictures for my just now two categories. Apparantly I forgot the part where you need to set up at block for the articles... Now I'm gonna get to work and do this in an excellent way.
Can someone please explain some of the functionality of articles in SP ::)
Where on earth is the article listing supposed to turn up on the forum? IS there a setting outside to SP CP somewhere I may have missed ???
I have a category, I have some articles attached to it but where the heck will I find them :D
Quote from: IdanC on July 10, 2009, 08:19:02 AM
amazing mod!
yet, i really like my BoardIndex.
i couldn't figure out how i can put blocks around it, and not instead of it. any ideas?
Quote from: TheListener on July 10, 2009, 08:50:22 AMCan you explain more about this. I wonder if you're sitting on the solution of a problem I'm experiencing.. ::)
Some of the blocks can be integrated onto your forum pages.
I have done this myself.
Quote from: Chaos Dragon on July 02, 2009, 03:58:16 PM
It was all the images you would find for the admin panel that didn't upload. It is fine now I manually uploaded the missing images.
Like I said in the last post it is the norm for me to have to do something manually. At least with this one it was only a few images and not having to go code hunting. This is the first one that i installed that I did not have to manually edit the code to get it working. I wish they all did that.
Quote from: Paolo Bitta on July 03, 2009, 05:37:38 AM
I forgot to tell you that i'm running a SMF 1.1.9 version.
I can't find that variable in smf_setting table... ???
EDIT:
I resolved it myself...
It is surely a problem of/from simpleportal, because with no manual changes this error has appeared after SP installation. The problem is that a define is missing somewhere.
The fix was obtained by introducing the instruction:Code Selectdefine("N","N");
in index.php (probably there's a very better place to put this code, but I'm afraid to mess up something).
bye
Paolo Bitta
Quote from: psynx on July 03, 2009, 06:53:44 AM
hello,
i have simple portal mod and this latest 1.5.6 media gallery
my guess can not see the images from my gallery to the gallery block on my portal. i have allowed my guess to access gallery page but still they can not see the images from my gallery to the gallery block on my portal.
when im login i can view the images in my gallery block on my portal.
Quote from: totaltutankoll on July 07, 2009, 06:08:56 PMQuote from: totaltutankoll on July 07, 2009, 05:31:09 PMStupid me :-[ when finally asking the question I've found all the funcationality and coudl even set up the "thing" with seperate pictures for my just now two categories. Apparantly I forgot the part where you need to set up at block for the articles... Now I'm gonna get to work and do this in an excellent way.
Can someone please explain some of the functionality of articles in SP ::)
Where on earth is the article listing supposed to turn up on the forum? IS there a setting outside to SP CP somewhere I may have missed ???
I have a category, I have some articles attached to it but where the heck will I find them :D
By the way. It's a really nicelooking mod 8)
Quote from: totaltutankoll on July 07, 2009, 06:45:07 PM
here's a couple of questions.
I made some squares to mark my different news categories and they look all cute and nice in my browser and in photoshop but in the news menu they turn up huge! :( Anyone with an idea why?
Second of all, first my authors didn't show which I thought was great and suddenly they're showing which looks plain ugly ::) Any settings and if so, where? I've been looking at the block setting, the category config and the articles with no such luck..
Quote from: totaltutankoll on July 07, 2009, 08:28:37 PM
Next question. I've sorted my articles according to category but I can not again find where these categories may be sorted in my portal/forum if anyone understand where I'm goind with this.
Quote from: Wingman7659 on July 08, 2009, 12:45:48 AM
Hi all,
I've installed the latest version Simple Portal and it works like a champ on my just-updated SMF RC1-1. My question is, can I change the "Forum" name into chinese? I have edited the general string in SPortal.english-utf8.php file. It works but other test of the forum "grow" a lot bigger, what have I done wrong?
Quote from: totaltutankoll on July 10, 2009, 01:54:27 PMQuote from: TheListener on July 10, 2009, 08:50:22 AMCan you explain more about this. I wonder if you're sitting on the solution of a problem I'm experiencing.. ::)
Some of the blocks can be integrated onto your forum pages.
I have done this myself.
:D
Quote from: IdanC on July 10, 2009, 03:03:32 PM
hi, anyone has any idea why the posts page is messed up?
no vertical align, width problems, etc. (see att.)
all the other pages in forum looks great.
can i just remove the block from the posts page? i tried -~topic but it didnt do anything...
Quote from: Rhandy on July 09, 2009, 06:16:00 PM
I have a customized "SPortal2.php" file.
I'm just asking you if you can modify it.
I want that, when I post a Sticky Topic, it always shows in the first place of the "Recent Topics" Block.
Can you help me here please?
This is the link to the file:
http://rapidshare.com/files/253444381/SPortal2.php.html
P.D. I already tried what this post says:
http://simpleportal.net/index.php?topic=1974.0
But didn't worked for me...
I use SMF 2.0 RC1-1 and Simple Portal 2.2.2...
Thanks!
Quote from: TheListener on July 11, 2009, 12:27:40 PM
Have you left a post on the simple portal site?
www.simpleportal.net
Quote from: [SiNaN] on July 10, 2009, 02:25:01 PMQuote from: Wingman7659 on July 08, 2009, 12:45:48 AM
Hi all,
I've installed the latest version Simple Portal and it works like a champ on my just-updated SMF RC1-1. My question is, can I change the "Forum" name into chinese? I have edited the general string in SPortal.english-utf8.php file. It works but other test of the forum "grow" a lot bigger, what have I done wrong?
Any chance I can see your forum?
Quote from: sloba on July 12, 2009, 09:48:35 AMQuote from: Blinker on July 12, 2009, 07:56:20 AM
sloba, what kind of block are those tabbed boxes in your portal, the ones in the middle. I want them!
Tab view.. here is all you need to place it on your site. Enjoy.
Quote from: Rhandy on July 09, 2009, 06:16:00 PM
I have a customized "SPortal2.php" file.
I'm just asking you if you can modify it.
I want that, when I post a Sticky Topic, it always shows in the first place of the "Recent Topics" Block.
Can you help me here please?
This is the link to the file:
http://rapidshare.com/files/253444381/SPortal2.php.html
P.D. I already tried what this post says:
http://simpleportal.net/index.php?topic=1974.0
But didn't worked for me...
I use SMF 2.0 RC1-1 and Simple Portal 2.2.2...
Thanks!
Quote from: Mraza on July 07, 2009, 05:32:15 AM
hi guys i am using 1.1.9 smf with simpleportal 2.2. i wanted to show my choosen one boards to show posts in portal from recent posts blocks. so far i get this code but it is not working. can somebody help me in this, thanks. here is the code
(Find (SSI.php))Code Selectfunction ssi_recentTopics($num_recent = 8, $exclude_boards = null, $output_method = 'echo')
(Replace)Code Selectfunction ssi_recentTopics($num_recent = 8, $exclude_boards = null, $output_method = 'echo', $include_boards = null)
(Find (SSI.php))Code SelectAND t.ID_LAST_MSG = m.ID_MSG
AND b.ID_BOARD = t.ID_BOARD" . (empty($exclude_boards) ? '' : "
(Replace)Code SelectAND t.ID_LAST_MSG = m.ID_MSG
AND b.ID_BOARD = t.ID_BOARD" . (empty($include_boards) ? '' : "
AND b.ID_BOARD IN (" . implode(', ', $include_boards) . ")") . (empty($exclude_boards) ? '' : "
(Find (Sources/SPortal1-1.php))Code Select$topics = ssi_recentTopics($limit, null, 'array');
(Replace)Code Select$topics = ssi_recentTopics($limit, null, 'array', array(1, 2, 3, 4));
array(1, 2, 3, 4)) on last line code is where i put my board ID but not working.
Quote from: [SiNaN] on July 13, 2009, 10:41:30 AMThanks [SiNaN] ! i think i had written my problem on that site about 3-4 weeks ago. and i really hope somebody will help me to solve this method.
There are some server issues we are currently having at sp.net. Should be dissolved forever in the very near future. Sorry for inconvenience.
Quote from: [SiNaN] on July 12, 2009, 08:29:11 AM
Wingman7659:
It looks fine to me, were you able to solve the issue? From what I see looking at the screenshots, there is an extra char being output before everything else.
Quote from: palyne on July 12, 2009, 04:05:56 AM
Since the Custom Pages mod author is taking awhile to get around to making that work for 1x SMF and I'm stuck there -- and had planned a website around it a month ago -- and Baker's Dozen mod doesn't work for 1x either, gahhhhhh -- I'm trying to figure out how I can use SP to the best effect for at least a few critical things...
Palyne
# Provide friendly 404 error handling
RewriteRule ^404.html$ /index.php?action=404
Quote from: Bruno36 on July 16, 2009, 07:18:41 AM
Hello!
When I go on the portal I have a blank page :(
http://www.scooter-chinois-4t.com
Quote from: [SiNaN] on July 12, 2009, 05:12:07 AM
Pages feature will be available in 2.3 version, which isn't out yet, but being tested these days.
Quote from: [SiNaN] on July 16, 2009, 02:52:44 PM
Ummm, shoutbox? Don't expect me to tell you that I am now making last tests on shoutbox(es) feature of SP 2.3 -which is to me the best ever- and we will start testing as soon as sp.net is up; because I won't. :P
We usually don't put release dates not to put extra stress and pressure on ourselves -which we already have a lot- and not to give you a false hope in case things don't go as expected -they never do actually-. But since we are about to start the beta testing, it is close enough. ;)
And sorry for the weird post; I'm too excited with the new version myself. ;D
Quote from: Eliana Tamerin on July 16, 2009, 04:50:49 PMQuote from: [SiNaN] on July 16, 2009, 02:52:44 PM
Ummm, shoutbox? Don't expect me to tell you that I am now making last tests on shoutbox(es) feature of SP 2.3 -which is to me the best ever- and we will start testing as soon as sp.net is up; because I won't. :P
We usually don't put release dates not to put extra stress and pressure on ourselves -which we already have a lot- and not to give you a false hope in case things don't go as expected -they never do actually-. But since we are about to start the beta testing, it is close enough. ;)
And sorry for the weird post; I'm too excited with the new version myself. ;D
Please ignore the rantings of [SiNaN], he's quite out of his mind with all the development hell. Nothing he's saying is true, it's all false, there is no version 2.3. :P
Of course I'm just kidding!
Quote from: [SiNaN] on July 16, 2009, 02:52:44 PM
Ummm, shoutbox? Don't expect me to tell you that I am now making last tests on shoutbox(es) feature of SP 2.3 -which is to me the best ever- and we will start testing as soon as sp.net is up; because I won't. :P
We usually don't put release dates not to put extra stress and pressure on ourselves -which we already have a lot- and not to give you a false hope in case things don't go as expected -they never do actually-. But since we are about to start the beta testing, it is close enough. ;)
And sorry for the weird post; I'm too excited with the new version myself. ;D
Quote from: Akpaka on July 16, 2009, 04:58:17 PMbump
Hi, how can i remove the dates and times o the RECENT TOPIC Module.
I mean the block that shows the recent topics...
it comes with the names of teh posters and dates.
how can i remove the date and time ?
Quote from: Verso on July 16, 2009, 03:26:12 PM
I have a question about blocks.........
If you look at my site http://www.suffolksportsforum.co.uk/index.php and go to any of the ?action pages you'll see an SWF banner.
Is there a way I can have this block only displayed on:-
?action=SMFPredictionLeague
?action=SMFQuiz
?action=arcade
For all the other ?action pages I'd like a different block..........
Quote from: LadyChaos on July 18, 2009, 06:23:49 PM
Is there going to be a smf 1.1.10 compatible version? ;D
Tried using the parsing tool from other sites, no luck.
Quote from: LadyChaos on July 18, 2009, 07:52:20 PM
Well I have a custom theme, so to install this mod I would need the parse for 1.1.10. Or am I wrong?
Quote from: [SiNaN] on July 20, 2009, 08:59:40 AM
They are admin images, so they don't have a fallback. If you had checked the option "Install the mod for the other themes" while installing the mod, it should have copied the images for you.
You can fix it by copying the contents of /Themes/default/images/admin directory to /Themes/{your_theme}/images/admin directory.
Quote from: [SiNaN] on July 20, 2009, 08:59:40 AMThey are admin images, so they don't have a fallback.
Quote from: Eliana Tamerin on July 27, 2009, 04:46:08 PM
That's why you have to select every membergroup but the one you want to exclude.
QuoteFatal error: Call to undefined function sp_languageSelect() in /home/content/p/a/l/palmbeachpreps/html/Sources/Admin.php on line 70TIA!
Quote from: TheListener on July 27, 2009, 04:54:37 PM
Is there a way for the image a sm.org member made for my forums twitter account can be used as the llink tfrom the portal to the account?
Attached is the image.
Quote from: PalmBeachPreps on July 30, 2009, 02:47:28 AM
Can someone help me with this error?QuoteFatal error: Call to undefined function sp_languageSelect() in /home/content/p/a/l/palmbeachpreps/html/Sources/Admin.php on line 70TIA!
Quote from: psynx on July 30, 2009, 11:25:47 AM
need help.
Table 'b4_14344_myforum.smf_sp_blocks' doesn't exist
File: ...../htdocs/Sources/Subs-SPortal1-1.php
Line: 112
Quote from: [SiNaN] on July 30, 2009, 12:25:57 PMI reinstalled the mod after upgrading to 2.0 RC1.2 and that error came up.
Well, something like the two issues above does not happen without doing anything. You need to provide more details of the error.
require_once($sourcedir . '/SPortal2.php');
require_once($sourcedir . '/SPortal2.php');
require_once($sourcedir . '/Subs-SPortal2.php');
Quote from: [SiNaN] on July 30, 2009, 01:20:45 PMSame result.
index.phpCode (Find) Selectrequire_once($sourcedir . '/SPortal2.php');
Code (Replace) Selectrequire_once($sourcedir . '/SPortal2.php');
require_once($sourcedir . '/Subs-SPortal2.php');
QuoteYou may want to uninstall the mod completely and install again, as you seem to have some issues with SP copyright too.
QuoteFatal error: require_once() [function.require]: Failed opening required '/home/content/p/a/l/palmbeachpreps/html/Sources/Articles2.php' (include_path='.:/usr/local/php5/lib/php') in /home/content/p/a/l/palmbeachpreps/html/Sources/Admin.php on line 604
Quote from: [SiNaN] on July 30, 2009, 06:02:33 PMGreat Call! SMF articles was the culprit. Thanks!
Error is saying that Articles2.php file doesn't exist in Sources directory. However, SimplePortal doesn't have/use such a file. I believe it is related to SMF Articles mod.
Quote from: royalsanga744 on August 03, 2009, 04:17:44 AM
Hi everyone....
i would like to have my own custom menu on standalone page not that of my forum. can anyone help me......
thanks
Quote from: royalsanga744 on August 06, 2009, 01:36:15 PMQuote from: royalsanga744 on August 03, 2009, 04:17:44 AM
Hi everyone....
i would like to have my own custom menu on standalone page not that of my forum. can anyone help me......
thanks
can u help.....
Quote from: ultide on August 06, 2009, 05:18:20 PM
My site is http://ultide.com
i hv smf 1.1.9 .
problem is that my frontpage and standalone pages point to http://www.ultide.com/index.php
but i want them to point http://ultide.com
how can i do this.
help me....thanks....
Quote from: ultide on August 06, 2009, 05:18:20 PM
My site is http://ultide.com (http://ultide.com)
i hv smf 1.1.9 .
problem is that my frontpage and standalone pages point to http://www.ultide.com/index.php (http://www.ultide.com/index.php)
but i want them to point http://ultide.com (http://ultide.com)
how can i do this.
help me....thanks....
Quote from: [SiNaN] on August 08, 2009, 04:02:12 PM
The SimplePortal Team has been hard at work for the last several months developing the next version of SimplePortal, 2.3! We've heard your feedback, and included many requested features in our upcoming version.
Since we would like to have testing and feedback for our new version, in order to provide you the most stable product possible, we have decided to make our release candidate public. This means you can download the upcoming version now, test and report the bugs.
However, please note that: There will be no install/upgrade/uninstall support provided for/from RC1 version. Although this is a stable version, we strongly advise against using this package on your live forums. This package is only for testing purposes.
Your feedback is welcome here and in the related topics in Team Blogs (http://simpleportal.net/index.php?board=60.0) board. Please post any bugs to the Bugs (http://simpleportal.net/index.php?board=3.0) board.
You can download the package from Beta Packages (http://simpleportal.net/index.php?action=downloads;area=cat7) category in Downloads (http://simpleportal.net/index.php?action=downloads) area.
Thanks,
-The SimplePortal Team
// Show a form for guests to register.
function ssi_register($output_method = 'echo')
{
global $scripturl, $db_prefix, $txt, $settings, $modSettings, $context;
loadLanguage('Login');
// Generate a visual verification code to make sure the user is no bot.
$context['visual_verification'] = empty($modSettings['disable_visual_verification']) || $modSettings['disable_visual_verification'] != 1;
if ($context['visual_verification'])
{
$context['use_graphic_library'] = in_array('gd', get_loaded_extensions());
$context['verificiation_image_href'] = $scripturl . '?action=verificationcode;rand=' . md5(rand());
// Only generate a new code if one hasn't been set yet
if (!isset($_SESSION['visual_verification_code']))
{
// Skip I, J, L, O and Q.
$character_range = array_merge(range('A', 'H'), array('K', 'M', 'N', 'P'), range('R', 'Z'));
// Generate a new code.
$_SESSION['visual_verification_code'] = '';
for ($i = 0; $i < 5; $i++)
$_SESSION['visual_verification_code'] .= $character_range[array_rand($character_range)];
}
}
// If we have GD, try the nice code.
elseif (empty($_REQUEST['format']))
{
require_once($sourcedir . '/Subs-Graphics.php');
if (in_array('gd', get_loaded_extensions()) && !showCodeImage($_SESSION['visual_verification_code'])) {
header('HTTP/1.1 400 Bad Request');
die();
}
// Otherwise just show a pre-defined letter.
elseif (isset($_REQUEST['letter']))
{
$_REQUEST['letter'] = (int) $_REQUEST['letter'];
if ($_REQUEST['letter'] > 0 && $_REQUEST['letter'] <= strlen($_SESSION['visual_verification_code']) && !showLetterImage(strtolower($_SESSION['visual_verification_code']{$_REQUEST['letter'] - 1}))) {
header('HTTP/1.1 400 Bad Request');
die();
}
}
// You must be up to no good.
else {
header('HTTP/1.1 400 Bad Request');
die();
}
}
elseif ($_REQUEST['format'] === '.wav')
{
require_once($sourcedir . '/Subs-Sound.php');
if (!createWaveFile($_SESSION['visual_verification_code'])) {
header('HTTP/1.1 400 Bad Request');
die();
}
}
if($output_method = 'echo' && $context['user']['is_guest']) {
echo '
<div>
<form action="'. $scripturl. '?action=register2" method="post" style="margin: 0px 1px 1px 0; text-align:left;" name="creator" id="creator">
<table class="ssi_table">
<tr>
<td>', $txt[98], ':</td>
<td><input type="text" name="user" size="10" maxlength="30" /></td>
</tr>
<tr>
<td>', $txt[81], ':</td>
<td><input type="password" name="passwrd1" size="10" /></td>
</tr>
<tr>
<td>', $txt[82], ': </td>
<td><input type="password" name="passwrd2" size="10" /></td>
</tr>
<tr>
<td>', $txt[69], ':</td>
<td><input name="email" type="text" size="10" /><input name="regagree" type="hidden" value="checked" /></td>
</tr>';
if ($context['visual_verification'])
{
echo '
<tr>
<td>
', $txt['visual_verification_label'], ':
</td>
<td><input type="text" name="visual_verification_code" size="10" /></td>
</tr>
<tr>';
if ($context['use_graphic_library'])
echo '
<td colspan="2"><img src="', $context['verificiation_image_href'], '" alt="', $txt['visual_verification_description'], '" id="verificiation_image" /></td>';
else
echo '
<td colspan="2"><img src="', $context['verificiation_image_href'], ';letter=1" alt="', $txt['visual_verification_description'], '" id="verificiation_image_1" />
<img src="', $context['verificiation_image_href'], ';letter=2" alt="', $txt['visual_verification_description'], '" id="verificiation_image_2" />
<img src="', $context['verificiation_image_href'], ';letter=3" alt="', $txt['visual_verification_description'], '" id="verificiation_image_3" />
<img src="', $context['verificiation_image_href'], ';letter=4" alt="', $txt['visual_verification_description'], '" id="verificiation_image_4" />
<img src="', $context['verificiation_image_href'], ';letter=5" alt="', $txt['visual_verification_description'], '" id="verificiation_image_5" /></td>';
echo '
</tr>
<tr>
<td class="smalltext" colspan="2">
<a href="', $context['verificiation_image_href'], ';sound" onclick="return reqWin(this.href, 400, 120);">', $txt['visual_verification_sound'], '</a>
</td>
</tr>';
}
echo'
<tr>
<td colspan="2" align="center"><input type="submit" value="', $txt[97], '" /></td>
</tr>
</table>
</form>
</div>';
}
else
return false;
}
<?php require("my forum path directory/SSI.php"); ssi_register(); ?> |
Quote from: Eliana Tamerin on August 13, 2009, 10:48:35 AM
The php block automatically enters the <?php and ?> tags for you. Remove those and the block should work.
Quote from: vanquizhers on August 13, 2009, 11:04:21 AM
Oh...Thank You sis, how about the gallery button?
Thank you.. :D
Quoteif (in_array($modSettings['sp_portal_mode'], array(1, 3)))
Quote// Show the [help] button.
echo ($current_action == 'help' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'help' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=help">' , $txt[119] , '</a>
</td>' , $current_action == 'help' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
Quote// Show the [forum] button.
if (in_array($modSettings['sp_portal_mode'], array(1, 3)))
echo ($current_action=='forum' || $context['browser']['is_ie4']) ? '<td class="maintab_active_first"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action=='forum' ? 'active_back' : 'back' , '">
<a href="', $scripturl . ($modSettings['sp_portal_mode'] == 1 ? '?action=forum' : ''), '">'.$txt['sp-forum'].'</a>
</td>' , $current_action=='forum' ? '<td class="maintab_active_last"> </td>' : '';
Quote from: kingkingston on August 13, 2009, 04:59:34 PM
I went to install it and got 1 problem
1. Execute Modification ./index.php Test failed
Can someone help me please :D
Quote from: Eliana Tamerin on August 13, 2009, 05:13:28 PMi am running 1.1.10 and i am trying to install 2.2.2Quote from: kingkingston on August 13, 2009, 04:59:34 PM
I went to install it and got 1 problem
1. Execute Modification ./index.php Test failed
Can someone help me please :D
What version of SMF are you running, and what version of SP are you trying to install?
QuoteHi all, I've posted this question in the SP forum and have not gotten an answer. Was looking for something else and found this thread. Didn't know that there was one on SMF for SP.
The question I have is for add as an article. Is there a way to have the button just show up on one category instead of every category on every post?
Oh, and I am running SMF 2.0 rc1.2 with SP 2.2.2
Quote from: psynx on August 15, 2009, 07:07:38 AM
hello,
i have this mod installed in my forum.
i need help on how to align exactly my left blocks with my forum board category?
because when i use integration and apply a left block that shows on my forum page, it wont align to my forum board category and also the next board category shows below my left block. take a look at the attach image
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fa.imagehost.org%2F0333%2Fblock.png&hash=6c0eb930ff68dfd5cdab8cfb36ae6ed5f714bd55)
Quote from: Sordell Media on August 18, 2009, 12:34:22 AM
One query I've got is if theres any way to easily setup a block for moderation?
Quote from: tfs on August 18, 2009, 12:43:15 AMQuote from: Sordell Media on August 18, 2009, 12:34:22 AM
One query I've got is if theres any way to easily setup a block for moderation?
Take a look at Admin Dashboard. (http://simpleportal.net/index.php?topic=2206.0)
Quote from: arockets on July 31, 2009, 09:25:45 AM
Hello again :)
I just started to use articles, and have added a image. Could someone help me with moving that image to the top of the Article? Right now its to the right inside the box. Maybe an option for the image position in 2.3? :)
Quote from: psynx on August 24, 2009, 10:42:51 AM
hello,
i made the portal as my homepage, however google bots still acknowledges the forum site as the index page instead of the portal home page?
how do i make the portal - home page as the index page?
Quote from: psynx on August 24, 2009, 12:16:04 PM
i used custom html blocks for my entire homepage.
in fact i even use dreamweaver to design my homepage.
so everything in the homepage is very important and that is why i want it to make as my index page instead of the forum page.
QuoteI had a few members mention they got it. Its a popup that omes up. I only get it using IE7 running windows XP. But I am also getting other errors on the page as well using IE8.
Quote
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; InfoPath.2; .NET CLR 3.5.30729; .NET CLR 3.0.30618)
Timestamp: Mon, 24 Aug 2009 13:12:35 UTC
Message: Object doesn't support this property or method
Line: 45
Char: 3
Code: 0
URI: http://forums.sideimagingsoft.com/portal.php
Message: Object doesn't support this property or method
Line: 99
Char: 3
Code: 0
URI: http://forums.sideimagingsoft.com/portal.php
Quote from: cave_lion on August 29, 2009, 11:47:37 PM
I am reading that simple portal "blocks" should appear on the forum as well as the "Home" page--but this is not the case for me? I have tried adjusting the settings in different ways: changing "front page" to "Integration" and checking/unchecking the "Display blocks in forum" and "Hide Blocks in Forum Areas." But nothing changes--the blocks only show on the homepage and no-where else...
I am using Firefox--but tried it on IE as well. Using Vista 64bit. Just installed SMF--so it is nearly untouched--the only other mod I put in is the Aeva (Auto-Embed Video & Audio).
Thanks for any help you can provide...
Gordo
Quote from: cave_lion on September 02, 2009, 10:17:08 AM
OK--call me stupid--but I am not getting what the point of "articles" is. I've searched the net looking for info about any advantage to using an article instead of a post and can't find anything...
Can someone please tell me--what the difference is (they look identical to me)? And what the advantage to using an article over a post is?
Thanks!
Quote from: TheListener on September 02, 2009, 10:30:54 AM
Do we get any commission for reccomending SP to sm.org users?
Quote from: TheListener on September 02, 2009, 10:41:46 AM
Warning: require_oncel/Sources/SPortal2.php) [function.require-once]: failed to open stream: No such file or directory in /home/visionar/public_html/index.php on line 67
Fatal error: require_once() [function.require]: Failed opening required /Sources/SPortal2.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in //public_html/index.php on line 67
Quote from: TheListener on September 02, 2009, 10:47:38 AM
went to add the upgrade then uninstall the previous.
Quote from: TheListener on September 02, 2009, 10:47:38 AM
went to add the upgrade then uninstall the previous.
Quote from: TheListener on September 02, 2009, 11:29:09 AMI can see your site "properly" now! :)
Now have: Fatal error: Call to undefined function sp_languageselect() in /Sources/Admin.php on line 71
Quote from: Tiribulus on September 02, 2009, 11:51:59 AM
I am quite certain that whatever issues I'm having now and ones I may have later are entirely due to the almost 70 mods I have installed with most of them requiring manual edits.
Only had a minute to test and I did have to do some manual surgery this time. So far I'm getting the following repeatedly:
http://gregnmary.gotdns.com:8080/index.php
8: Undefined index: downloads
File: /srv/www/htdocs/Sources/PortalBlocks.php
Line: 1668
http://gregnmary.gotdns.com:8080/index.php
8: Undefined index: posted_by
File: /srv/www/htdocs/Sources/PortalBlocks.php
Line: 1669
I'm already running with eval off I believe.
If one of you fine SP folks could gimme a hand when you get a chance I would surely be grateful.
Thanks.
' . $txt['downloads'] . ': ' . $item['file']['downloads'] . '<br />' : ''), ($showPoster ? '
' . $txt['posted_by'] . ': ' . $item['member']['link'] : ''), '
' . $txt['sp-downloadsCount'] . ': ' . $item['file']['downloads'] . '<br />' : ''), ($showPoster ? '
' . $txt['sp-downloadsPoster'] . ': ' . $item['member']['link'] : ''), '
Quote from: TheListener on September 02, 2009, 12:27:20 PM
The portals there nothing is showing.
I had a fail on index.php yet when I go to do the manual edit nthe required text isn't there.
Quote from: [SiNaN] on September 02, 2009, 12:39:28 PM
It's our fault.
Sources/PortalBlocks.phpCode (Find) Select' . $txt['downloads'] . ': ' . $item['file']['downloads'] . '<br />' : ''), ($showPoster ? '
' . $txt['posted_by'] . ': ' . $item['member']['link'] : ''), 'Code (Replace) Select' . $txt['sp-downloadsCount'] . ': ' . $item['file']['downloads'] . '<br />' : ''), ($showPoster ? '
' . $txt['sp-downloadsPoster'] . ': ' . $item['member']['link'] : ''), '
I would be happy if you could file a bug report at sp.net.
Quote from: LadyChaos on September 02, 2009, 01:11:55 PM
The resize image option doesn't resize pictures posted on the forum threads for the portal. The portal keeps them full size and they overlap like so. With the previous version, this wasn't a problem. I'm not getting any forum errors however.
Quote from: Tiribulus on September 02, 2009, 01:52:32 PM
You are on the job boss as usual. Good work. Thanks and I will.
EDIT: you're a wizard my friend... fixed. Good job again.
Quote from: TheListener on September 02, 2009, 08:47:23 PM
Managed to sort the portal out.
The file was missing a lot of text.
How do I make the default text white instead of black?
The additional buttons ie bbc for font etc don't all show up.
Quote from: [SiNaN] on September 02, 2009, 11:20:07 PMQuote from: LadyChaos on September 02, 2009, 01:11:55 PM
The resize image option doesn't resize pictures posted on the forum threads for the portal. The portal keeps them full size and they overlap like so. With the previous version, this wasn't a problem. I'm not getting any forum errors however.
See if you have it enabled in Admin > SimplePortal > General Settings > Resizes images on portal
Quote from: LadyChaos on September 02, 2009, 01:11:55 PM;) So what else could it be?
The resize image option doesn't resize pictures.
Quote from: JBlaze on September 02, 2009, 11:22:25 PM
Congrats to [SiNaN] and the rest of the SP team for yet another awesome release!
I am using this on both my personal website and my projects website. Keep it up.
Quote from: LadyChaos on September 03, 2009, 04:30:08 AMQuote from: [SiNaN] on September 02, 2009, 11:20:07 PMQuote from: LadyChaos on September 02, 2009, 01:11:55 PM
The resize image option doesn't resize pictures posted on the forum threads for the portal. The portal keeps them full size and they overlap like so. With the previous version, this wasn't a problem. I'm not getting any forum errors however.
See if you have it enabled in Admin > SimplePortal > General Settings > Resizes images on portalQuote from: LadyChaos on September 02, 2009, 01:11:55 PM;) So what else could it be?
The resize image option doesn't resize pictures.
"bbc_img sp_article"
"sp_article"
Quote from: Pinball Nation on September 03, 2009, 06:46:33 AMMmmh... Why do you want to leave the MOD installed?
Hello everyone,I would like to say i have SP 2.2 installed an have enjoyed it alot with no problems.I have not installed 2.3 yet.My questions are i have Hackspark shout box installed.Can i leave this installed an make it the shoutbox on the portal when i install 2.3 with no problems. Its the only shoutbox i can install without errors.I was also going to asked.I have a couple of RSS feeds on the 2.2 portal now.If i install 2.3 will they be lost?Im using smf 1.1.10.
Quote from: [SiNaN] on September 03, 2009, 05:29:07 AMSeems like that did the trick. Thanks a lot. :)Quote from: JBlaze on September 02, 2009, 11:22:25 PM
Congrats to [SiNaN] and the rest of the SP team for yet another awesome release!
I am using this on both my personal website and my projects website. Keep it up.
Thanks JBlaze.Quote from: LadyChaos on September 03, 2009, 04:30:08 AMQuote from: [SiNaN] on September 02, 2009, 11:20:07 PMQuote from: LadyChaos on September 02, 2009, 01:11:55 PM
The resize image option doesn't resize pictures posted on the forum threads for the portal. The portal keeps them full size and they overlap like so. With the previous version, this wasn't a problem. I'm not getting any forum errors however.
See if you have it enabled in Admin > SimplePortal > General Settings > Resizes images on portalQuote from: LadyChaos on September 02, 2009, 01:11:55 PM;) So what else could it be?
The resize image option doesn't resize pictures.
Well, then it's a bug.
Themes/default/portal.jsCode (Find) Select"bbc_img sp_article"
Code (Replace) Select"sp_article"
Only affects SMF 1.1 versions.
Quote from: lepard on September 03, 2009, 06:17:54 PM
I have the latest version of the forum and the latest version of simple portal and some of my members are saying they can't see the portal. Any suggestions??
www.pulaskicountyweb.com/smf
Quote from: TheListener on September 03, 2009, 06:24:11 PMQuote from: lepard on September 03, 2009, 06:17:54 PM
I have the latest version of the forum and the latest version of simple portal and some of my members are saying they can't see the portal. Any suggestions??
www.pulaskicountyweb.com/smf
Were there any errors on install?
Quote from: TheListener on September 03, 2009, 06:02:00 PM
Were there any errors on install?
Quote from: buckshot on September 04, 2009, 01:19:33 AM
Perhaps.
But replacing the Sources folder created a whole lot of other problems.
Like that I cannot access my gallery..
And that the portal do not show..
Quote from: Pinball Nation on September 04, 2009, 03:26:57 PMGo to Admin panel->add block then select custom html (near the bottom) and put the html in there. Then where you want it to show up, etc. Or if it's a php or bbc script, the same way.
Hello,I want to add a script code in one of the SP blocks.Do i put this in the PHP block.Im going to upload html file to my server to a folder i created.The reason i ask is im not sure where i would place this script code.So i thought i would let SP do it for me since i want it on the portal page anyways.Im trying to add a radio player to my forum.An i can't find any mods to do this.Im using smf 1.1.10.Im still trying to learn how to do all this stuff.
Quote from: [SiNaN] on June 30, 2009, 02:54:04 AM
digit:
If you replace the attached file with the one in your Sources directory in 2.2.2 version, it will not load anything in forum other than SP admin area.
Quote from: Pinball Nation on September 04, 2009, 04:15:15 PMThat's HTML as well, where it starts as <script>. PinBall. :) I tested it out, it seems to be fine.
Ok heres a copy of the post an code.i have an internet radio player on my site and it works great. i create an html page for each station and put this into the html page. change all the red values to what you want. with this being an html page, you can add all the custom changes you want, like background pictures, ad banners, links to other sites, etc etc.Code Select
<HTML>
<BODY>
<TITLE>radio station title</TITLE>
<EMBED SRC="url of radio stream" HEIGHT="42" WIDTH="100%" AUTOSTART="TRUE">
</BODY>
upload that html file to a folder on your server, i have a folder called radio_stations. then add this javascript to your home page again changing the values in red. i use tiny portal and just add it to a scriptbox. this script creates a dropdown list where people just choose the station then hit the go button. you duplicate the option value line for each station you have, and create a new html page for each a station as well.
<script>
<!--
var windowDoPop
function go(whichURL) {
windowDoPop=window.open(whichURL[whichURL.selectedIndex].value,'doPop','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=200,height=75');
windowDoPop.focus();
}
//-->
</script>
<FORM>
<SELECT NAME="SelectURL" size="1">
<option value="url to html page">type name of station here</option>
</SELECT>
<INPUT TYPE="button" VALUE="GO!" onClick="go(this.form.SelectURL.options)">
</FORM>
Quote from: 4b11l on September 07, 2009, 02:47:56 AM
Quick question, is there a way to decrease the gap between the blocks?
Quote from: kai920 on September 07, 2009, 05:11:18 AMQuote from: 4b11l on September 07, 2009, 02:47:56 AM
Quick question, is there a way to decrease the gap between the blocks?
there's a br tag between each block. I'd add this to your CSS:
#sp_left br { display: none; }
#sp_left div br { display: block; }
(use #sp_right for the right column)
Quote from: kai920 on September 07, 2009, 05:11:18 AMQuote from: 4b11l on September 07, 2009, 02:47:56 AM
Quick question, is there a way to decrease the gap between the blocks?
there's a br tag between each block. I'd add this to your CSS:
#sp_left br { display: none; }
#sp_left div br { display: block; }
(use #sp_right for the right column)
Quote from: Kingus on September 07, 2009, 02:58:39 PM
Help When I tried to login to my smf 2.o rc1.2 forum today I was getting an error saying that I cant login and i should check my cookie settings. I got this error on IE and opera, so i logged in using a proxy site, THen I went to package manager to uninstall simple portal 2.2.1 as I tried to do this it gave me two errors, one of them in index.php and the other in sources, but i went on to uninstall after which my forum (http://www.naijaloft.com) crashed. Now when i try to open any page I get this error
Warning: require_once(/home/naijalof/public_html/Sources/SPortal2.php) [function.require-once]: failed to open stream: No such file or directory in /home/naijalof/public_html/index.php on line 66
Fatal error: require_once() [function.require]: Failed opening required '/home/naijalof/public_html/Sources/SPortal2.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/naijalof/public_html/index.php on line 66 PLease can someone help me with a solution
Quote from: plusev on September 07, 2009, 04:41:58 PM
Exactly what I was looking for. Which css would that be for a custom theme?
Quote from: 4b11l on September 07, 2009, 10:12:54 PM
Well, I guess I can't have the best of both worlds. I didn't want the space to disappear completely, rather; just decrease the space a bit. About the same as the vertical spacing would be great! I guess this isn't possible since it's separated with a br tag?
div.sp_block {margin:5px 0;}
Quote from: TheListener on September 10, 2009, 08:21:49 AM
The portal you have is out of date.
The current version is 2.3 however before you do upgrade please attach the file so someone can have a look for you.
Are there any other errors in the error log?
Quote from: 4b11l on September 10, 2009, 03:20:14 PMWhat do you mean by seperate page?
Is it possible to put the shoutbox on a seperate page?
Quote from: TheListener on September 10, 2009, 05:04:28 PMQuote from: 4b11l on September 10, 2009, 03:20:14 PMWhat do you mean by seperate page?
Is it possible to put the shoutbox on a seperate page?
If you mean so it appears on other pages of the forum then yes.
Quote from: lepard on September 03, 2009, 06:17:54 PM
I have the latest version of the forum and the latest version of simple portal and some of my members are saying they can't see the portal. Any suggestions??
www.pulaskicountyweb.com/smf
Quote from: Akpaka on September 08, 2009, 07:03:02 AM
error report
Fatal error: Cannot redeclare sportal_init() (previously declared in /home/afrowall/public_html/Sources/Subs-Portal.php:89) in /home/afrowall/public_html/Sources/SPortal1-1.php on line 307
i forgot to uninstall the previous version before upgrading to the 2.3
what do i do?
Quote from: ibrrorg on September 08, 2009, 07:46:44 PM
i searched the search area and could not find this answer so i am sorry if it is somewhere i have missed. TheListener refered me to your main site and I tried to post there but never saw it appear.
first, smf 1.1.10, intifada theme, simpleportal 2.2.3. http://www.ibrr.org/forum/ (http://www.ibrr.org/forum/)everything works great. my question is this: when i want to enter my shout into the shoutbox i have to click the 'shout' key. is there some way to simple hit the 'enter' key?
thanx for all ya'll do and hey, this mod (especially the upgrade) has made my life GREAT and my members all said to tell ya'll THANX for adding the shoutbox!
a footnote: thus far, we haven't experienced any major drag on the server side of things. i wrote my provider as we're all hobos and don't really have much money to pay for bandwidth and no problems to date. it stores 15 shouts and refreshes every 10 seconds. there's about 4 of us that chat.
Quote from: plusev on September 07, 2009, 04:41:58 PM
Exactly what I was looking for. Which css would that be for a custom theme?
Quote from: plusev on September 12, 2009, 12:51:06 AMQuote from: plusev on September 07, 2009, 04:41:58 PM
Exactly what I was looking for. Which css would that be for a custom theme?
What I listed is SimplePortal's CSS so it should work in your custom theme. Try it and see if it makes a difference.
Where would I pasted the code in the css? Anywhere?
Thx
Quote from: NBK*Twitch on September 12, 2009, 03:24:11 PM
I have a simple problem right now, the theme i am using - mystic blue, has all text centered on all categories names and such.
However it seems I can't get a custom block I made ti have centered text.
How would I go about doing this?
Quote from: Nathaniel on September 12, 2009, 07:28:18 PMThat didn't work :[.Quote from: plusev on September 12, 2009, 12:51:06 AMQuote from: plusev on September 07, 2009, 04:41:58 PM
Exactly what I was looking for. Which css would that be for a custom theme?
What I listed is SimplePortal's CSS so it should work in your custom theme. Try it and see if it makes a difference.
Where would I pasted the code in the css? Anywhere?
Thx
Add it to the 'portal.css' file in your default theme, and then you shouldn't have to add it to any other files (the custom themes will load that css file).Quote from: NBK*Twitch on September 12, 2009, 03:24:11 PM
I have a simple problem right now, the theme i am using - mystic blue, has all text centered on all categories names and such.
However it seems I can't get a custom block I made ti have centered text.
How would I go about doing this?
Try adding 'text-align: center;' to the 'Custom Body Style' field for that block.
Quote from: Nathaniel on September 12, 2009, 09:41:31 PM
@NBK*Twitch,
If you are using a PHP or HTML block, then make sure that you don't have HTML styles/tags which are overriding the main block's style. If you can post the code that you are using, then I can check over it.
Quote from: ultide on September 13, 2009, 09:08:57 AM
hey all...
can i have both frontpage and integration at the same time...
if not...then any solution...plz tell me...
Quote from: NBK*Twitch on September 13, 2009, 01:23:43 PMQuote from: Nathaniel on September 12, 2009, 09:41:31 PM
@NBK*Twitch,
If you are using a PHP or HTML block, then make sure that you don't have HTML styles/tags which are overriding the main block's style. If you can post the code that you are using, then I can check over it.
Here it is.(note it was the code i used when using ipbfree)
<center><div class='tableborder'><center><div class='maintitle'></div></center>
<table border='0' width='100%' cellspacing='1'><tr>
<td class='row4' align='center' align='center' height='130'>
<img src='http://i25.tinypic.com/w2gf9e.jpg'>
</td></tr></table></div></center>
<img src='http://i25.tinypic.com/w2gf9e.jpg'>
<div style="width: 100%;" align="center"><img src='http://i25.tinypic.com/w2gf9e.jpg'></div>
Quote from: Nathaniel on September 14, 2009, 01:53:20 AMI just tried those edits at the link above and got this error:
@NBK*Twitch,
What about this code? (it doesn't need the style option to be set)Code Select<div style="width: 100%;" align="center"><img src='http://i25.tinypic.com/w2gf9e.jpg'></div>
@BoZilla,
At the moment there are some issues with that block and the displaying of the sub-menu links. There is a fix over at SP.net (http://simpleportal.net/index.php?topic=3246.msg21226#msg21226), which will remove the sub-menu 'popup' for 2.3.
Parse error: syntax error, unexpected $end in /home/????/public_html/????/Sources/PortalBlocks.php on line 1
Quote from: Nathaniel on September 14, 2009, 05:13:16 PM
@BoZilla,
You probably made a mistake when you edit the file. Could you please attach that file so I can have a look at it?
Quote from: Nathaniel on September 14, 2009, 01:53:20 AM
@NBK*Twitch,
What about this code? (it doesn't need the style option to be set)Code Select<div style="width: 100%;" align="center"><img src='http://i25.tinypic.com/w2gf9e.jpg'></div>
@BoZilla,
At the moment there are some issues with that block and the displaying of the sub-menu links. There is a fix over at SP.net (http://simpleportal.net/index.php?topic=3246.msg21226#msg21226), which will remove the sub-menu 'popup' for 2.3.
Quoteso, when i get to my home page when first logging on, it on the left hand side, there is a thinger there that says home, forum, blah blah, listing everything. then written right ON TOP of all of that, which it is all blended together, it has other stuff on there, like who is on line, etc. i know its not suppose to be wrote on top of the other....so i am guessing is a fluke.I tried to recreate this scenario in different browsers but can't figure it out! Any idea what's is going on here? I knew I shouldn't have upgraded cause 2.2 was working fine and like the old saying goes, if it ain't broke...don't fix it! ;)
also, while i write this on this page, right under my avatar, it has that same list of stuff, and the whole thing is whited out.
Quote from: Nathaniel on September 15, 2009, 02:12:26 AMThat's weird! Try this one! ;)
@BoZilla
Wow, did you edit that file with notepad or something? All the code is on the same line, which is never a good sign. Do you have a copy of the file from before you edited it? That would be more useful.
About the member's post, ask them which browser/s they use, and if they can post a screenshot of the issue.
@NBK*Twitch,
What text? If you are referring to the title of the block, then put 'text-align: center;' into the 'Custom Title Style' option.
Quote from: oistarbwoy on September 15, 2009, 12:32:43 PM
i am able to rename buttons by simply changing their text string to say what i want in the file all except the one i wanted to change... the 'forum button' I cannot find it. as this button only exists because of the installation of simple portal im wondering if perhaps it is somewhere else. where can i find it does anybody know.
Quote from: johncccccc on September 15, 2009, 06:08:00 PMSuch a thing isn't possible. An administrator is 'doomed' to see all content on his forum. If you'd like to view your blocks as a regular member, you should create a test account with which you can play around :)
I just want to know, how do we create a block that you can choose only one member group to see excluding administrator.
I want to have guests see a message, but only guests, not admins I dont see how to "disable/hide" the block from admins?
Is it possible?
Quote from: buckshot on September 16, 2009, 01:39:23 PM
Sorry for asking stupid questions..
but how do I do this??
edit:
I changed the Simple Portal to be "stand alone" and typed http://www.aggma.com/forum/index.php as the Stand Alone URL.
That only resulted in that I dont get any portal at all
Quote from: Nathaniel on September 15, 2009, 02:12:26 AM
@BoZilla
Wow, did you edit that file with notepad or something? All the code is on the same line, which is never a good sign. Do you have a copy of the file from before you edited it? That would be more useful.
About the member's post, ask them which browser/s they use, and if they can post a screenshot of the issue.
@NBK*Twitch,
What text? If you are referring to the title of the block, then put 'text-align: center;' into the 'Custom Title Style' option.
Quote from: R.Bourne on September 24, 2009, 12:59:34 AM
Great work, as always.
SMF version is 1.1.10 and SP 2.3.
IE 8 users accessing the site, Forum Error Log fills up with this error message:
8: Undefined index: session_var
File: /home/content/r/a/m/2/html/Themes/default/PortalShoutbox.template.php
Line: 111
All other browsers have no issue.
Thanks in advance.
Quote from: anto74 on September 24, 2009, 02:39:40 AM
Hi :-)
today i upgraded to Sp 2.3, but i have curious problem. I have manu block and in Sp 2.2 it's ok, but now the guest not views the blocks but only articles! The block permission Are ok
my forum is macroforum.org
sorry for my english
Antonio
Quote from: [SiNaN] on September 24, 2009, 05:17:02 AMThanks !
Can you provide a screenshot of how the permissions are set for a block?
Quote from: [SiNaN] on September 24, 2009, 06:45:34 AMThanks!!!
See the "Permission Settings" option? Set it to "One Membergroup" and it should be fine.
Quote from: [SiNaN] on September 24, 2009, 05:17:02 AM
http://simpleportal.net/index.php?topic=3201.0
Quote from: [SiNaN] on September 23, 2009, 01:50:18 PM
What's your SMF version? What's your theme name? Can you attach the script.js file from your theme to here?
Quote from: 4b11l on September 27, 2009, 10:02:38 PM
Hello,
For the latest version, where can I find the code for the advanced display option for the shoutbox to embed into boards?
I have a shoutbox on certain boards, but I want to be able to move the shoutbox to the top rather than on the bottom.
Quote from: karbaciun on September 24, 2009, 09:09:24 AM
hi
this mod is in the version 2.3 very good.
but for me in the IE browser have a litte problem and it displayed in below image
in all theme ,but in fire fox have not problem
please help me.
tnx a lot
Quote from: Eliana Tamerin on September 29, 2009, 09:10:05 PM
Well, updating the Who's Viewing This Thread would have to be separate, SP doesn't touch that.
You could ask for that as a mod request.
Quote from: sshahnawaz on September 28, 2009, 03:04:43 AM
What is the difference b/w three mods of Simple Portal, i.e. Frontpage, Integration, Standalone?
Also tell me what can I do if I want my boards to be listed on index page while I am using the front page mod of Simple Portal.
Any input will be highly appreciated. Thank you.... :)
Quote from: karbaciun on September 28, 2009, 05:40:35 PMQuote from: 4b11l on September 27, 2009, 10:02:38 PM
Hello,
For the latest version, where can I find the code for the advanced display option for the shoutbox to embed into boards?
I have a shoutbox on certain boards, but I want to be able to move the shoutbox to the top rather than on the bottom.
after add new shut box, click on the block and go to add block and then choose in bottom shutbox, then in the setting set position :)
function sp_attachmentRecent($parameters)
{
global $db_prefix, $modSettings, $scripturl, $txt, $settings;
$boards = boardsAllowedTo('view_attachments');
if (empty($boards))
return;
elseif ($boards[0] == 0)
$boards = '';
else
$boards = ' AND m.ID_BOARD IN (' . implode(',', $boards) . ')';
$limit = empty($parameters[0]) ? 5 : (int) $parameters[0];
$request = db_query("
SELECT
att.ID_ATTACH, att.ID_MSG, att.filename, IFNULL(att.size, 0) AS filesize, att.downloads, mem.ID_MEMBER,
IFNULL(mem.realName, m.posterName) AS posterName, m.ID_TOPIC, m.subject, t.ID_BOARD, m.posterTime,
att.width, att.height" . (empty($modSettings['attachmentShowImages']) || empty($modSettings['attachmentThumbnails']) ? "" : ", IFNULL(thumb.ID_ATTACH, 0) AS id_thumb, thumb.width AS thumb_width, thumb.height AS thumb_height") . "
FROM {$db_prefix}attachments AS att
INNER JOIN {$db_prefix}messages AS m ON (m.ID_MSG = att.ID_MSG)
INNER JOIN {$db_prefix}topics AS t ON (t.ID_TOPIC = m.ID_TOPIC)
LEFT JOIN {$db_prefix}members AS mem ON (mem.ID_MEMBER = m.ID_MEMBER)" . (empty($modSettings['attachmentShowImages']) || empty($modSettings['attachmentThumbnails']) ? "" : "
LEFT JOIN {$db_prefix}attachments AS thumb ON (thumb.ID_ATTACH = att.ID_THUMB)") . "
WHERE att.attachmentType = 0
$boards
ORDER BY att.ID_ATTACH DESC
LIMIT $limit", __FILE__, __LINE__);
$items = array();
while ($row = mysql_fetch_assoc($request))
{
$filename = preg_replace('~&#(\\d{1,7}|x[0-9a-fA-F]{1,6});~', '&#\\1;', htmlspecialchars($row['filename']));
$items[$row['ID_ATTACH']] = array(
'member' => array(
'id' => $row['ID_MEMBER'],
'name' => $row['posterName'],
'link' => empty($row['ID_MEMBER']) ? $row['posterName'] : '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '">' . $row['posterName'] . '</a>',
),
'file' => array(
'filename' => $filename,
'filesize' => round($row['filesize'] /1024, 2) . $txt['smf211'],
'downloads' => $row['downloads'],
'href' => $scripturl . '?action=dlattach;topic=' . $row['ID_TOPIC'] . '.0;attach=' . $row['ID_ATTACH'],
'link' => '<img src="' . $settings['images_url'] . '/icons/clip.gif" alt="" /> <a href="' . $scripturl . '?action=dlattach;topic=' . $row['ID_TOPIC'] . '.0;attach=' . $row['ID_ATTACH'] . '">' . $filename . '</a>',
'is_image' => !empty($row['width']) && !empty($row['height']) && !empty($modSettings['attachmentShowImages']),
),
'topic' => array(
'id' => $row['ID_TOPIC'],
'subject' => $row['subject'],
'href' => $scripturl . '?topic=' . $row['ID_TOPIC'] . '.msg' . $row['ID_MSG'] . '#msg' . $row['ID_MSG'],
'link' => '<a href="' . $scripturl . '?topic=' . $row['ID_TOPIC'] . '.msg' . $row['ID_MSG'] . '#msg' . $row['ID_MSG'] . '">' . $row['subject'] . '</a>',
'time' => timeformat($row['posterTime']),
),
);
}
mysql_free_result($request);
foreach ($items as $item)
echo '
', $item['file']['link'], '<br />
<span class="smalltext">
', $txt['sp-downloadsCount'], ': ', $item['file']['downloads'], '
</span><br /><br />';
}
Quote from: 4b11l on October 02, 2009, 06:03:55 PMQuote from: karbaciun on September 28, 2009, 05:40:35 PMQuote from: 4b11l on September 27, 2009, 10:02:38 PM
Hello,
For the latest version, where can I find the code for the advanced display option for the shoutbox to embed into boards?
I have a shoutbox on certain boards, but I want to be able to move the shoutbox to the top rather than on the bottom.
after add new shut box, click on the block and go to add block and then choose in bottom shutbox, then in the setting set position :)
Where is this at? I do not see a setting to set the shoutbox to the top of the board.
Quote from: homer09001 on October 05, 2009, 05:16:49 PM
Forget my previous post i got it cracked. :)
next problem how can i get the main portal sidebars to be visible on my Custom HTML Page?
Quote from: johncccccc on October 06, 2009, 03:13:36 PM
Yes there is, when you have a post based member group, u can set it to say, Newbie is 25 posts or less
then create the block and only check off that post based member group, you will always see the block as admin though, only you and members from that group :)
Quote from: johncccccc on October 06, 2009, 04:01:49 PM
well, a global or local moderator should not be able to see it if you only check that group, but admins will always see everything
Quote from: Mdk001 on October 06, 2009, 05:58:58 PMQuote from: johncccccc on October 06, 2009, 04:01:49 PM
well, a global or local moderator should not be able to see it if you only check that group, but admins will always see everything
Yeah, that's what I find annoying...
Perhaps you guys could help me with a bit of php code for a block that'd only show up for people with zero replies?
I don't really know how to get infos from the currently logged in user but once I have that I can handle the rest
Quote from: TheListener on October 06, 2009, 06:06:39 PMQuote from: Mdk001 on October 06, 2009, 05:58:58 PMQuote from: johncccccc on October 06, 2009, 04:01:49 PM
well, a global or local moderator should not be able to see it if you only check that group, but admins will always see everything
Yeah, that's what I find annoying...
Perhaps you guys could help me with a bit of php code for a block that'd only show up for people with zero replies?
I don't really know how to get infos from the currently logged in user but once I have that I can handle the rest
Slightly off topic here but there is a mod for use for people with zero replies.
If you want to know which one then you can pm me.
Quote from: sombra on October 05, 2009, 01:09:58 PM
hello and thanks for this wondurfull portal been uning it for a long time
now i have a little problem can read here
http://www.simplemachines.org/community/index.php?topic=338291.0
and it was told to me that the portal coud be the problem any ideads if this is the problem and is there any fix for it
and thanks
Quote from: camaronero on October 03, 2009, 11:02:29 AMHelp Please
if someone enters a URL in the shoutbox I got the following error:
Fatal error: Maximum execution time of 30 seconds exceeded in / home / fact / public_html / forum / Sources / Subs.php on line 2004
any idea how to fix or block the url in shoutbox
Quote from: mcgovery on October 14, 2009, 03:04:40 PM
Is it possible to disable showing forum posts on the main page?
Thanks
Quote from: DragonKith on October 15, 2009, 03:38:29 PM
This might be a total stupid question or it might not be i just looked at to download SimplePortal 2.3 and i was wondering if i would have to edit any files by chance before i install this program i never really played around with SimplePortal before does anyone have any advice for me by chance i think SimplePortal would kick butt to have on my board.
Quote from: DragonKith on October 16, 2009, 12:34:57 PM
So you dont have to edit any files then i am using SMF 1.1.10 i click on Parse button it says i have to edit files this is very confusing
Quote from: 130860 on October 16, 2009, 12:44:06 PMQuote from: DragonKith on October 16, 2009, 12:34:57 PM
So you dont have to edit any files then i am using SMF 1.1.10 i click on Parse button it says i have to edit files this is very confusing
thats because the package manager will do all those edits for you.
try install simpleportal with the package manager, if you use the default theme, you don't have to edit any file, if you use other theme you just have to edit one file for the "forum" button
gretings!
Quote from: DragonKith on October 16, 2009, 03:27:10 PMQuote from: 130860 on October 16, 2009, 12:44:06 PMQuote from: DragonKith on October 16, 2009, 12:34:57 PM
So you dont have to edit any files then i am using SMF 1.1.10 i click on Parse button it says i have to edit files this is very confusing
thats because the package manager will do all those edits for you.
try install simpleportal with the package manager, if you use the default theme, you don't have to edit any file, if you use other theme you just have to edit one file for the "forum" button
gretings!
It gave me a list of files to edit which would be the file that i need to edit so it will work correctly
Quote from: DragonKith on October 17, 2009, 09:03:13 AM
I'm not using the default theme i am using a customed theme why would it give me a list of files to edit thats where i am lost and confused at
Quote from: Countess Tamerin on October 18, 2009, 10:28:56 AMThanks for the info but that did not fix the problem. When I disable articles I get no Pages[1] at all on the portal page, so it does not seem to fix my problem. Also I don't see the reasoning, surely you should be able to have Web Pages AND Articles in use at the same time? if not then the help or support feature should state this limitation.
Turn the articles off. SP Admin > Configuration > Article Settings and uncheck 'Enable Articles'.
Quote from: 130860 on October 17, 2009, 12:00:27 AM
if you are using the default theme you don't have to click on the parser button at all, just download the SimplePortal_2.3.zip file, then go to your admin panel in your forum, then package/ download packages/ Upload a Package
Package to Upload: select the file you just donwload, SimplePortal_2.3.zip, click on upload and thats it! you install simpleportal on your forum.
the file you need to edit if you are using version 1.1.10 and using a custom theme is Themes/ your theme/index.template.php we could make the edits for you, check: http://simpleportal.net/
if you are using version 2.0, you don't have to edit anything ;)
greetings!
Quote from: LadyChaos on October 18, 2009, 07:44:32 PMAnyone?
Tried to uninstall SP 2.3.1 from my forum (complete uninstall) I received no errors when testing the "uninstall" from the package manager. So I went ahead and did the uninstall through the package manager.
Got this error which seems to have crashed my forum completely.
Fatal error: Call to undefined function sportal_init() in /home/ladychaos/site/forum/index.php on line 198
Any ideas on what I can do? I know I can restore my forum (i'm not worried about that) but I want to know why this has happened?
Quote from: 130860 on October 18, 2009, 10:00:16 PMWell I went ahead and replaced the files with fresh smf core files, but thank you. If that was the case, how odd it didn't want to remove it.
my guest will be that the package manager didn't uninstall sp properly, so, there still some sp code in you files, in your index.php file, search for this:
// Load SimplePortal.
sportal_init();
and remove it.
greetings!
Quote from: Kimmie on October 16, 2009, 03:01:43 PM
Seeing this error in my logs (and its only showing up under my name):
8: Undefined index: 1
File: /home/*****/public_html/Sources/PortalBlocks.php
Line: 2155
Any ideas? Thanks :)
Quote from: Ron Jeremy on September 15, 2009, 08:45:12 PM
This version have little bug :( In the IE blocks have a blank space on the end.
Quote from: NBK*Twitch on September 17, 2009, 08:09:21 PMQuote from: Nathaniel on September 15, 2009, 02:12:26 AM
@BoZilla
Wow, did you edit that file with notepad or something? All the code is on the same line, which is never a good sign. Do you have a copy of the file from before you edited it? That would be more useful.
About the member's post, ask them which browser/s they use, and if they can post a screenshot of the issue.
@NBK*Twitch,
What text? If you are referring to the title of the block, then put 'text-align: center;' into the 'Custom Title Style' option.
Still hasn't centered. I even cleared cache to be sure of it.
Quote from: BoZilla on September 15, 2009, 12:29:34 PMQuote from: Nathaniel on September 15, 2009, 02:12:26 AMThat's weird! Try this one! ;)
@BoZilla
Wow, did you edit that file with notepad or something? All the code is on the same line, which is never a good sign. Do you have a copy of the file from before you edited it? That would be more useful.
About the member's post, ask them which browser/s they use, and if they can post a screenshot of the issue.
@NBK*Twitch,
What text? If you are referring to the title of the block, then put 'text-align: center;' into the 'Custom Title Style' option.
Quote from: karbaciun on September 28, 2009, 05:42:52 PMQuote from: karbaciun on September 24, 2009, 09:09:24 AM
hi
this mod is in the version 2.3 very good.
but for me in the IE browser have a litte problem and it displayed in below image
in all theme ,but in fire fox have not problem
please help me.
tnx a lot
nobody can not help me?
Quote from: gisfreak on September 26, 2009, 01:41:50 PM
hello
i dunno whats wrong on my forum or my PC but it seems "Resizes images on portal" function seems have different result in each browser
in OPERA 10, those oversized pic will be cut in the right
in Firefox 3.5.3, the image will be exceed the center block boundary and goes to right, so it will overlap with right block
in google chrome 2, its have same result as firefox
in safari 4, its have same result as firefox
any clue bout this ?
i use SMF 1.1.10 with default themes from SMF and 6 other mods
regards, GISfreak
Quote from: camaronero on October 07, 2009, 12:35:52 PMQuote from: camaronero on October 03, 2009, 11:02:29 AMHelp Please
if someone enters a URL in the shoutbox I got the following error:
Fatal error: Maximum execution time of 30 seconds exceeded in / home / fact / public_html / forum / Sources / Subs.php on line 2004
any idea how to fix or block the url in shoutbox
Quote from: MrDby on October 04, 2009, 06:08:26 PM
should i just upload the files on the root of the site instead of mysite.com/forum?
Quote from: DaBrute on October 05, 2009, 01:26:38 PM
ANYBODY?
Quote from: 4b11l on October 05, 2009, 04:46:29 PMQuote from: 4b11l on October 02, 2009, 06:03:55 PMQuote from: karbaciun on September 28, 2009, 05:40:35 PMQuote from: 4b11l on September 27, 2009, 10:02:38 PM
Hello,
For the latest version, where can I find the code for the advanced display option for the shoutbox to embed into boards?
I have a shoutbox on certain boards, but I want to be able to move the shoutbox to the top rather than on the bottom.
after add new shut box, click on the block and go to add block and then choose in bottom shutbox, then in the setting set position :)
Where is this at? I do not see a setting to set the shoutbox to the top of the board.
Bump.
Can someone atleast tell me where the code is and I can try to move it myself since volunteer support on this board seems scarce.
Quote from: meehan09 on October 10, 2009, 09:44:47 AM
Since installing portal iam getting thease errors in admin cp - error logs!!
Paul Today at 14:42:28
IP address ******************
f520ffaedc80d893b095d324505d5b2c
Type of error: Undefined
http://www.exoticforums.co.uk//index.php?http://www.exoticforums.co.uk/
8: Undefined variable: fix
File: /home/reptiles/public_html/Sources/Subs-Portal.php
Line: 661
I hope your able to help me fix this and clear my error logs, has they filling up very quickly with thease errors!
Kindest Regards,
Paul
Quote from: LadyChaos on October 16, 2009, 05:49:42 PM
I would like to give something to think about as a suggestion. :)
I am sure many of you are aware of Google's custom homepage if you are using Gmail, or Myspace's new profile layout (2.0). Basically, you can add applications or remove applications by rearranging blocks of information on your page.
I don't know how feasible this would be for SP but it would be very interesting and cool if there was a way for individual accounts to be able to "rearrange" the blocks how they would like to see them. Of course having a default, but then they would be able to customize it as they wish.
Good idea? Feasible? Already been done?
Any thoughts? :D
Quote from: 130860 on October 21, 2009, 12:56:23 PMWell thank you for the offer but I think I will attempt to make the modifications using the parser (as I am enjoying learning to use PHP), if anything comes up, at least I'll have backup files. I'll post any issues I have if any. ;)
you are using fresh files, thats odd, you could make those modifications manually or, if you want to, attach those files and I will made the edits for you ;)
Quote from: LadyChaos on October 21, 2009, 01:02:21 PMQuote from: 130860 on October 21, 2009, 12:56:23 PMWell thank you for the offer but I think I will attempt to make the modifications using the parser (as I am enjoying learning to use PHP), if anything comes up, at least I'll have backup files. I'll post any issues I have if any. ;)
you are using fresh files, thats odd, you could make those modifications manually or, if you want to, attach those files and I will made the edits for you ;)
Quote from: 130860 on October 21, 2009, 01:10:54 PMWell everything seemed to be working fine on modding the files and seeing the configuration area for SP. When I tried to use the option "front page or standalone" and load the landing page, it won't respond at all. The loading is very slow. You can see for yourselfQuote from: LadyChaos on October 21, 2009, 01:02:21 PMQuote from: 130860 on October 21, 2009, 12:56:23 PMWell thank you for the offer but I think I will attempt to make the modifications using the parser (as I am enjoying learning to use PHP), if anything comes up, at least I'll have backup files. I'll post any issues I have if any. ;)
you are using fresh files, thats odd, you could make those modifications manually or, if you want to, attach those files and I will made the edits for you ;)
Ah, OK, fair enough then. ;)
Quote from: LadyChaos on October 21, 2009, 01:30:15 PMI think I fixed it, I disabled the shoutbox (deleted it) and everything loads up fine now... Too weird.Quote from: 130860 on October 21, 2009, 01:10:54 PMWell everything seemed to be working fine on modding the files and seeing the configuration area for SP. When I tried to use the option "front page or standalone" and load the landing page, it won't respond at all. The loading is very slow. You can see for yourselfQuote from: LadyChaos on October 21, 2009, 01:02:21 PMQuote from: 130860 on October 21, 2009, 12:56:23 PMWell thank you for the offer but I think I will attempt to make the modifications using the parser (as I am enjoying learning to use PHP), if anything comes up, at least I'll have backup files. I'll post any issues I have if any. ;)
you are using fresh files, thats odd, you could make those modifications manually or, if you want to, attach those files and I will made the edits for you ;)
Ah, OK, fair enough then. ;)
http://www.ladychaosdnb.com/forum/index.php
Now the forum itself loads fine
http://www.ladychaosdnb.com/forum/index.php?action=forum
Did I miss something? I modified both of those files as the parser said to do, it all works fine from the admin area, but not from the index...
Quote from: LadyChaos on October 21, 2009, 01:39:32 PM
<<< I think I fixed it, I disabled the shoutbox (deleted it) and everything loads up fine now... Too weird.
Quote from: Tiribulus on October 21, 2009, 02:45:37 PMThank you, haha I just noticed I still had the block there. Thanks for pointing that out. :)Quote from: LadyChaos on October 21, 2009, 01:39:32 PM
<<< I think I fixed it, I disabled the shoutbox (deleted it) and everything loads up fine now... Too weird.
Good for you for wanting to figure it out yourself. Seriously. The shoutbox block is still there though it's empty. You would have caught it, but thought I'd mention it.
Quote from: Nathaniel on October 20, 2009, 05:25:36 AM
@Kimmie,
What version of SMF/SP?
Quote from: Nathaniel on October 22, 2009, 02:22:52 AMI have two BBC mods, the Aeva mod and the "tips and tricks" spoiler code BBC . I had both the shoutbox and Aeva running at the same time for quite a while without issues, until yesterday when I had to reinstall SP. I reinstalled SP before reinstalling Aeva this time. I still experienced that issue with the shoutbox without Aeva running or even in the smf files.
@LadyChaos,
Some people are having issues with the shoutobox. Do you have any BBC mods installed? Like the AEVA mod. Does the shoutbox work if you uninstall them?
QuoteFor users that are currently running SimplePortal 2.3; you can upgrade to 2.3.1 using the SimplePortal 2.3.1 installation package.
Quote from: gisfreak on October 22, 2009, 11:48:09 PM
should i just simply upload the new packages and install it ?
Quote from: LadyChaos on October 22, 2009, 10:57:15 PMQuote from: Nathaniel on October 22, 2009, 02:22:52 AMI have two BBC mods, the Aeva mod and the "tips and tricks" spoiler code BBC . I had both the shoutbox and Aeva running at the same time for quite a while without issues, until yesterday when I had to reinstall SP. I reinstalled SP before reinstalling Aeva this time. I still experienced that issue with the shoutbox without Aeva running or even in the smf files.
@LadyChaos,
Some people are having issues with the shoutobox. Do you have any BBC mods installed? Like the AEVA mod. Does the shoutbox work if you uninstall them?
I had a thought about it possibly being the shoutbox and disabled it and now all is well. I just don't use the shoutbox. I had a similar issue happen with the AJAX chat mod a while back, I stopped using that as well. It just seems to cause a huge server load which I can't really find the cause for since my forum is small and only members can use the shoutbox (or back then the Ajax Chat).
It could just be that my server (since it's private) can't run a chat or shoutbox simply because of the heavy reliance between server/user calls for each message sent. Performance gets shot to crap.
Quote from: Nathaniel on October 22, 2009, 02:22:52 AM
@Kimmie,
I can't see any related code on line 2155 of a clean copy of the PortalBlocks.php file. Could you please attach your PortalBlocks.php file?
Quote from: Nathaniel on October 23, 2009, 05:47:01 PM
@Kimmie,
Do you have an theme with ID 1? If you go to your list of themes in the admin panel, the theme ID can be seen in the urls (like ";th=id", where id is the relevant theme id).
Quote from: Kimmie on October 23, 2009, 08:50:25 PMQuote from: Nathaniel on October 23, 2009, 05:47:01 PM
@Kimmie,
Do you have an theme with ID 1? If you go to your list of themes in the admin panel, the theme ID can be seen in the urls (like ";th=id", where id is the relevant theme id).
k I must be missing something because none of mine have that. Only place it shows urls is on the Theme Settings page and there are no id's at the end of them. I also went to Current Theme and there isnt an ID at the end of those urls either.
Wouldnt the Default theme be theme 1?
<?php
/**********************************************************************************
* index.php *
***********************************************************************************
* SMF: Simple Machines Forum *
* Open-Source Project Inspired by Zef Hemel ([email protected]) *
* =============================================================================== *
* Software Version: SMF 1.1.10 *
* Software by: Simple Machines (http://www.simplemachines.org) *
* Copyright 2006-2009 by: Simple Machines LLC (http://www.simplemachines.org) *
* 2001-2006 by: Lewis Media (http://www.lewismedia.com) *
* Support, News, Updates at: http://www.simplemachines.org *
***********************************************************************************
* This program is free software; you may redistribute it and/or modify it under *
* the terms of the provided license as published by Simple Machines LLC. *
* *
* This program is distributed in the hope that it is and will be useful, but *
* WITHOUT ANY WARRANTIES; without even any implied warranty of MERCHANTABILITY *
* or FITNESS FOR A PARTICULAR PURPOSE. *
* *
* See the "license.txt" file for details of the Simple Machines license. *
* The latest version can always be found at http://www.simplemachines.org. *
**********************************************************************************/
/* This, as you have probably guessed, is the crux on which SMF functions.
Everything should start here, so all the setup and security is done
properly. The most interesting part of this file is the action array in
the smf_main() function. It is formatted as so:
'action-in-url' => array('Source-File.php', 'FunctionToCall'),
Then, you can access the FunctionToCall() function from Source-File.php
with the URL index.php?action=action-in-url. Relatively simple, no?
*/
$forum_version = 'SMF 1.1.10';
// Get everything started up...
define('SMF', 1);
@set_magic_quotes_runtime(0);
error_reporting(E_ALL);
$time_start = microtime();
// Make sure some things simply do not exist.
foreach (array('db_character_set') as $variable)
if (isset($GLOBALS[$variable]))
unset($GLOBALS[$variable]);
// Load the settings...
require_once(dirname(__FILE__) . '/Settings.php');
// And important includes.
require_once($sourcedir . '/QueryString.php');
require_once($sourcedir . '/Subs.php');
require_once($sourcedir . '/Errors.php');
require_once($sourcedir . '/Load.php');
require_once($sourcedir . '/Security.php');
// Using an old version of PHP?
if (@version_compare(PHP_VERSION, '4.2.3') != 1)
require_once($sourcedir . '/Subs-Compat.php');
// If $maintenance is set specifically to 2, then we're upgrading or something.
if (!empty($maintenance) && $maintenance == 2)
db_fatal_error();
// Connect to the MySQL database.
if (empty($db_persist))
$db_connection = @mysql_connect($db_server, $db_user, $db_passwd);
else
$db_connection = @mysql_pconnect($db_server, $db_user, $db_passwd);
// Show an error if the connection couldn't be made.
if (!$db_connection || !@mysql_select_db($db_name, $db_connection))
db_fatal_error();
// Load the settings from the settings table, and perform operations like optimizing.
reloadSettings();
// Clean the request variables, add slashes, etc.
cleanRequest();
$context = array();
// Seed the random generator?
if (empty($modSettings['rand_seed']) || mt_rand(1, 250) == 69)
smf_seed_generator();
// Determine if this is using WAP, WAP2, or imode. Technically, we should check that wap comes before application/xhtml or text/html, but this doesn't work in practice as much as it should.
if (isset($_SERVER['HTTP_ACCEPT']) && strpos($_SERVER['HTTP_ACCEPT'], 'application/vnd.wap.xhtml+xml') !== false)
$_REQUEST['wap2'] = 1;
elseif (isset($_SERVER['HTTP_ACCEPT']) && strpos($_SERVER['HTTP_ACCEPT'], 'text/vnd.wap.wml') !== false)
{
if (strpos($_SERVER['HTTP_USER_AGENT'], 'DoCoMo/') !== false || strpos($_SERVER['HTTP_USER_AGENT'], 'portalmmm/') !== false)
$_REQUEST['imode'] = 1;
else
$_REQUEST['wap'] = 1;
}
if (!defined('WIRELESS'))
define('WIRELESS', isset($_REQUEST['wap']) || isset($_REQUEST['wap2']) || isset($_REQUEST['imode']));
// Some settings and headers are different for wireless protocols.
if (WIRELESS)
{
define('WIRELESS_PROTOCOL', isset($_REQUEST['wap']) ? 'wap' : (isset($_REQUEST['wap2']) ? 'wap2' : (isset($_REQUEST['imode']) ? 'imode' : '')));
// Some cellphones can't handle output compression...
$modSettings['enableCompressedOutput'] = '0';
// !!! Do we want these hard coded?
$modSettings['defaultMaxMessages'] = 5;
$modSettings['defaultMaxTopics'] = 9;
// Wireless protocol header.
if (WIRELESS_PROTOCOL == 'wap')
header('Content-Type: text/vnd.wap.wml');
}
// Check if compressed output is enabled, supported, and not already being done.
if (!empty($modSettings['enableCompressedOutput']) && !headers_sent() && ob_get_length() == 0)
{
// If zlib is being used, turn off output compression.
if (@ini_get('zlib.output_compression') == '1' || @ini_get('output_handler') == 'ob_gzhandler' || @version_compare(PHP_VERSION, '4.2.0') == -1)
$modSettings['enableCompressedOutput'] = '0';
else
ob_start('ob_gzhandler');
}
// This makes it so headers can be sent!
if (empty($modSettings['enableCompressedOutput']))
ob_start();
// Register an error handler.
set_error_handler('error_handler');
// Start the session. (assuming it hasn't already been.)
loadSession();
// What function shall we execute? (done like this for memory's sake.)
call_user_func(smf_main());
// Call obExit specially; we're coming from the main area ;).
obExit(null, null, true);
// The main controlling function.
function smf_main()
{
global $modSettings, $settings, $user_info, $board, $topic, $maintenance, $sourcedir;
// Special case: session keep-alive.
if (isset($_GET['action']) && $_GET['action'] == 'keepalive')
die;
// Load the user's cookie (or set as guest) and load their settings.
loadUserSettings();
// Load the current board's information.
loadBoard();
// Load the current theme. (note that ?theme=1 will also work, may be used for guest theming.)
loadTheme();
// Check if the user should be disallowed access.
is_not_banned();
// Load the current user's permissions.
loadPermissions();
// Do some logging, unless this is an attachment, avatar, theme option or XML feed.
if (empty($_REQUEST['action']) || !($_REQUEST['action'] == 'portal' && isset($_GET['xml'])) && !in_array($_REQUEST['action'], array('dlattach', 'jsoption', '.xml')))
{
// Log this user as online.
writeLog();
// Track forum statistics and hits...?
if (!empty($modSettings['hitStats']))
trackStats(array('hits' => '+'));
}
// Is the forum in maintenance mode? (doesn't apply to administrators.)
if (!empty($maintenance) && !allowedTo('admin_forum'))
{
// You can only login.... otherwise, you're getting the "maintenance mode" display.
if (isset($_REQUEST['action']) && ($_REQUEST['action'] == 'login2' || $_REQUEST['action'] == 'logout'))
{
require_once($sourcedir . '/LogInOut.php');
return $_REQUEST['action'] == 'login2' ? 'Login2' : 'Logout';
}
// Don't even try it, sonny.
else
{
require_once($sourcedir . '/Subs-Auth.php');
return 'InMaintenance';
}
}
// If guest access is off, a guest can only do one of the very few following actions.
elseif (empty($modSettings['allow_guestAccess']) && !(!empty($_REQUEST['action']) && $_REQUEST['action'] == 'dlattach' && !empty($_REQUEST['type']) && $_REQUEST['type'] == 'avatar') && !(empty($_REQUEST['action']) && empty($board) && empty($topic) && $modSettings['sp_portal_mode'] == 1) && $user_info['is_guest'] && (!isset($_REQUEST['action']) || !in_array($_REQUEST['action'], array('coppa', 'login', 'login2', 'register', 'register2', 'reminder', 'activate', 'smstats', 'help', 'verificationcode'))))
{
require_once($sourcedir . '/Subs-Auth.php');
return 'KickGuest';
}
elseif (empty($_REQUEST['action']))
{
// Go catch it boy! Catch it!
$sp_action = sportal_catch_action();
if ($sp_action)
return $sp_action;
// Action and board are both empty... BoardIndex!
if (empty($board) && empty($topic))
{
require_once($sourcedir . '/BoardIndex.php');
return 'BoardIndex';
}
// Topic is empty, and action is empty.... MessageIndex!
elseif (empty($topic))
{
require_once($sourcedir . '/MessageIndex.php');
return 'MessageIndex';
}
// Board is not empty... topic is not empty... action is empty.. Display!
else
{
require_once($sourcedir . '/Display.php');
return 'Display';
}
}
// Here's the monstrous $_REQUEST['action'] array - $_REQUEST['action'] => array($file, $function).
$actionArray = array(
'activate' => array('Register.php', 'Activate'),
'admin' => array('Admin.php', 'Admin'),
'announce' => array('Post.php', 'AnnounceTopic'),
'ban' => array('ManageBans.php', 'Ban'),
'boardrecount' => array('Admin.php', 'AdminBoardRecount'),
'buddy' => array('Subs-Members.php', 'BuddyListToggle'),
'calendar' => array('Calendar.php', 'CalendarMain'),
'cleanperms' => array('Admin.php', 'CleanupPermissions'),
'collapse' => array('Subs-Boards.php', 'CollapseCategory'),
'convertentities' => array('Admin.php', 'ConvertEntities'),
'convertutf8' => array('Admin.php', 'ConvertUtf8'),
'coppa' => array('Register.php', 'CoppaForm'),
'deletemsg' => array('RemoveTopic.php', 'DeleteMessage'),
'detailedversion' => array('Admin.php', 'VersionDetail'),
'display' => array('Display.php', 'Display'),
'dlattach' => array('Display.php', 'Download'),
'dumpdb' => array('DumpDatabase.php', 'DumpDatabase2'),
'editpoll' => array('Poll.php', 'EditPoll'),
'editpoll2' => array('Poll.php', 'EditPoll2'),
'featuresettings' => array('ModSettings.php', 'ModifyFeatureSettings'),
'featuresettings2' => array('ModSettings.php', 'ModifyFeatureSettings2'),
'findmember' => array('Subs-Auth.php', 'JSMembers'),
'forum' => array('BoardIndex.php', 'BoardIndex'),
'portal' => array('PortalMain.php', 'sportal_main'),
'manageportal' => array('PortalAdminMain.php', 'sportal_admin_main'),
'help' => array('Help.php', 'ShowHelp'),
'globalhf' => array('globalhf.php', 'globalhf'),
'helpadmin' => array('Help.php', 'ShowAdminHelp'),
'im' => array('PersonalMessage.php', 'MessageMain'),
'jsoption' => array('Themes.php', 'SetJavaScript'),
'jsmodify' => array('Post.php', 'JavaScriptModify'),
'lock' => array('LockTopic.php', 'LockTopic'),
'lockVoting' => array('Poll.php', 'LockVoting'),
'login' => array('LogInOut.php', 'Login'),
'login2' => array('LogInOut.php', 'Login2'),
'logout' => array('LogInOut.php', 'Logout'),
'maintain' => array('Admin.php', 'Maintenance'),
'manageattachments' => array('ManageAttachments.php', 'ManageAttachments'),
'manageboards' => array('ManageBoards.php', 'ManageBoards'),
'managecalendar' => array('ManageCalendar.php', 'ManageCalendar'),
'managesearch' => array('ManageSearch.php', 'ManageSearch'),
'markasread' => array('Subs-Boards.php', 'MarkRead'),
'membergroups' => array('ManageMembergroups.php', 'ModifyMembergroups'),
'mergetopics' => array('SplitTopics.php', 'MergeTopics'),
'mlist' => array('Memberlist.php', 'Memberlist'),
'modifycat' => array('ManageBoards.php', 'ModifyCat'),
'modifykarma' => array('Karma.php', 'ModifyKarma'),
'modlog' => array('Modlog.php', 'ViewModlog'),
'movetopic' => array('MoveTopic.php', 'MoveTopic'),
'movetopic2' => array('MoveTopic.php', 'MoveTopic2'),
'news' => array('ManageNews.php', 'ManageNews'),
'notify' => array('Notify.php', 'Notify'),
'notifyboard' => array('Notify.php', 'BoardNotify'),
'optimizetables' => array('Admin.php', 'OptimizeTables'),
'packageget' => array('PackageGet.php', 'PackageGet'),
'packages' => array('Packages.php', 'Packages'),
'permissions' => array('ManagePermissions.php', 'ModifyPermissions'),
'pgdownload' => array('PackageGet.php', 'PackageGet'),
'pm' => array('PersonalMessage.php', 'MessageMain'),
'post' => array('Post.php', 'Post'),
'post2' => array('Post.php', 'Post2'),
'postsettings' => array('ManagePosts.php', 'ManagePostSettings'),
'printpage' => array('Printpage.php', 'PrintTopic'),
'profile' => array('Profile.php', 'ModifyProfile'),
'profile2' => array('Profile.php', 'ModifyProfile2'),
'quotefast' => array('Post.php', 'QuoteFast'),
'quickmod' => array('Subs-Boards.php', 'QuickModeration'),
'quickmod2' => array('Subs-Boards.php', 'QuickModeration2'),
'recent' => array('Recent.php', 'RecentPosts'),
'regcenter' => array('ManageRegistration.php', 'RegCenter'),
'register' => array('Register.php', 'Register'),
'register2' => array('Register.php', 'Register2'),
'reminder' => array('Reminder.php', 'RemindMe'),
'removetopic2' => array('RemoveTopic.php', 'RemoveTopic2'),
'removeoldtopics2' => array('RemoveTopic.php', 'RemoveOldTopics2'),
'removepoll' => array('Poll.php', 'RemovePoll'),
'repairboards' => array('RepairBoards.php', 'RepairBoards'),
'reporttm' => array('SendTopic.php', 'ReportToModerator'),
'reports' => array('Reports.php', 'ReportsMain'),
'requestmembers' => array('Subs-Auth.php', 'RequestMembers'),
'search' => array('Search.php', 'PlushSearch1'),
'search2' => array('Search.php', 'PlushSearch2'),
'sendtopic' => array('SendTopic.php', 'SendTopic'),
'serversettings' => array('ManageServer.php', 'ModifySettings'),
'serversettings2' => array('ManageServer.php', 'ModifySettings2'),
'smileys' => array('ManageSmileys.php', 'ManageSmileys'),
'smstats' => array('Stats.php', 'SMStats'),
'spellcheck' => array('Subs-Post.php', 'SpellCheck'),
'splittopics' => array('SplitTopics.php', 'SplitTopics'),
'stats' => array('Stats.php', 'DisplayStats'),
'sticky' => array('LockTopic.php', 'Sticky'),
'theme' => array('Themes.php', 'ThemesMain'),
'trackip' => array('Profile.php', 'trackIP'),
'about:mozilla' => array('Karma.php', 'BookOfUnknown'),
'about:unknown' => array('Karma.php', 'BookOfUnknown'),
'unread' => array('Recent.php', 'UnreadTopics'),
'unreadreplies' => array('Recent.php', 'UnreadTopics'),
'viewErrorLog' => array('ManageErrors.php', 'ViewErrorLog'),
'viewmembers' => array('ManageMembers.php', 'ViewMembers'),
'viewprofile' => array('Profile.php', 'ModifyProfile'),
'verificationcode' => array('Register.php', 'VerificationCode'),
'vote' => array('Poll.php', 'Vote'),
'viewquery' => array('ViewQuery.php', 'ViewQuery'),
'who' => array('Who.php', 'Who'),
'.xml' => array('News.php', 'ShowXmlFeed'),
);
if (!empty($context['disable_sp']))
unset($actionArray['portal'], $actionArray['forum']);
// Get the function and file to include - if it's not there, do the board index.
if (!isset($_REQUEST['action']) || !isset($actionArray[$_REQUEST['action']]))
{
// Catch the action with the theme?
if (!empty($settings['catch_action']))
{
require_once($sourcedir . '/Themes.php');
return 'WrapAction';
}
// Fall through to the board index then...
require_once($sourcedir . '/BoardIndex.php');
return 'BoardIndex';
}
// Otherwise, it was set - so let's go to that action.
require_once($sourcedir . '/' . $actionArray[$_REQUEST['action']][0]);
return $actionArray[$_REQUEST['action']][1];
}
?>
Quote from: tommybishop on October 24, 2009, 12:19:19 AM
understood, couldn't find an attachment button anywhere so i did it that way, as i explained in my previous post
Quote from: Nathaniel on October 23, 2009, 01:45:59 AMWell my members are chatty. On average, there is about 20-30 shoutbox messages a day. I tried toggling off/on the cache and minimizing the amount stored by the shoutbox, even put a 30 second delay. Nothing seemed to help.Quote from: LadyChaos on October 22, 2009, 10:57:15 PMQuote from: Nathaniel on October 22, 2009, 02:22:52 AMI have two BBC mods, the Aeva mod and the "tips and tricks" spoiler code BBC . I had both the shoutbox and Aeva running at the same time for quite a while without issues, until yesterday when I had to reinstall SP. I reinstalled SP before reinstalling Aeva this time. I still experienced that issue with the shoutbox without Aeva running or even in the smf files.
@LadyChaos,
Some people are having issues with the shoutobox. Do you have any BBC mods installed? Like the AEVA mod. Does the shoutbox work if you uninstall them?
I had a thought about it possibly being the shoutbox and disabled it and now all is well. I just don't use the shoutbox. I had a similar issue happen with the AJAX chat mod a while back, I stopped using that as well. It just seems to cause a huge server load which I can't really find the cause for since my forum is small and only members can use the shoutbox (or back then the Ajax Chat).
It could just be that my server (since it's private) can't run a chat or shoutbox simply because of the heavy reliance between server/user calls for each message sent. Performance gets shot to crap.
How many chats do your users post? The shoutbox isn't that server intensive, so I don't think its an issue with performance.
Quote from: Nathaniel on October 24, 2009, 04:14:31 AMWell basically all was well ( for a least a month or so after install) then the shoutbox decided to go haywire out of the blue. So I would say it was a one time occurrence. It could be possible that someone was auto refreshing too much and froze it up, but then when I uninstalled/reinstalled, the shoutbox was doing the same thing. Hence why I decided to delete it.
@LadyChaos,
20-30 per day isn't really that many shouts, I was thinking that you might have performance issues with say 10+ per minute. Although if your users constantly refresh, or you have the autorefresh turned on, then that would put performance down quite a bit.
Is your issue happening frequently or constantly? If constantly, then performance is an unlikely cause.
Quote from: FFSFFS on October 24, 2009, 06:33:32 PM
I updated my board and ever since then each time I try to edit SimplePortal through the administrator, I get this error:
"Fatal error: adminmain() [function.require]: Failed opening required '/home/blizz/public_html/forum/Sources/SPortalAdmin2.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/blizz/public_html/forum/Sources/Admin.php on line 624"
any clue whats wrong?
awesome mod btw!
Quote from: Nathaniel on October 23, 2009, 08:58:43 PMQuote from: Kimmie on October 23, 2009, 08:50:25 PMQuote from: Nathaniel on October 23, 2009, 05:47:01 PM
@Kimmie,
Do you have an theme with ID 1? If you go to your list of themes in the admin panel, the theme ID can be seen in the urls (like ";th=id", where id is the relevant theme id).
k I must be missing something because none of mine have that. Only place it shows urls is on the Theme Settings page and there are no id's at the end of them. I also went to Current Theme and there isnt an ID at the end of those urls either.
Wouldnt the Default theme be theme 1?
I didn't mean the url setting, I meant the url being displayed by your browser when you view the admin pages. When you view the settings for a specific theme, it should have "th=id" in the url.
The default theme should be at ID 1.
// Show the [home] button.
echo '<li><a href="', $scripturl, '?action=home">' , $txt[103] , '</a></li>';
// Show the [forum] button.
echo '<li><a href="', $scripturl, '?action=forum">' , $txt['sp-forum'] , '</a></li>';
// Show the [home] button.
echo '<li><a href="', $scripturl, '">' , $txt[103] , '</a></li>';
// Show the [forum] button.
echo '<li><a href="', $scripturl, '?action=forum">' , $txt['sp-forum'] , '</a></li>';
Quote from: PRaDiUS on November 02, 2009, 06:18:18 PM
When I am adding a new block to my portal there is nowhere in advanced display options to make a block display on SMF Media Gallery. Currently the only way I can make a block display on the gallery is if I display it "Everywhere". Is there any way I can fix this? Will you be adding a gallery option to the advanced block display in the future?
Quote from: Eliana Tamerin on November 02, 2009, 08:36:52 PM
You should be able to use the Custom Display Options (Check Advanced after the display option dropdown) and write "~gallery" in the text box. That should display the block on the gallery pages.
Quote from: Nathaniel on November 03, 2009, 12:12:59 AM
@PRaDiUS,
Try '~action|mgallery'.
Quote from: Nathaniel on November 05, 2009, 07:12:25 PMSure :)
@LadyChaos,
Can you post the PHP code? That is likely an issue with the code that you added to the block.
<?php
$ip = "87.98.159.91";
$port = "9042";
$fp = @fsockopen($ip,$port,$errno,$errstr,1);
if (!$fp)
{
$listeners = "0;";
}
else
{
fputs($fp, "GET /7.html HTTP/1.0\r\nUser-Agent: Mozilla\r\n\r\n");
while (!feof($fp))
{
$info = fgets($fp);
}
$split = explode(',', $info);
if ($split[1] == "0" )
{
$listeners = "0";
}
else
{
$listeners = $split[0];
}
}
echo $listeners;
?>
INSERT INTO smf_settings VALUES ('disableTemplateEval', 1);
Quote from: Eliana Tamerin on November 05, 2009, 08:20:22 PMI removed the intro/trailing tags as you suggested right now. Still getting the same errors. :-[
You shouldn't need to post the intro and trailing <?php or ?> codes. Those are automatically inserted by the php block's rendering code.
Quote from: Nathaniel on November 05, 2009, 08:22:48 PMI installed the mod and disabled the eval thing. Here are the error codes I get now.
Okay, so that code doesn't even have 30 lines, I guess it isn't the problem.
The 'eval' message makes it harder to work out where the real issue is, can you disable template eval temporily?
You can 'Disable template eval' via this mod: http://custom.simplemachines.org/mods/index.php?mod=2054 (http://custom.simplemachines.org/mods/index.php?mod=2054)
Or you can run this db query:Code SelectINSERT INTO smf_settings VALUES ('disableTemplateEval', 1);
Quote from: Nathaniel on November 05, 2009, 08:48:33 PMI have 3 in total. I like that disable eval mod, thanks for finding that.
That seems to be an error with a PHP block, although I don't think that its an issue with the code you posted above. Do you have any other PHP blocks?
You can turn the template eval back on.
$ip = "87.98.159.91";
$port = "9042";
$fp = @fsockopen($ip,$port,$errno,$errstr,1);
if (!$fp)
{
$title = "The server is offline ";
}
else
{
fputs($fp, "GET /7.html HTTP/1.0\r\nUser-Agent: Mozilla\r\n\r\n");
while (!feof($fp))
{
$info = fgets($fp);
}
$info = str_replace('</body></html>', "", $info);
$split = explode(',', $info);
if (empty($split[6]) )
{
$title = "The current song is not available ";
}
else
{
$count = count($split);
$i = "6";
while($i<=$count)
{
if ($i > 6)
{
$title .= ", " . $split[$i];
}
else
{
$title .= $split[$i];
}
$i++;
}
}
}
$title = substr($title, 0, -2);
echo $title;
global $db_prefix, $scripturl, $memberContext, $color_profile, $txt;
loadLanguage('Profile');
// Ids of users to exclude. (2,3,4)
$exclude_members = array();
$request = db_query("
SELECT ID_MEMBER
FROM {$db_prefix}members
WHERE is_activated = 1" . (!empty($exclude_members) ? "
AND ID_MEMBER NOT IN (" . implode(',', $exclude_members) . ")" : "") . "
ORDER BY RAND()
LIMIT 1", __FILE__, __LINE__);
list ($member) = mysql_fetch_row($request);
mysql_free_result($request);
if (empty($member))
return 'No members.';
loadMemberData($member);
loadMemberContext($member);
$member_info = $memberContext[$member];
if (empty($modSettings['MemberColorLinkInstalled']) && sp_loadColors($member) !== false)
$member_info['colored_link'] = '<strong><a href="' . $scripturl . '?action=profile;u=' . $member_info['id'] . '" title="' . $txt[92] . ' ' . $member_info['name'] . '">' . $color_profile[$member]['colored_name'] . '</a></strong>';
echo '
<div style="text-align: center; width: %99;">';
// Colored member link.
echo '
', $member_info['colored_link'], '<br />';
// Member title.
if (!empty($member_info['title']))
echo '
', $member_info['title'], '<br />';
// Member group.
if (!empty($member_info['group']))
echo '
', $member_info['group'], '<br />';
else
echo '
', $member_info['post_group'], '<br />';
// Group stars.
echo '
', $member_info['group_stars'], '<br />';
// Member avatar.
if (!empty($member_info['avatar']['image']))
echo '
<br />
', $member_info['avatar']['image'], '<br />';
// Personal text.
if (!empty($member_info['blurb']))
echo '
', $member_info['blurb'], '<br />';
// Online image.
echo '
<img src="', $member_info['online']['image_href'], '" alt="', $member_info['online']['text'], '" /> ', $member_info['online']['text'], '<br />';
// Gender name and image.
if (!empty($member_info['gender']['name']))
echo '
', $member_info['gender']['image'], ' ', $member_info['gender']['name'], '<br />';
echo '
<ul style="list-style-type: none; text-align: left; padding: 0px 0px 0px 5px;">';
// Post count.
echo '
<li><strong>', $txt[21], ':</strong> ', $member_info['posts'], '</li>';
// Location.
if (!empty($member_info['location']))
echo '
<li><strong>', $txt[227], ':</strong> ', $member_info['location'], '</li>';
// Date registered.
echo '
<li><strong>', $txt[233], ':</strong> ', $member_info['registered'], '</li>';
// Last login.
echo '
<li><strong>', $txt['lastLoggedIn'], ':</strong> ', $member_info['last_login'], '</li>';
echo '
</ul>
</div>';
$ip = "87.98.159.91";
$port = "9042";
$fp = @fsockopen($ip,$port,$errno,$errstr,1);
if (!$fp)
{
$title = "The server is offline ";
}
else
{
fputs($fp, "GET /7.html HTTP/1.0\r\nUser-Agent: Mozilla\r\n\r\n");
while (!feof($fp))
{
$info = fgets($fp);
}
$info = str_replace('</body></html>', "", $info);
$split = explode(',', $info);
$title = '';
if (empty($split[6]) )
{
$title = "The current song is not available ";
}
else
{
$count = count($split);
$i = "6";
while($i<$count)
{
if ($i > 6)
{
$title .= ", " . $split[$i];
}
else
{
$title .= $split[$i];
}
$i++;
}
}
}
$title = substr($title, 0, -2);
echo $title;
Quote from: Nathaniel on November 05, 2009, 09:00:09 PMAh I see. I had assumed it was the other code since it didn't pop up those errors until after I added it. Well that was my goof then, still learning php :). Thank you for helping me with fixing it. It works just fine now.
The issues were with the first block, the code below should work:Code Select$ip = "87.98.159.91";
$port = "9042";
$fp = @fsockopen($ip,$port,$errno,$errstr,1);
if (!$fp)
{
$title = "The server is offline ";
}
else
{
fputs($fp, "GET /7.html HTTP/1.0\r\nUser-Agent: Mozilla\r\n\r\n");
while (!feof($fp))
{
$info = fgets($fp);
}
$info = str_replace('</body></html>', "", $info);
$split = explode(',', $info);
$title = '';
if (empty($split[6]) )
{
$title = "The current song is not available ";
}
else
{
$count = count($split);
$i = "6";
while($i<$count)
{
if ($i > 6)
{
$title .= ", " . $split[$i];
}
else
{
$title .= $split[$i];
}
$i++;
}
}
}
$title = substr($title, 0, -2);
echo $title;
You needed to define the $title variable, before you use the .= operator on it.
You also had an 'off-by-one' error with the while loop, arrays are indexed starting at the number "0", there isn't an entry at the index "count($array)" but your code was assuming that there was with the '<=' operator, I changed it to the '<' operator.
Quote from: NaWaR on November 09, 2009, 12:16:58 AMYes! I agree!! It would be a nice feature!
i have a small request please as update for the portal...
can you make a mobile version for the portal.. so when some one will log in using mobile phone he will get the mobile portal..
it will be as new theme or something like that .. and will appear only the most important information or newest posts or something like that ...
REPLACE INTO smf_settings
VALUES ('sp_version', '2.2.2')
Quote from: [SiNaN] on November 09, 2009, 02:25:38 PMThat's too difficult for me. Sorry.
Run this query via phpMyAdmin and try again.Code SelectREPLACE INTO smf_settings
VALUES ('sp_version', '2.2.2')
global $smcFunc, $db_prefix, $modSettings, $sourcedir, $settings, $db_package_log;
global $smcFunc, $db_prefix, $modSettings, $sourcedir, $settings, $db_package_log;
$modSettings['sp_version'] = '2.3.1';
Quote from: Nathaniel on November 03, 2009, 12:12:59 AM
@DragonKith,
You have to download SP 2.3.1, then upload it using the package manager. Then there should be an 'upgrade' option next to the SimplePortal 2.3.1 package in the package list.
@Kimmie,
I am unsure what is going wrong at the moment, the main function seems to work fine. Try upgrading to SP 2.3.1 (if you haven't already) to see if that fixes the issue at all. Otherwise, I can try to debug it on your site.
@PRaDiUS,
Try '~action|mgallery'.
Quote from: ♪ JohnCcCcCc ♫ on November 10, 2009, 05:27:29 PM
Right click the red X and see what image it is trying to load for that icon.
Locate the directory and place the image as needed.
QuoteInstalling this package will perform the following actions: Type Action Description
1. Execute Modification ./index.php Test failed
1. Replace ./index.php Test failed
2. Replace ./index.php Test failed
3. Replace ./index.php Test failed
4. Replace ./index.php Test failed
5. Replace ./index.php Test failed
2. Execute Modification ./SSI.php Test failed
1. Replace ./SSI.php Test failed
2. Replace ./SSI.php Test failed
3. Execute Modification ./Sources/Admin.php Test failed
1. Replace ./Sources/Admin.php Test failed
2. Replace ./Sources/Admin.php Test failed
3. Replace ./Sources/Admin.php Test failed
4. Execute Modification ./Sources/Display.php Test failed
1. Replace ./Sources/Display.php Test failed
5. Execute Modification ./Sources/Help.php Test failed
1. Replace ./Sources/Help.php Test failed
6. Execute Modification ./Sources/Load.php Test failed
1. Replace ./Sources/Load.php Test failed
2. Replace ./Sources/Load.php Test failed
7. Execute Modification ./Sources/ManagePermissions.php Test failed
1. Replace ./Sources/ManagePermissions.php Test failed
2. Replace ./Sources/ManagePermissions.php Test failed
3. Replace ./Sources/ManagePermissions.php Test failed
8. Execute Modification ./Sources/ManageServer.php Test failed
1. Replace ./Sources/ManageServer.php Test failed
9. Execute Modification ./Sources/QueryString.php Test failed
1. Replace ./Sources/QueryString.php Test failed
10. Execute Modification ./Sources/Recent.php Test failed
1. Replace ./Sources/Recent.php Test failed
2. Replace ./Sources/Recent.php Test failed
3. Replace ./Sources/Recent.php Test failed
11. Execute Modification ./Sources/Subs.php Test failed
1. Replace ./Sources/Subs.php Test failed
2. Replace ./Sources/Subs.php Test failed
3. Replace ./Sources/Subs.php Test failed
4. Replace ./Sources/Subs.php Test failed
5. Replace ./Sources/Subs.php Test failed
6. Replace ./Sources/Subs.php Test failed (Ignore Errors)
7. Replace ./Sources/Subs.php Test failed (Ignore Errors)
8. Replace ./Sources/Subs.php Test failed
9. Replace ./Sources/Subs.php Test failed
10. Replace ./Sources/Subs.php Test failed
12. Execute Modification ./Sources/Subs-BoardIndex.php Test failed
1. Replace ./Sources/Subs-BoardIndex.php Test failed
13. Execute Modification ./Sources/Subs-Boards.php Test failed
1. Replace ./Sources/Subs-Boards.php Test failed
14. Execute Modification ./Sources/Who.php Test failed
1. Replace ./Sources/Who.php Test failed
2. Replace ./Sources/Who.php Test failed
3. Replace ./Sources/Who.php Test failed
4. Replace ./Sources/Who.php Test failed
15. Execute Modification ./Themes/default/Display.template.php Test failed
1. Replace ./Themes/default/Display.template.php Test failed
16. Delete File ./PortalStandalone.php
17. Delete File ./Sources/PortalArticles.php
18. Delete File ./Sources/PortalBlocks.php
19. Delete File ./Sources/PortalMain.php
20. Delete File ./Sources/PortalPages.php
21. Delete File ./Sources/PortalShoutbox.php
22. Delete File ./Sources/PortalAdminArticles.php
23. Delete File ./Sources/PortalAdminBlocks.php
24. Delete File ./Sources/PortalAdminMain.php
25. Delete File ./Sources/PortalAdminPages.php
26. Delete File ./Sources/PortalAdminShoutbox.php
27. Delete File ./Sources/Subs-Portal.php
28. Delete File ./Sources/Subs-PortalAdmin.php
29. Delete File ./Themes/default/Portal.template.php
30. Delete File ./Themes/default/PortalArticles.template.php
31. Delete File ./Themes/default/PortalPages.template.php
32. Delete File ./Themes/default/PortalShoutbox.template.php
33. Delete File ./Themes/default/PortalAdmin.template.php
34. Delete File ./Themes/default/PortalAdminArticles.template.php
35. Delete File ./Themes/default/PortalAdminBlocks.template.php
36. Delete File ./Themes/default/PortalAdminPages.template.php
37. Delete File ./Themes/default/PortalAdminShoutbox.template.php
38. Delete File ./Themes/default/PortalGeneric.template.php
39. Delete File ./Themes/default/languages/SPortal.english.php
40. Delete File ./Themes/default/languages/SPortal.english-utf8.php
41. Delete File ./Themes/default/languages/SPortalAdmin.english.php
42. Delete File ./Themes/default/languages/SPortalAdmin.english-utf8.php
43. Delete File ./Themes/default/languages/SPortalHelp.english.php
44. Delete File ./Themes/default/languages/SPortalHelp.english-utf8.php
45. Delete Tree ./Themes/default/images/sp
46. Delete File ./Themes/default/images/admin/configuration.png
47. Delete File ./Themes/default/images/admin/blocks.png
48. Delete File ./Themes/default/images/admin/articles.png
49. Delete File ./Themes/default/images/admin/pages.png
50. Delete File ./Themes/default/images/admin/shoutbox.png
51. Delete File ./Themes/default/css/portal.css
52. Delete File ./Themes/default/css/portal_rtl.css
53. Delete File ./Themes/default/scripts/portal.js
Quote from: arockets on November 12, 2009, 08:53:43 PM
I don't understand what to do with the .tar.gz file.
Quote from: Nathaniel on November 12, 2009, 06:56:32 PM
@Kimmie,
If you used the "Uninstall" option for the latest package that you have listed, then it won't undo the upgrade changes, it will completely uninstall the mod. Delete the old 2.3 package, you don't need to try to uninstall it. Then upload the 2.3.1 package and try to install it.
Quote from: Nathaniel on November 13, 2009, 05:49:23 PM
@Kimmie,
Well, you could ask about how to do things before you rush into them... If you want the SMF package manager to think that a mod is not installed, then open up phpMyAdmin, goto the 'smf_log_packages' table, edit the relevant entry for SimplePortal changing the 'install_state' value to 0. Then you should be able to reinstall it.
Quote from: fmofmpls on November 17, 2009, 09:18:42 PM"Forum" give you just the index
Still couldn't find an option for forum index page only. The advanced options only appeared to offer specific boards. I don't want any of the boards to show the blocks other than the forum idex page only.
// Show the [home] button.
echo '
<a href="', ($modSettings['sp_portal_mode'] == 3 && empty($context['disable_sp']) ? $modSettings['sp_standalone_url'] : $scripturl), '" ' , $current_action == 'home' ? 'class="nav_important"' : '' , '>' , $txt[103] , '</a> |';
// Show the [forum] button.
if (empty($context['disable_sp']) && in_array($modSettings['sp_portal_mode'], array(1, 3)))
echo'
<a href="', $scripturl. ($modSettings['sp_portal_mode'] == 1 ? '?action=forum' : ''), $current_action == 'forum' ? 'class="nav_important"' : '', '>' , $txt['sp-forum'] , '</a> |';
Quoteforumurl/index.phpclass
// Show the [home] button.
echo '
<a href="', $scripturl, '" ' , $current_action == 'home' ? 'class="nav_important"' : '' , '>' , $txt[103] , '</a> |';
Quote<TR>
<TD class=alt2>
<DIV align=center><B>Welcome to the Nation of JOG
</B></DIV><BR>
<DIV align=center>The Nation of JOG, forged over three and a half years ago has been and still continues to be the leader of the gaming world around them We are currently playing on the Playstation 2, Playstation 3, and Xbox 360 video game systems. Our games include Star Wars Battlefront 2, Call of duty 4, and Call of duty Modern Warfare 2. We firmly beleive in teamwork, sportmanship, good attitudes, dedication, loyality, and creating a mature atmosphere for our guest and members.
JOG evaualtes its members and possible recurits based on our <A
href="http://www.nationofjog.com/index.php/topic,52.0.html"
target=_blank>Code of Conduct</A> so please be sure to read it and know it well. Listen to your ranking officers and follow the code. Below, you'll find information on the clan and its individual sectors.
<TABLE border=0 cellSpacing=0 cellPadding=0
width="100%">
<TBODY>
<TBODY>
<TR>
<TD height=38 vAlign=center>
<DIV align=center><STRONG>Nation of Jog</STRONG></DIV></TD>
<TD vAlign=center>
<DIV align=center><STRONG>PS3 - Modern Warfare 2</STRONG></DIV></TD>
<TD vAlign=center>
<DIV align=center><STRONG>PS2 - SWBF2
</STRONG></DIV></TD></TR>
<TR>
<TR>
<TD vAlign=bottom>
<DIV align=center><IMG
src="http://www.psnforums.com/images1/logo1.png"></DIV></TD>
<TD vAlign=bottom>
<DIV align=center><IMG title="Modern Warfare 2 PS3"
alt="Photo Gallery"
src="http://www.psnforums.com/images1/mw2.png"></DIV></TD>
<TD vAlign=center>
<DIV align=center><IMG
src="http://www.psnforums.com/images1/swbf2.png"></DIV></TD></TR>
<TR>
<TD height=57 vAlign=top width="33%">
<DIV align=center><A
href="http://www.nationofjog.com/index.php/topic,52.0.html">Code
of Conduct </A><BR><A
href="http://www.nationofjog.com/index.php/topic,887.0.html">
Ranks</A><BR><A
href="http://www.nationofjog.com/index.php/topic,1940.0.html">JOG
Roster</A><BR><A
href="http://www.nationofjog.com/index.php/topic,207.0.html">Government'</A><BR><A
href="http://www.nationofjog.com/index.php?action=forum">Forums</A></DIV></TD>
<TD vAlign=top width="33%">
<DIV align=center><A
href="http://www.nationofjog.com/index.php/board,34.0.html">Recruiting Center
</A><BR><A
href="http://www.nationofjog.com/index.php/topic,1943.msg23080/topicseen.html#new">MW2 Roster</A><BR><A
href="http://www.nationofjog.com/index.php/board,20.0.html">MW2 Forum
</A><BR><A
href="http://www.nationofjog.com/chat/index.php">Chat Room</A><BR><A
href="XXXXXXX">TBA</A></DIV></TD>
<TD vAlign=top width="33%">
<DIV align=center><A
href="http://www.nationofjog.com/index.php/board,32.0.html">Recruiting Center
</A><BR><A
href="http://www.nationofjog.com/index.php/topic,1944.0.html">SWBF2 Roster
</A><BR><A
href="http://www.nationofjog.com/index.php/board,19.0.html">SWBF2 Forum
</A><BR><A
href="http://www.nationofjog.com/chat/index.php">Chat Room</A><BR><A
href="XXXXXXXXX">TBA</A></DIV></TD>
</A></DIV></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></DIV>
<DIV style="PADDING-BOTTOM: 15px">
<TABLE class=tborder border=0 cellSpacing=1 cellPadding=6
width="100%" align=center>
<THEAD>
<TR>
2965: echo '
2966: <tr>
2967: <td class="sp_shop">
2968: ', $item['image'], '
2969: </td>
==>2970: <td class="sp_shop_info', $item_count != ++$count ? ' sp_shop_divider' : '', '">
2971: <strong>', $item['name'], '</strong><br />
2972: ', $txt['shop_price'], ': ', $item['price'], '<br />
2973: ', $context['user']['money'] < $item['price'] ? sprintf($txt['shop_need'], formatMoney($item['price'] - $context['user']['money'])) : $item['link'], '
2974: </td>
2975: </tr>';
2976:
2977: echo
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.3; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; MEGAUPLOAD 3.0; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; yie8)
Timestamp: Mon, 30 Nov 2009 06:06:42 UTC
Message: 'getElementsByTagName(...).0' is null or not an object
Line: 95
Char: 2
Code: 0
URI: http://****/Themes/default/portal.js?23b1
Quote from: Pentaxian on November 09, 2009, 11:30:03 AM
Trying to (re)install today in 2.0 RC2 I get:
Database error
Unknown column 'content' in 'field list'
File: ..../install2.php
Line: 967
Quote from: Kreator on December 02, 2009, 10:09:07 AMYou could also try their website, if you haven't yet. Some useful info and some support over there as well.
Funny nobody seems to reply to this thread? .....only those that want answers to their problems!
Quote from: sattninja on December 02, 2009, 10:07:54 PM
i love this but where or how do you get to the forums can you add a button on top for the forums
// Show the [home] button.
echo '<li', $current_action == 'home' ? ' class="current"' : '', '><a href="', $scripturl, '"><b>' , $txt[103] , '</b></a></li>';
// Show the [Forum] button.
echo '<li', $current_action == 'Forum' ? ' class="current"' : '', '><a href="', $scripturl, '?action=Forum"><b>' , $txt[103] , '</b></a></li>';
// Show the [Forum] button.
echo '<li', $current_action == 'Forum' ? ' class="current"' : '', '><a href="', $scripturl, '?action=Forum"><b>' , $txt 'forum' , '</b></a></li>';
Illegal mix of collations (utf8_unicode_ci,IMPLICIT) and (utf8_general_ci,IMPLICIT) for operation 'ifnull'
Line: 1293
Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.11, while your database is at version 1.1.6. The above error might possibly go away if you execute the latest version of upgrade.php.
Structure
SQL
Search
Query
Export
Import
Operations
Table Action Records Type Collation Size Overhead
smf_ajaxchat_bans 0 MyISAM utf8_bin 1.0 KiB -
smf_ajaxchat_invitations 0 MyISAM utf8_bin 1.0 KiB -
smf_ajaxchat_messages 0 MyISAM utf8_bin 1.0 KiB -
smf_ajaxchat_online 0 MyISAM utf8_bin 1.0 KiB -
smf_ajaxshout_bans 0 MyISAM utf8_bin 1.0 KiB -
smf_ajaxshout_invitations 0 MyISAM utf8_bin 1.0 KiB -
smf_ajaxshout_messages 0 MyISAM utf8_bin 1.0 KiB -
smf_ajaxshout_online 0 MyISAM utf8_bin 1.0 KiB -
smf_arcade_categories 4 MyISAM utf8_unicode_ci 2.1 KiB -
smf_arcade_favorite 4 MyISAM utf8_unicode_ci 2.1 KiB -
smf_arcade_gameofday 119 MyISAM utf8_unicode_ci 5.5 KiB -
smf_arcade_games 155 MyISAM utf8_unicode_ci 39.5 KiB -
smf_arcade_personalbest 113 MyISAM utf8_unicode_ci 11.9 KiB -
smf_arcade_rates 1 MyISAM utf8_unicode_ci 2.0 KiB -
smf_arcade_scores 142 MyISAM utf8_unicode_ci 18.2 KiB -
smf_articles 1 MyISAM utf8_unicode_ci 2.1 KiB -
smf_articles_attachments 0 MyISAM utf8_unicode_ci 1.0 KiB -
smf_articles_cat 3 MyISAM utf8_unicode_ci 2.2 KiB -
smf_articles_catperm 0 MyISAM utf8_unicode_ci 1.0 KiB -
smf_articles_comment 0 MyISAM utf8_unicode_ci 1.0 KiB -
smf_articles_creport 0 MyISAM utf8_unicode_ci 1.0 KiB -
smf_articles_page 1 MyISAM utf8_unicode_ci 24.1 KiB -
smf_articles_rating 8 MyISAM utf8_unicode_ci 2.1 KiB -
smf_attachments 191 MyISAM utf8_unicode_ci 27.0 KiB -
smf_ban_groups 6 MyISAM utf8_unicode_ci 2.3 KiB -
smf_ban_items 10 MyISAM utf8_unicode_ci 3.3 KiB -
smf_boards 6 MyISAM utf8_unicode_ci 6.8 KiB -
smf_board_permissions 103 MyISAM utf8_unicode_ci 6.2 KiB -
smf_buddies 0 MyISAM utf8_unicode_ci 1.0 KiB -
smf_buy_items 1 MyISAM utf8_unicode_ci 2.0 KiB -
smf_calendar 0 MyISAM utf8_unicode_ci 1.0 KiB -
smf_calendar_holidays 167 MyISAM utf8_unicode_ci 11.0 KiB -
smf_categories 6 MyISAM utf8_unicode_ci 2.2 KiB -
smf_collapsed_categories 4 MyISAM utf8_unicode_ci 2.0 KiB -
smf_down_cat 2 MyISAM utf8_unicode_ci 2.1 KiB -
smf_down_catperm 2 MyISAM utf8_unicode_ci 2.0 KiB -
smf_down_comment 0 MyISAM utf8_unicode_ci 1.0 KiB -
smf_down_creport 0 MyISAM utf8_unicode_ci 1.0 KiB -
smf_down_custom_field 0 MyISAM utf8_unicode_ci 1.0 KiB -
smf_down_custom_field_data 0 MyISAM utf8_unicode_ci 1.0 KiB -
smf_down_file 1 MyISAM utf8_unicode_ci 2.1 KiB -
smf_down_groupquota 1 MyISAM utf8_unicode_ci 2.0 KiB -
smf_down_rating 0 MyISAM utf8_unicode_ci 1.0 KiB -
smf_down_report 0 MyISAM utf8_unicode_ci 1.0 KiB -
smf_down_userquota 1 MyISAM utf8_unicode_ci 2.0 KiB -
smf_feedbot 1 MyISAM utf8_unicode_ci 2.1 KiB -
smf_feedbot_log 0 MyISAM utf8_unicode_ci 1.0 KiB -
smf_gallery_cat 3 MyISAM utf8_unicode_ci 2.2 KiB -
smf_gallery_comment 4 MyISAM utf8_unicode_ci 2.3 KiB -
smf_gallery_pic 14 MyISAM utf8_unicode_ci 4.0 KiB -
smf_gallery_report 0 MyISAM utf8_unicode_ci 1.0 KiB -
smf_log_actions 45 MyISAM utf8_unicode_ci 7.7 KiB -
smf_log_activity 155 MyISAM utf8_unicode_ci 12.3 KiB -
smf_log_banned 0 MyISAM utf8_unicode_ci 1.0 KiB -
smf_log_boards 211 MyISAM utf8_unicode_ci 7.1 KiB -
smf_log_errors 1 MyISAM utf8_unicode_ci 5.3 KiB -
smf_log_floodcontrol 1 MyISAM utf8_unicode_ci 2.1 KiB -
smf_log_karma 0 MyISAM utf8_unicode_ci 1.0 KiB -
smf_log_mark_read 24 MyISAM utf8_unicode_ci 2.2 KiB -
smf_log_notify 106 MyISAM utf8_unicode_ci 5.0 KiB -
smf_log_online 2 MyISAM utf8_unicode_ci 5.9 KiB 1.5 KiB
smf_log_polls 24 MyISAM utf8_unicode_ci 2.2 KiB -
smf_log_search_messages 0 MyISAM utf8_unicode_ci 1.0 KiB -
smf_log_search_results 30 MyISAM utf8_unicode_ci 2.4 KiB -
smf_log_search_subjects 2,010 MyISAM utf8_unicode_ci 100.3 KiB -
smf_log_search_topics 0 MyISAM utf8_unicode_ci 1.0 KiB -
smf_log_topics 2,329 MyISAM utf8_unicode_ci 86.0 KiB -
smf_membergroups 8 MyISAM utf8_unicode_ci 3.4 KiB -
smf_members 70 MyISAM utf8_unicode_ci 28.4 KiB -
smf_messages 1,965 MyISAM utf8_unicode_ci 1.0 MiB -
smf_message_icons 12 MyISAM utf8_unicode_ci 3.3 KiB -
smf_mgallery_albums 0 MyISAM utf8_unicode_ci 1.0 KiB -
smf_mgallery_comments 0 MyISAM utf8_unicode_ci 1.0 KiB -
smf_mgallery_fields 0 MyISAM utf8_unicode_ci 1.0 KiB -
smf_mgallery_field_data 0 MyISAM utf8_unicode_ci 1.0 KiB -
smf_mgallery_files 4 MyISAM utf8_unicode_ci 2.2 KiB -
smf_mgallery_log_media 0 MyISAM utf8_unicode_ci 1.0 KiB -
smf_mgallery_log_ratings 0 MyISAM utf8_unicode_ci 1.0 KiB -
smf_mgallery_media 0 MyISAM utf8_unicode_ci 1.0 KiB -
smf_mgallery_perms 0 MyISAM utf8_unicode_ci 1.0 KiB -
smf_mgallery_quotas 0 MyISAM utf8_unicode_ci 1.0 KiB -
smf_mgallery_settings 79 MyISAM utf8_unicode_ci 6.3 KiB -
smf_mgallery_variables 1 MyISAM utf8_unicode_ci 2.0 KiB -
smf_moderators 0 MyISAM utf8_unicode_ci 1.0 KiB -
smf_package_servers 2 MyISAM utf8_unicode_ci 2.1 KiB -
smf_permissions 192 MyISAM utf8_unicode_ci 11.5 KiB -
smf_personal_messages 167 MyISAM utf8_unicode_ci 66.0 KiB -
smf_picture_comments 0 MyISAM utf8_general_ci 1.0 KiB -
smf_pm_recipients 516 MyISAM utf8_unicode_ci 28.1 KiB -
smf_polls 4 MyISAM utf8_unicode_ci 2.3 KiB -
smf_poll_choices 32 MyISAM utf8_unicode_ci 2.7 KiB -
smf_profile_albums 0 MyISAM utf8_general_ci 1.0 KiB -
smf_profile_comments 0 MyISAM utf8_general_ci 1.0 KiB -
smf_profile_pictures 0 MyISAM utf8_general_ci 1.0 KiB -
smf_sessions 7 MyISAM utf8_unicode_ci 25.2 KiB 16.6 KiB
smf_settings 416 MyISAM utf8_unicode_ci 24.7 KiB -
smf_shop_categories 0 MyISAM utf8_unicode_ci 1.0 KiB -
smf_shop_inventory 2 MyISAM utf8_unicode_ci 2.0 KiB -
smf_shop_items 13 MyISAM utf8_unicode_ci 3.2 KiB -
smf_smileys 80 MyISAM utf8_unicode_ci 4.7 KiB -
smf_sp_articles 1 MyISAM utf8_general_ci 2.0 KiB -
smf_sp_blocks 21 MyISAM utf8_general_ci 7.4 KiB -
smf_sp_categories 2 MyISAM utf8_general_ci 2.1 KiB -
smf_sp_functions 29 MyISAM utf8_general_ci 2.6 KiB -
smf_sp_pages 0 MyISAM utf8_general_ci 1.0 KiB -
smf_sp_parameters 31 MyISAM utf8_general_ci 16.7 KiB -
smf_sp_shoutboxes 1 MyISAM utf8_general_ci 2.2 KiB -
smf_sp_shouts 0 MyISAM utf8_general_ci 1.0 KiB -
smf_themes 296 MyISAM utf8_unicode_ci 25.9 KiB -
smf_topics 327 MyISAM utf8_unicode_ci 42.5 KiB -
smf_welcome 1 MyISAM utf8_unicode_ci 2.1 KiB -
111 table(s) Sum 10,291 MyISAM utf8_unicode_ci 1.8 MiB 18.1 KiB
Check All / Uncheck All / Check tables having overhead With selected: Empty Drop Print view Check table Optimize table Repair table Analyze table
Quote from: airric00 on December 10, 2009, 01:17:55 AM
Anyone know of a good place to borrow some basic html to design my simple portal home page? I love simple portal but want to customize it a bit... Does it have to be in html or can I use a css templete as well? New to this..
Quoteits due , change it to '| ' (without quotes)
<operation>
<search position="replace"><![CDATA[ // Show the [home] button.
echo ($current_action=='home' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'home' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '">' , $txt[103] , '</a>
</td>' , $current_action == 'home' ? '<td class="maintab_active_' . $last . '"> </td>' : '';]]></search>
<add><![CDATA[ // Show the [home] button.
echo ($current_action=='home' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'home' ? 'active_back' : 'back' , '">
<a href="', ($modSettings['sp_portal_mode'] == 3 && empty($context['disable_sp']) ? $modSettings['sp_standalone_url'] : $scripturl), '">' , $txt[103] , '</a>
</td>' , $current_action == 'home' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
// Show the [forum] button.
if (empty($context['disable_sp']) && in_array($modSettings['sp_portal_mode'], array(1, 3)))
echo ($current_action=='forum' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'forum' ? 'active_back' : 'back' , '">
<a href="', $scripturl . ($modSettings['sp_portal_mode'] == 1 ? '?action=forum' : ''), '">', empty($txt['sp-forum']) ? 'Forum' : $txt['sp-forum'], '</a>
</td>' , $current_action=='forum' ? '<td class="maintab_active_' . $last . '"> </td>' : '';]]></add>
</operation>
Quote from: BrianVB on December 21, 2009, 01:14:39 PM
I think if tinyportal beta 5 is there i will upgrade to it, it has a download system integrated
Quote from: Eliana Tamerin on December 23, 2009, 07:36:12 AM
Uncheck Disable Portal Redirection in General Settings.
Quote from: Eliana Tamerin on December 23, 2009, 08:10:52 PMThat's what I was wondering. Alright thanks.
The [html] tag is probably not going to work well on a BBC block anyways. If you need HTML, you're far better off using the Custom HTML block.
Quote from: infyquest on December 24, 2009, 09:06:40 AM
shoutbox thats in simpleportal slowing the server down. making cpu usage go 100%.
Quote from: Eliana Tamerin on December 28, 2009, 08:05:31 PMSorry it was a SMF4iPHone mod. When I click "Switch to iPhone" this is what happens. Uninstall and deleted it. Working fine now. SimplePortal FTW!!
Looks like you're using AEVA. You'll need to consult with that mod's readme/author to go about restricting video dimensions.
Quote
Warning: require_once(/home/content/j/o/h/johnnyskid/html/republicpostnet/Sources/Subs-Portal.php) [function.require-once]: failed to open stream: No such file or directory in /home/content/j/o/h/johnnyskid/html/republicpostnet/index.php on line 67
Fatal error: require_once() [function.require]: Failed opening required '/home/content/j/o/h/johnnyskid/html/republicpostnet/Sources/Subs-Portal.php' (include_path='.:/usr/local/php5/lib/php') in /home/content/j/o/h/johnnyskid/html/republicpostnet/index.php on line 67
Quote from: psynx on January 20, 2010, 03:30:30 AM
hello,
after installing the simple portal mods i got an error message.
An Error Has Occurred!
after the mods redirect me to the simple portal admin settings page.
admin settings, blocks and etc., not appearing on admin panel.
global $sourcedir, $user_info, $ID_MEMBER, $context, $txt, $galurl, $galurl2, $scripturl, $settings, $db_prefix;
loadLanguage('Aeva');
@include_once($sourcedir . '/Aeva-Subs.php');
echo aeva_listItems(aeva_getMediaItems(0, 2, 'RAND()'), false, '', 2);
Quote from: Brack1 on January 21, 2010, 01:27:42 AM
The smf media gallery has been integrated with the aeva mod to make the aeva media mod.
The code I found is as follows which must be placed into a php block
Remember to experiment with the numbers thoughCode Select
global $sourcedir, $user_info, $ID_MEMBER, $context, $txt, $galurl, $galurl2, $scripturl, $settings, $db_prefix;
loadLanguage('Aeva');
@include_once($sourcedir . '/Aeva-Subs.php');
echo aeva_listItems(aeva_getMediaItems(0, 2, 'RAND()'), false, '', 2);
Quote from: psynx on January 21, 2010, 09:51:32 AM
thanks a lot.
by the way, i have other more concern.
how do i center the title appearing on blocks?
Quote from: Dismal Shadow on January 10, 2010, 01:00:18 PMGuess it's not possible...
Any idea how to get the "News" to fade in SP?
Quote from: Dismal Shadow on January 22, 2010, 03:17:20 AMQuote from: Dismal Shadow on January 10, 2010, 01:00:18 PMGuess it's not possible...
Any idea how to get the "News" to fade in SP?
Quote from: Jaymjaym on January 18, 2010, 03:33:40 PM
Having some issues installing the portal; it appears to install cleanly, but when it redirects to action=manageportal, I get "An Error Has Occurred!".
Error log says:
8: Undefined index: cannot_sp_manage_settings
File: /home/XXXXX/public_html/forums/Sources/Errors.php
Other mods installed:
Stars And Badges 2.1
SMF Arcade 2.0.18
Custom BBCode 2.00
Tar Game Uploader 1.0
Quote from: frosted on January 23, 2010, 03:18:37 AM
ok well i basically blew 5 moths worth wor organizing the site in all of 3 seconds... is there ne ways someone can help me fix my site work work correctly with this mod.. at first it was just a line error then when i went to fix it. i made it worse now im just exhasted and have spent hourse trying to fix it.. even just a walk thru or a second pair of eyes to help me find my mistake would be appreiciated
Quote from: frosted on January 26, 2010, 01:52:16 AM
ok well this mod is the only one i have installed.. is ne one else having problems with the topics?
www.klawgaming.com (http://www.klawgaming.com)
for me i can get to the forum page but when i try and get to a sub topic. (child of) it gives me a blank page with nothing on it but the banner
Quote from: CrisisX on January 26, 2010, 11:28:05 PM
If my page ID is "one" what is my page URL?
19c9052f64ca52d6af6f5535b5069f9a
http://www.***.co.uk/index.php?topic=298.msg2774;topicseen
8: Undefined index: description
File: /home/*****/public_html/******.co.uk/Themes/default/languages/MGallery.english.php (portal_above sub template - eval?)
Line: 64
Quote from: rgecy on February 04, 2010, 03:56:46 AM
I am having a problem with Recent Gallery Images not showing. They showed for the first few times I viewed the portal but now they are not showing at all.
I have the new Aeva Media mod installed.
Quote from: flamechica on February 01, 2010, 02:18:23 AM
I've always used a premium ShoutMix Shoutbox on my forum due to several features that they offer. InSMF 1.1.11, I placed the shoutbox in a custom PHP block and it worked great. Now that I am using SMF 2.0 RC2, I placed the same code into a custom PHP block and it keeps telling me that there is a syntax error in the block code. Any help would be greatly appreciated. The code I used is this (the things in bold I edited out for my privacy):
global $context;
if ($context['user']['is_guest'])
{
echo 'You are not allowed to view shoutbox!';
return;
}
$unique_code = 'CODEHERE';
$url_vars = htmlspecialchars('&name=' . rawurlencode($context['user']['name']) . '&code=' . md5($context['user']['name'] . $unique_code));
echo '
<iframe title="SBName" src="SBURL', $url_vars, '" width="200" height="400" frameborder="0" scrolling="auto">
<a href="SBURL">View shoutbox</a>
</iframe>';
Quote from: Royalduke on February 04, 2010, 05:37:08 PM
Ad management mod is perfect.
QuoteWebpage error details
Message: Invalid argument.
Line: 1
Char: 1
Code: 0
URI: http://forums.sideimagingsoft.com/index.php
Message: Object doesn't support this property or method
Line: 1
Char: 1
Code: 0
URI: http://forums.sideimagingsoft.com/index.php
Quotehttp://xxx/index.php?action=portal;sa=shoutbox;shoutbox_id=1;time=0;xml
8: Undefined index: aeva_gallery
Ficheiro: /home/xxx/public_html/Sources/Subs.php
Linha: 4037
Quote from: tbk22 on February 06, 2010, 07:49:05 AM
I am getting a lot of errors in error log now that I installed AEVA Gallery and Simple PortalQuotehttp://xxx/index.php?action=portal;sa=shoutbox;shoutbox_id=1;time=0;xml
8: Undefined index: aeva_gallery
Ficheiro: /home/xxx/public_html/Sources/Subs.php
Linha: 4037
Quote from: rgecy on February 06, 2010, 10:16:38 PMYes... go to simpleportal and search for "aeva media".. you'll find some posts explaining what to do! ;)
I have the Aeva Media 1.0 mod installed and Simple Portal is saying that "There are no gallery mods installed. "
Any ideas on a fix?
Quote from: MultiformeIngegno on February 07, 2010, 03:35:58 AMI have the same problem, yet dont understand what you mean by "search for aeva media"Quote from: rgecy on February 06, 2010, 10:16:38 PMYes... go to simpleportal and search for "aeva media".. you'll find some posts explaining what to do! ;)
I have the Aeva Media 1.0 mod installed and Simple Portal is saying that "There are no gallery mods installed. "
Any ideas on a fix?
Quote from: The_Wii_Nes_Boy on February 10, 2010, 04:07:15 AM
I set up a V.I.P member goup but I can't seem to hide blocks from them, I have two blocks set up for ads and I want to be able to hide these 2 blcoks from V.I.P's. Tried everything and I'm now at my wits end.
Any help would be appreciated
thanks in advance
Quote from: adbrad on February 10, 2010, 05:08:11 AMThats fantastic, was just me being stupid and unticking ALL the boxes lol. Sorted nowQuote from: The_Wii_Nes_Boy on February 10, 2010, 04:07:15 AM
I set up a V.I.P member goup but I can't seem to hide blocks from them, I have two blocks set up for ads and I want to be able to hide these 2 blcoks from V.I.P's. Tried everything and I'm now at my wits end.
Any help would be appreciated
thanks in advance
go to modify block, under block permissions untick your vip group you may need to untick your post based groups as well and make sure permission settings has one membergroup selected
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; MDDC; InfoPath.2)
Timestamp: Sun, 14 Feb 2010 05:55:32 UTC
Message: Invalid argument.
Line: 1
Char: 1
Code: 0
URI: http://forums.sideimagingsoft.com/index.php
Message: Object doesn't support this property or method
Line: 1
Char: 1
Code: 0
URI: http://forums.sideimagingsoft.com/index.php
Guest
72.56.74.208
Today at 09:41:42 PM
f19a11ac93058be05dc55c8f15bb63db
Type of error: Undefined
http://forums.sideimagingsoft.com/index.php?action=dlattach;topic=678.0;attach=1406;image8: Undefined index: is_guestFile: /home/content/r/g/e/rgecy1/html/forums/Sources/Subs-Portal.php
Line: 257
Guest
72.56.74.208
Today at 09:41:42 PM
f19a11ac93058be05dc55c8f15bb63db
Type of error: Undefined
http://forums.sideimagingsoft.com/index.php?action=dlattach;topic=678.0;attach=1406;image8: Undefined index: session_idFile: /home/content/r/g/e/rgecy1/html/forums/Sources/Subs-Portal.php
Line: 203
Guest
72.56.74.208
Today at 09:41:42 PM
f19a11ac93058be05dc55c8f15bb63db
Type of error: Undefined
http://forums.sideimagingsoft.com/index.php?action=dlattach;topic=678.0;attach=1406;image8: Undefined index: is_guestFile: /home/content/r/g/e/rgecy1/html/forums/Sources/Subs-Portal.php
Line: 201
Guest
72.56.74.208
Today at 09:41:42 PM
f19a11ac93058be05dc55c8f15bb63db
Type of error: Undefined
http://forums.sideimagingsoft.com/index.php?action=dlattach;topic=678.0;attach=1406;image8: Undefined index: session_idFile: /home/content/r/g/e/rgecy1/html/forums/Sources/Subs-Portal.php
Line: 190
Guest
72.56.74.208
Today at 09:41:42 PM
f19a11ac93058be05dc55c8f15bb63db
Type of error: Undefined
http://forums.sideimagingsoft.com/index.php?action=dlattach;topic=678.0;attach=1406;image8: Undefined index: is_guestFile: /home/content/r/g/e/rgecy1/html/forums/Sources/Subs-Portal.php
Line: 182
Guest
72.56.74.208
Today at 09:41:42 PM
f19a11ac93058be05dc55c8f15bb63db
Type of error: Undefined
http://forums.sideimagingsoft.com/index.php?action=dlattach;topic=678.0;attach=1406;image8: Undefined index: right_to_leftFile: /home/content/r/g/e/rgecy1/html/forums/Sources/Subs-Portal.php
Line: 105
Guest
72.56.74.208
Today at 09:41:42 PM
f19a11ac93058be05dc55c8f15bb63db
Type of error: Undefined
http://forums.sideimagingsoft.com/index.php?action=dlattach;topic=678.0;attach=1406;image8: Undefined index: html_headersFile: /home/content/r/g/e/rgecy1/html/forums/Sources/Load.php
Line: 1820
Guest
72.56.74.208
Today at 09:41:42 PM
f19a11ac93058be05dc55c8f15bb63db
Type of error: Undefined
http://forums.sideimagingsoft.com/index.php?action=dlattach;topic=678.0;attach=1406;image8: Undefined index: html_headersFile: /home/content/r/g/e/rgecy1/html/forums/Sources/Load.php
Line: 1814
Guest
72.56.74.208
Today at 09:41:42 PM
f19a11ac93058be05dc55c8f15bb63db
Type of error: Undefined
http://forums.sideimagingsoft.com/index.php?action=dlattach;topic=678.0;attach=1406;image8: Undefined index: is_adminFile: /home/content/r/g/e/rgecy1/html/forums/Themes/default/languages/SPortal.english.php
Line: 119
$x = rand(1000000, 70000000);
$m = date(n);
$d = date(j);
$sum = $m + $d - 1;
$mod = $sum % 5;
$bingo = 7 * $x + $mod;
print "<b>$bingo</b>";
Quote8: Use of undefined constant n - assumed 'n'
File: C:\wamp\www\web\forum\smf\Themes\As_theme\MessageIndex.template.php (portal_below sub template - eval?)
Line: 2Database Error: Table 'products.smf_sessions' doesn't exist
File: C:\wamp\www\web\forum\smf\Sources\Load.php
Line: 2298
Database Error
Unknown column 'p.ID_BOARD' in 'field list'
File: /nfsn/content/thewormhole/public/forum/SSI.php
Line: 908
"GET /index.php?action=admin;area=packages;sa=uninstall;package=SimplePortal_2.3.1.tar.gz;pid=48 HTTP/1.1" 500 -
Quote from: smoooth on February 24, 2010, 02:17:39 PM
I added EVERYTHING and nothing changed?
Quote from: txcas on March 08, 2010, 07:44:25 PM
Is SMF 2.0 RC3 supported?
Quote from: smp420 on March 08, 2010, 10:15:13 PM
It works on RC3 actually I think most mods do just click on advanced at the bottom of package manager and emulate rc2.
Quote from: [SiNaN] on March 09, 2010, 06:15:22 AM
SimplePortal 2.3.1 works perfectly fine with SMF 2.0 RC3. Just emulate the Package Manager version to SMF 2.0 RC2 and you can install and use it without any issues.
Quote from: [SiNaN] on March 09, 2010, 06:15:22 AM
SimplePortal 2.3.1 works perfectly fine with SMF 2.0 RC3. Just emulate the Package Manager version to SMF 2.0 RC2 and you can install and use it without any issues.
Quote from: delayed_1 on March 09, 2010, 03:20:46 PM
Hi, First, I love your portal system. I just upgraded to RC3 and downloaded your 2.3.1.tar from the packages list. tried to install and it said corrupted or not compatible with version. I retried to DL it and reinstall but same thing. Will check back later and see if its me or the package. Thanks
Quote from: BlueDevil on March 09, 2010, 03:25:19 PMQuote from: delayed_1 on March 09, 2010, 03:20:46 PM
Hi, First, I love your portal system. I just upgraded to RC3 and downloaded your 2.3.1.tar from the packages list. tried to install and it said corrupted or not compatible with version. I retried to DL it and reinstall but same thing. Will check back later and see if its me or the package. Thanks
Read here: http://www.simplemachines.org/community/index.php?topic=227599.msg2529428#msg2529428
Quote from: mrtrc266 on March 09, 2010, 03:33:27 PMQuote from: BlueDevil on March 09, 2010, 03:25:19 PMQuote from: delayed_1 on March 09, 2010, 03:20:46 PM
Hi, First, I love your portal system. I just upgraded to RC3 and downloaded your 2.3.1.tar from the packages list. tried to install and it said corrupted or not compatible with version. I retried to DL it and reinstall but same thing. Will check back later and see if its me or the package. Thanks
Read here: http://www.simplemachines.org/community/index.php?topic=227599.msg2529428#msg2529428
I had the same thing happen but I think the problem now is that on the Mod Site it says it's been updated but the package-info is not correct.
http://custom.simplemachines.org/mods/index.php?mod=1104
Quote from: BlueDevil on March 09, 2010, 03:37:22 PMQuote from: mrtrc266 on March 09, 2010, 03:33:27 PMQuote from: BlueDevil on March 09, 2010, 03:25:19 PMQuote from: delayed_1 on March 09, 2010, 03:20:46 PM
Hi, First, I love your portal system. I just upgraded to RC3 and downloaded your 2.3.1.tar from the packages list. tried to install and it said corrupted or not compatible with version. I retried to DL it and reinstall but same thing. Will check back later and see if its me or the package. Thanks
Read here: http://www.simplemachines.org/community/index.php?topic=227599.msg2529428#msg2529428 (http://www.simplemachines.org/community/index.php?topic=227599.msg2529428#msg2529428)
I had the same thing happen but I think the problem now is that on the Mod Site it says it's been updated but the package-info is not correct.
http://custom.simplemachines.org/mods/index.php?mod=1104 (http://custom.simplemachines.org/mods/index.php?mod=1104)
Forget what the mod site says,..... it'll still work.
Quote from: mrtrc266 on March 09, 2010, 03:43:56 PMProbably they will update the package-info when they release a new versions... :)
I was just pointing out (to the SP Team) that they forgot to update the package-info. Obviously it was an over site when they update SP for RC3.
Quote from: [SiNaN] on March 10, 2010, 04:11:13 AM
It's not that we forgot it. Just we don't want to update the package at this point, when 2.3.2 version is really close.
Quote from: ShadoWind on March 12, 2010, 06:14:38 AM
I have a problem in that I'm trying to install this in 1.1.11 and it won't install due to the following:
Installing this package will perform the following actions: Type Action Description
1. Execute Modification ./index.php Test failed
2. Execute Modification ./SSI.php Test successful
3. Execute Modification ./Sources/Admin.php Test successful
4. Execute Modification ./Sources/BoardIndex.php Test successful
5. Execute Modification ./Sources/Display.php Test successful
6. Execute Modification ./Sources/Help.php Test successful
7. Execute Modification ./Sources/Load.php Test successful
8. Execute Modification ./Sources/ManagePermissions.php Test successful
9. Execute Modification ./Sources/ManageServer.php Test successful
10. Execute Modification ./Sources/QueryString.php Test successful
11. Execute Modification ./Sources/Recent.php Test successful
12. Execute Modification ./Sources/Subs.php Test successful
13. Execute Modification ./Sources/Who.php Test successful
14. Execute Modification ./Themes/default/index.template.php Test successful
15. Execute Modification ./Themes/default/Display.template.php Test successful
16. Extract File ./PortalStandalone.php
17. Extract Tree ./Sources
18. Extract Tree ./Themes
19. Extract Tree ./Themes/default/languages
20. Extract Tree ./Themes/default/images/sp
21. Extract File ./Themes/default/portal.css
22. Extract File ./Themes/default/portal_rtl.css
23. Extract File ./Themes/default/portal.js
24. Execute Code install1-1.php
As you can see, the test for the other files worked fine.
Is there anything I can do to fix the problem or will I have to wait for a version to come out that's compatible with 1.1.11?
Quote from: Casal on March 12, 2010, 05:07:24 AM
When I activate simpleportal my users cannot enter because the page remains in white
SP. 2.3.1
SMF 1.1.1
Please,help me!!
Quote from: [SiNaN] on March 12, 2010, 08:29:42 AMQuote from: Casal on March 12, 2010, 05:07:24 AM
When I activate simpleportal my users cannot enter because the page remains in white
SP. 2.3.1
SMF 1.1.1
Please,help me!!
Any errors in the Forum Error Log or Server Error Log?
Quote from: casp3r on March 14, 2010, 12:26:43 PM
Dumb question - but how do you emulate an earlier version of smf?
Quote from: johny000 on March 16, 2010, 03:33:34 AM
hello how are you as isee
your saying
Latest Version:2.3.1
Compatible With:1.1.10, 2.0 RC1.2, 2.0 RC2, 2.0 RC3
but want i'm trying to install it in 2.0 rc3 is not working is telling me
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
can you take look at it
Quote from: [SiNaN] on March 09, 2010, 10:51:57 AM
Quoting so that people don't miss:Quote from: [SiNaN] on March 09, 2010, 06:15:22 AM
SimplePortal 2.3.1 works perfectly fine with SMF 2.0 RC3. Just emulate the Package Manager version to SMF 2.0 RC2 and you can install and use it without any issues.
http://docs.simplemachines.org/index.php?topic=94.0#post_adv
Quote from: recived on March 19, 2010, 07:23:27 AM
how to display in the block "Recent attachments" link on the topic, where are they?
Quote from: Studio1031 on March 19, 2010, 08:20:00 AM
it DOES install and works just fine using emulation, but since it claims rc3 compatibility, then it should install without using emulation.
Quote from: [SiNaN] on March 20, 2010, 10:45:33 AM
We didn't want to update the package to fix that very minor issue at this point, because 2.3.2 was almost ready. It will be released very very very soon.
Quote from: [SiNaN] on March 20, 2010, 10:51:08 AM
Not sure what I should understand from that smiley alone, can you elaborate?
SP 2.3.2
================================================================================
! SP erroneously allows guest access.
! sp_shop doesn't define $count variable.
! 'Forum' advanced display option is ignore in standalone mode.
! "Add Article" button shown when Articles disabled.
! "Search engine friendly URLs" support for pages.
! Rename 'Events in Future' setting.
! Some variables are assumed to be loaded by loadTheme. (SMF 2 RC2 only)
! Shoutbox misnamed [font] as [face].
! Shoutbox reverse direction.
! Shoutbox 'update' field is not used.
! Database Installers set a collation for text columns.
! Shoutbox smiley popup display no smileys. - SMF2 only
! Compat mode inconsistant with SMF compat mode.
! Add checking for the $forum variable for compat mode.
! Custom Pages can't swap from BBC type. SMF2 RC2 only
! Pages [1] should not show when there are no articles.
! Direct users to create shoutbox block after creating new shoutbox.
! Incorrect 'no categories' for non-admin when adding an article.
! Article author's membercolor does not appear to author.
! MemberColorLink foreach invalid item error.
! Updated articles and board news block templates for curve. (SMF 2 RC2 only)
! Board News template updated for curve. (SMF 2 RC2 only)
! Outdated permissions for adding and removing articles.
! BoardIndex was getting a no index meta tag when running under "forum" action.
! Removing enabled tags from bbc array caused infinite loops with auto-linking.
+ Add SimplePortal sublink to main menu. (SMF2 only)
! Deprecated 'sp_moderate' permission is still used in some cases.
! Shoutbox creating unused 'can_delete_shout' context variable.
- Removed sp_truncateText() function.
+ Added [cutoff] tag support for board news and articles.
! Incorrect information in Custom Display Options help text.
! Improve shoutbox user name higlight regex to prevent incorrect replaces.
! Portal wouldn't preserve its width on lower resolutions.
! Portal context was overrided by admin block list functions.
! Portal button was incorrectly highlighted on some forum actions.
! Status images titles and alternate texts were incosistent across admin areas.
! Center blocks didn't span whole area on a side collapse.
! Catbg listed twice under "Default Title Class" for blocks and pages. (SMF 2)
! Duplicate 'sp-blocksActive' language string in SPortalAdmin file.
! Forum menu block and block overflow didn't like each other.
! Slight changes to board news and articles templates.
! Better handling style options for page and block templates.
! Added Curve compatibility template for shoutbox history.
! Updated PortalAdmin.template.php file.
! Updated PortalAdminBlocks.template.php file.
! Updated PortalAdminPages.template.php file.
! Updated PortalAdminShoutboxes.template.php file.
! Updated PortalGeneric.template.php file.
! Updated PortalAdminArticles.template.php file.
! Outdated 'sp_portal_mode' help string.
! Added support for SMF 2.0 RC3.
! Changed version boundaries to be more flexible.
! Updated redirect.txt markup.
! Admin menu change failed on SMF 2.0 RC3.
! Updated sp_version version.
! Incorrect class in articles block.
! For some reason, pngfix was still being loaded unnecessarily.
! Added helptext buttons back. (though I still think they are just ugly)
! Some fixes to PortalAdminArticles.template.php file.
! Missing $txt global in category delete function.
! Inline permissions template had some typos.
! setupThemeContext() doubled stuff when called twice for SMF 1.1.
! Some helptexts weren't helpful enough.
! Installer was looking to incorrect directory for index.php.
+ Aeva Media compatibility for Gallery block.
! Blocks had too much padding in SMF 1.1 version.
! WYSIWYG editor was broken.
! Inline permissions template was using incorrect input name.
! Missing comma in sp_showMoreSmileys.
! Smiley code for shoutbox is not escaped for the javascript.
! Incorrect array index for message ids in articles parsing.
! Admins were unable to manage portal when portal mode is set as disabled.
! Side collapse code was unnecessarily loaded when the option is disabled.
! Missing global in settings template.
! Removed a lot of strong elements in new templates for a cleaner look.
+ Automatically fix the path to forum in PortalStandalone.php on install/upgrade.
! Some new XML install instructions were not applied on upgrades.
! Some typos in PortalAdmin.template.php and PortalArticles.template.php files.
! Default disabled tags were not set correctly when all BBC tags are enabled.
Legend:
--------------------------------------------------------------------------------
! Minor change or bugfix.
+ Feature addition or improvement.
- Feature or option removal.
Quote2.4 and that wouldn't take much long to get released as well.
Quote from: replaaa on March 22, 2010, 04:23:03 PM
Smf Rc3 problem... :(
Quote from: Brack1 on March 22, 2010, 04:34:22 PMQuote from: replaaa on March 22, 2010, 04:23:03 PM
Smf Rc3 problem... :(
By this I presume you have tried to install the portal on an RC3 forum.
Install the mod as per normal.
Go to browse packages
below the list of mods should be a link to advanced
Emulate the package to RC2
Install the mod
Quote from: Sakae on March 22, 2010, 06:52:19 PM
I can't parse the MOD on SMF 2.0 RC3.
Quote from: replaaa on March 22, 2010, 05:13:17 PMQuote from: Brack1 on March 22, 2010, 04:34:22 PMQuote from: replaaa on March 22, 2010, 04:23:03 PM
Smf Rc3 problem... :(
By this I presume you have tried to install the portal on an RC3 forum.
Install the mod as per normal.
Go to browse packages
below the list of mods should be a link to advanced
Emulate the package to RC2
Install the mod
Try the above.
3. Execute Modification ./Sources/Admin.php Test failed
1. Replace ./Sources/Admin.php Test failed
2. Replace ./Sources/Admin.php Test successful
3. Replace ./Sources/Admin.php Test successful
Quote from: ACAMS on March 23, 2010, 02:29:34 PM
I have a question!
I don't quiet understand exactly how this works, but I think it makes the front page, and other pages look like the forum theme.....is that correct?
If so, let's say a user chooses one theme and another user chooses another theme, will the front page change with the selected theme?
Quote from: irtiza104 on March 31, 2010, 03:37:10 AMYou have to emulate the rc2
I am using RC3.0. but i am unable to install the portal from the package manager. what should i do? when will you update the portal so that we can install it automatically?
QuoteThe package you are trying to download or install is either corrupt or not compatible with this version of SMF.
Quote from: MultiformeIngegno on April 02, 2010, 03:43:18 AM
Men you're annoying now!! Please read the posts above yours!! You can't pretend a reply when this has been said at least 2000 times!!!! You have to emulate RC2!
Quote from: [SiNaN] on April 02, 2010, 09:12:24 AM
What do you mean by the "board wasn't visible"?
Quote from: [SiNaN] on April 02, 2010, 09:12:24 AMThere was no SimplePortal area to be found in my admin center.
SimplePortal settings can be found under Admin > SimplePortal area.
Quote from: madfitz on April 02, 2010, 09:26:04 AM
Edit: And the answer to my other question? When install is complete do you revert the emulation settings to RC3?
\?(?:' . SID . ';)((?:board|topic
\?(?:' . SID . '(?:;|&|&))((?:board|topic
\?((?:board|topic
Quote from: aw06 on April 02, 2010, 11:27:29 PMI know that. Without RC2 emulation the option to unistall is not even available. I still get errors on the first test on index.php.
You have to remove it after emulating SMF Rc2
Quote from: Bruno36 on April 03, 2010, 06:56:36 AM
Hello!
I have several error messages
In sub.php lines are foundCode Select\?(?:' . SID . ';)((?:board|topic
Code Select\?(?:' . SID . '(?:;|&|&))((?:board|topic
Code Select\?((?:board|topic
The portal is incompatible with Pretty URLs
Quote from: Bruno36 on April 03, 2010, 06:56:36 AM
Hello!
I have several error messages
In sub.php lines are foundCode Select\?(?:' . SID . ';)((?:board|topic
Code Select\?(?:' . SID . '(?:;|&|&))((?:board|topic
Code Select\?((?:board|topic
The portal is incompatible with Pretty URLs
Quote from: txcas on April 02, 2010, 10:54:21 PM
I installed 2.3.1 on RC3 using the RC2 emulation. Now that 2.3.2 is out, I tried to uninstall 2.3.1 and the first test on index.php failed. Since I had a full backup I went ahead with the uninstallation. That completely messed up the site. I had to restore from backup. I also found that when 2.3.2 is downloaded to the site but not installed, the package is marked in red as an old version and you get an option to upgrade but not to install it. How can I safely remove 2.3.1 from RC3 and why is 2.3.2 getting flagged as an old version?
Quote from: aw06 on April 02, 2010, 11:27:29 PM
You have to remove it after emulating SMF Rc2
I Upgraded, but now all my articles have the read more link ???
Quote from: [SiNaN] on April 03, 2010, 11:10:24 AMQuote from: txcas on April 02, 2010, 10:54:21 PM
I installed 2.3.1 on RC3 using the RC2 emulation. Now that 2.3.2 is out, I tried to uninstall 2.3.1 and the first test on index.php failed. Since I had a full backup I went ahead with the uninstallation. That completely messed up the site. I had to restore from backup. I also found that when 2.3.2 is downloaded to the site but not installed, the package is marked in red as an old version and you get an option to upgrade but not to install it. How can I safely remove 2.3.1 from RC3 and why is 2.3.2 getting flagged as an old version?
Are you sure 2.3.2 is flagged as old the version?
To uninstall 2.3.1, you could get a copy of your index.php file; remove the edits made by SimplePortal in that file, using the manual installation instructions on the Mod Site; then uninstall the mod ignoring the errors. And lastly, replace your index.php file with the one you removed the edits from, manually.
Quote from: txcas on April 03, 2010, 01:46:23 PMQuote from: [SiNaN] on April 03, 2010, 11:10:24 AMQuote from: txcas on April 02, 2010, 10:54:21 PM
I installed 2.3.1 on RC3 using the RC2 emulation. Now that 2.3.2 is out, I tried to uninstall 2.3.1 and the first test on index.php failed. Since I had a full backup I went ahead with the uninstallation. That completely messed up the site. I had to restore from backup. I also found that when 2.3.2 is downloaded to the site but not installed, the package is marked in red as an old version and you get an option to upgrade but not to install it. How can I safely remove 2.3.1 from RC3 and why is 2.3.2 getting flagged as an old version?
Are you sure 2.3.2 is flagged as old the version?
To uninstall 2.3.1, you could get a copy of your index.php file; remove the edits made by SimplePortal in that file, using the manual installation instructions on the Mod Site; then uninstall the mod ignoring the errors. And lastly, replace your index.php file with the one you removed the edits from, manually.
Yes it is getting flagged as the old version. Check the attached picture.
Quote from: psynx on April 03, 2010, 10:02:16 PMI already asked you to contact the mod author, as it is not smf related, and not simpleportal related either
please help!
i have smf 1.1.11 and using babylon theme. i also have simple portal mod installed.
i have this white space under my blocks. i don't know how to fix this. it is untidy.
try view my site on different browser, using mozilla no problem at all. but viewing it on IE browser there you see white space under the blocks.
Quote from: Dharshan on April 03, 2010, 11:20:29 PM
upgraded existing 2.3.1 version on my SMF2 RC3, with no problem, you do not need to uninstall 2.3.1, just upload the new package and install it! :)
Quote from: Tiribulus on April 03, 2010, 11:39:08 PMQuote from: Dharshan on April 03, 2010, 11:20:29 PM
upgraded existing 2.3.1 version on my SMF2 RC3, with no problem, you do not need to uninstall 2.3.1, just upload the new package and install it! :)
I don't know man. I'm no expert, but the if the notes to say to uninstall the previous version the honchos must have reasons for including those instructions.
Quote from: [SiNaN] on April 03, 2010, 11:03:36 AM
If you have Pretty URLs mod installed and you get a Test Failed error in Subs.php file; you can ignore the error and install the mod.
Quote from: psynx on April 03, 2010, 10:02:16 PM
please help!
i have smf 1.1.11 and using babylon theme. i also have simple portal mod installed.
i have this white space under my blocks. i don't know how to fix this. it is untidy.
try view my site on different browser, using mozilla no problem at all. but viewing it on IE browser there you see white space under the blocks.
Quote from: Tiribulus on April 03, 2010, 11:39:08 PMQuote from: Dharshan on April 03, 2010, 11:20:29 PM
upgraded existing 2.3.1 version on my SMF2 RC3, with no problem, you do not need to uninstall 2.3.1, just upload the new package and install it! :)
I don't know man. I'm no expert, but the if the notes to say to uninstall the previous version the honchos must have reasons for including those instructions.
Quote from: gisfreak on April 04, 2010, 04:23:46 AMQuote from: [SiNaN] on April 03, 2010, 11:03:36 AM
If you have Pretty URLs mod installed and you get a Test Failed error in Subs.php file; you can ignore the error and install the mod.
any other way........any other plan from SP developer to fix problem ? ::)
Quote from: aussieherps on April 04, 2010, 08:43:01 AM
Have made a page and marked it as active, but it does not show anywhere in the menu.
How do I make the page available?
Quote from: aussieherps on April 04, 2010, 08:43:01 AM
Have made a page and marked it as active, but it does not show anywhere in the menu.
How do I make the page available?
Quote from: rahlzel on April 04, 2010, 11:36:26 PMQuote from: aussieherps on April 04, 2010, 08:43:01 AM
Have made a page and marked it as active, but it does not show anywhere in the menu.
How do I make the page available?
I had the same problem. I just copied its link in the "Pages" section and used it as a redirect board.
I'd be happy to post this bug up on the SimplePortal site, but I can't get past your f*cking CAPTCHA verification image to register. You guys are great with php, but apparently no one at SimplePortal ever read ANY "Web Design Mistakes to Avoid" articles. I noticed you even use it on the Search function. Great way to prevent people from searching for similar bugs before they post theirs (unless it turns off for registered members).
Anyway, I'm using SMF 2.0 RC3 and SimplePortal 2.3.2 and I noticed a bug with the Shoutbox. Currently my Shoutbox is at the top of the "Top Blocks". When I select the "Reverse Order" option, the reverse function works well, but long messages (more than a line.. even more makes it worse) will get cut off just above the timestamp.
Thanks for the great work done on this portal! This one is my favorite.
Quote from: smp420 on April 05, 2010, 12:45:20 AM
This isn't a bug. You have to make a new tab in the menu linking to your page. Search and you will find a how to on this.
Quote from: ACAMS on April 05, 2010, 04:17:05 AM
I am having trouble getting this to work on my modified 2.0 RC2 forum.....it works fine on my unmodified test forum.
I have Member Color Link, Spoiler Tag, Wysiwyg Quick Reply RC2, nCode Image Resizer, Limit Posts Per Day (doesn't work), SMF Arcade mods installed and two themes by Crip installed. I need help getting it working because I have tried about everything I know. It does not change the links to the pages ...IE "Home", "Forum", "Search" And I have modded that too.....could that be the reason?
When I create a page, and copy the link it does not show like on my test forum, but I can probably fix that.
Can somebody help me with this?
I have it disabled now because when it is enabled the front page shows instead of the forum.
Quote from: [SiNaN] on April 03, 2010, 11:03:36 AM
If you have Pretty URLs mod installed and you get a Test Failed error in Subs.php file; you can ignore the error and install the mod.
Quote from: [SiNaN] on April 05, 2010, 04:31:29 AMQuote from: ACAMS on April 05, 2010, 04:17:05 AM
I am having trouble getting this to work on my modified 2.0 RC2 forum.....it works fine on my unmodified test forum.
I have Member Color Link, Spoiler Tag, Wysiwyg Quick Reply RC2, nCode Image Resizer, Limit Posts Per Day (doesn't work), SMF Arcade mods installed and two themes by Crip installed. I need help getting it working because I have tried about everything I know. It does not change the links to the pages ...IE "Home", "Forum", "Search" And I have modded that too.....could that be the reason?
When I create a page, and copy the link it does not show like on my test forum, but I can probably fix that.
Can somebody help me with this?
I have it disabled now because when it is enabled the front page shows instead of the forum.
If you mean you don't have the "Forum" button in the menu; if you are using SMF 1.1 version with a custom theme, you'll need to add the "Forum" button manually. Here's the guide for that:
http://simpleportal.net/index.php?topic=148.0 (http://simpleportal.net/index.php?topic=148.0)
I put a quote tag in and the damn forum deletes it.......
I have a Forum button as always, it just didn't make a Home page button and the forum button leads to the home page.
Quote from: Bruno36 on April 05, 2010, 05:59:31 AMQuote from: [SiNaN] on April 03, 2010, 11:03:36 AM
If you have Pretty URLs mod installed and you get a Test Failed error in Subs.php file; you can ignore the error and install the mod.
Its causes a blank page when I send or respond to a topic ..
Quote from: ACAMS on April 05, 2010, 10:54:36 AM
I put a quote tag in and the damn forum deletes it.......
I have a Forum button as always, it just didn't make a Home page button and the forum button leads to the home page.
QuoteUmmm, where did you get the impression that "it" causes the blank page?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
test
</body>
</html>
<html>
<body>
<?php
echo "Hello World";
?>
</body>
</html>
Quote from: Bruno36 on April 05, 2010, 02:15:23 PMQuoteUmmm, where did you get the impression that "it" causes the blank page?
Good evening!
Yes the problem occurred after installing SimplePortal - 2.3.2
With SimplePortal - 2.3.1 I was not a problem
Quote from: [SiNaN] on April 04, 2010, 06:08:03 AMQuote from: psynx on April 03, 2010, 10:02:16 PM
please help!
i have smf 1.1.11 and using babylon theme. i also have simple portal mod installed.
i have this white space under my blocks. i don't know how to fix this. it is untidy.
try view my site on different browser, using mozilla no problem at all. but viewing it on IE browser there you see white space under the blocks.
IE6 is evil. Fix is here:
http://simpleportal.net/index.php?topic=4326.msg30504#msg30504
One more problem! in mozilla firefox i have scroll bar in my top and bottom blocks when there are messages that are too long, but in IE no scroll bar, all messages are displayed.
look at my site and view it in mozilla and IE,
www.mirc-chatting.isgreat.org
Quote from: ukhalik2 on April 11, 2010, 03:20:14 PM
getting error in installation!
Error in Package Installation
Execute Modification ./Sources/Subs.php Test failed
Quote from: [SiNaN] on April 03, 2010, 11:03:36 AM
If you have Pretty URLs mod installed and you get a Test Failed error in Subs.php file; you can ignore the error and install the mod.
Quote from: adbrad on April 11, 2010, 04:29:54 PMQuote from: ukhalik2 on April 11, 2010, 03:20:14 PM
getting error in installation!
Error in Package Installation
Execute Modification ./Sources/Subs.php Test failed
are you using pretty urls mod if so you can just install as sinan said hereQuote from: [SiNaN] on April 03, 2010, 11:03:36 AM
If you have Pretty URLs mod installed and you get a Test Failed error in Subs.php file; you can ignore the error and install the mod.
QuoteSiNaN already said that we can ignore "If you have Pretty URLs mod installed and you get a Test Failed error in Subs.php file; you can ignore the error and install the mod." when installing SimplePortal 2.3.2....But I also get this: "1. Execute Modification ./index.php"
What should I do?
Quote from: paulmagno on April 12, 2010, 03:09:36 AMyou could try to do that edit manuallyQuote from: adbrad on April 11, 2010, 04:29:54 PMQuote from: ukhalik2 on April 11, 2010, 03:20:14 PM
getting error in installation!
Error in Package Installation
Execute Modification ./Sources/Subs.php Test failed
are you using pretty urls mod if so you can just install as sinan said hereQuote from: [SiNaN] on April 03, 2010, 11:03:36 AM
If you have Pretty URLs mod installed and you get a Test Failed error in Subs.php file; you can ignore the error and install the mod.
Any help for me...?QuoteSiNaN already said that we can ignore "If you have Pretty URLs mod installed and you get a Test Failed error in Subs.php file; you can ignore the error and install the mod." when installing SimplePortal 2.3.2....But I also get this: "1. Execute Modification ./index.php"
What should I do?
Quote from: [SiNaN] on April 04, 2010, 06:08:03 AMQuote from: psynx on April 03, 2010, 10:02:16 PM
please help!
i have smf 1.1.11 and using babylon theme. i also have simple portal mod installed.
i have this white space under my blocks. i don't know how to fix this. it is untidy.
try view my site on different browser, using mozilla no problem at all. but viewing it on IE browser there you see white space under the blocks.
IE6 is evil. Fix is here:
http://simpleportal.net/index.php?topic=4326.msg30504#msg30504
Quote from: parvaz on April 18, 2010, 07:59:10 PM
Nice mod! I installed and everything looks fine except one thing: The shoutbox doesn't refresh. I mean the text i shout doesn't come up till i refresh the whole page.
can anyone help me with this issue?
Quote from: psynx on April 19, 2010, 12:05:20 AM
hello,
how do i allow guest access to shoutbox?
Quote from: parvaz on April 19, 2010, 02:57:17 PM
yes! the shoutbox cause Error Logs in file Sources/subs.php. undefined!
I could provide you with a temp. account and would appreciate it if you could cast a look.
May i send a message to you?
Quote from: psynx on April 20, 2010, 02:31:23 AM
i don't see any settings for shoutbox allowing access to guest
global $sourcedir;
include_once( $sourcedir . '/Recent.php');
UnreadTopics();
8: Undefined variable: year
File: /home/xxx/public_html/forum/Themes/default/SPortal.template.php (eval?)
Line: 228
$title = $txt['months_titles'][(int)$month].' '.$year; //This is the SMF Text string, so it should be corrected for ut8 or iso
Quote from: AngelinaBelle on April 20, 2010, 08:58:34 PM
Is there any possiblity of upgrading to SimplePortal 2.3.2?
Quote from: AngelinaBelle on April 20, 2010, 05:02:02 PM
Bruno36,
You can look in index.php to see how action=unread is handled.Code Select
global $sourcedir;
include_once( $sourcedir . '/Recent.php');
UnreadTopics();
Quote from: Afro on April 21, 2010, 06:04:06 AM
got this error when trying to add new block
"Fatal error: Call to undefined function sp_staff() in /home/xxxxxxx/public_html/Sources/PortalAdminBlocks.php on line 264"
Quote from: ♪ JohnCcCcCc ♫ on April 21, 2010, 09:57:39 AM
Hi, I just updated SP to 2.3.2, Im having a slight issue with the admin area, Which I manually edited, otherwise fine.
Quote from: [SiNaN] on April 21, 2010, 10:27:36 AM
What do you mean by "which I manually edited"? Does it look the same in SMF Default Theme - Core?
Quote from: [SiNaN] on April 21, 2010, 10:27:36 AMQuote from: Afro on April 21, 2010, 06:04:06 AM
got this error when trying to add new block
"Fatal error: Call to undefined function sp_staff() in /home/xxxxxxx/public_html/Sources/PortalAdminBlocks.php on line 264"
Yea, that seemed to be the issue because it worked when i enabled it. Thanks..
Do you have the Portal Mode set as "Disabled"?Quote from: ♪ JohnCcCcCc ♫ on April 21, 2010, 09:57:39 AM
Hi, I just updated SP to 2.3.2, Im having a slight issue with the admin area, Which I manually edited, otherwise fine.
What do you mean by "which I manually edited"? Does it look the same in SMF Default Theme - Core?
Quote from: [SiNaN] on April 21, 2010, 10:59:11 AM
Can I get screenshots of the same areas with Core theme?
Quote from: [SiNaN] on April 21, 2010, 11:16:10 AM
Ah, are you using SMF 2.0 versions? How does it look in Curve theme?
Quote from: aoife on April 21, 2010, 01:10:22 PM
When I first upgraded from 2.3.1 to 2.3.2 I ended up with double blocks on the right and left sides (e.g., 2 Who's Online, 2 Quick Search, 2 Recent Posts, etc). I went into the Block Configuration and it showed only 1 block - there was no 2nd block to remove. I tried to uninstall the 2.3.2 addon and got error messages that Test Failed on several files and wasn't able to uninstall. I did delete the 2.3.2 files though.
Right now under Admin/Browse Packages, 2.3.1 is showing as the current version and the Portal is not working. I cannot uninstall 2.3.1 because it says there is no uninstaller.
Any ideas on what I should do?
Quote from: ♪ JohnCcCcCc ♫ on April 21, 2010, 01:36:14 PM
That happened to me too, except I spotted it early, seems that one of the edits were duplicated, added twice, just removing one should fix it.
Quote from: Brack1 on April 21, 2010, 01:16:03 PM
You may have to go through all the files manually. This is generally what has to be done when you receive a Test Failed message.
When you first upgraded from 2.3.1 to 2.3.2 were there any errors in the log?
Quote from: aoife on April 21, 2010, 01:42:32 PM
Thank you!
I'll have to take a look at that, after I get rid of or replace the messed up files that I have now. Where did you see the edits duplicated?
Quote from: aw06 on April 20, 2010, 08:14:29 PM
Keep getting this error each time portal page is loaded..Code Select8: Undefined variable: year
File: /home/xxx/public_html/forum/Themes/default/SPortal.template.php (eval?)
Line: 228
Using SP 2.0.4 :P O:)
Line 228Code Select$title = $txt['months_titles'][(int)$month].' '.$year; //This is the SMF Text string, so it should be corrected for ut8 or iso
Quote from: ♪ JohnCcCcCc ♫ on April 21, 2010, 11:33:40 AMQuote from: [SiNaN] on April 21, 2010, 11:16:10 AM
Ah, are you using SMF 2.0 versions? How does it look in Curve theme?
Im using SMF 2.0 RC1.2 - I cannot update at this time as some mods I use need to catch up 1st.
I don't have curve.
It seems this version of the mod (2.3.2) is not "non curve" friendly
EDIT:
Installed 2.3.1 and it works correctly ???
$clean_forum_version = $forum_version;
$context['SPortal']['core_compat'] = 'old';
return;
$clean_forum_version = $forum_version;
QuoteI tried this and nothing changed...
Well, it is. You can use 2.3.2 with this edit:
Sources/Subs-Portal.php
Code: (Find) [Select]
$clean_forum_version = $forum_version;
Code: (Replace) [Select]
$context['SPortal']['core_compat'] = 'old';
return;
$clean_forum_version = $forum_version;
I would suggest sacrificing those mods for the sake of security though.
Quote from: adbrad on April 26, 2010, 02:50:29 AMThanks!
go to admin>simple portal> configuration>general settings and set Portal Theme to forum default then it will take what ever theme is chosen
QuoteOriginal Link on Aeva: http://www.theinfostrides.com/media/?sa=item;in=14
QuoteLink on SimplePortal Gallery block: http://www.theinfostrides.com/media/?sa=item;id=14
Quote from: Lady_Cash on May 05, 2010, 06:27:30 AM
Great mod, 2.3.1 worked fine for me, but now I get error in package installation:
12. Execute Modification ./Sources/Subs.php Test failed
Quote from: Kimmie on May 01, 2010, 06:29:43 PM
Just reinstalled this on RC3 (upgraded from RC1.2) and the portal is not resizing images any more even though I have that setting checked.
Any ideas?
Edit: The "Display Blocks in Forum" isnt working either.
Quote from: TheInfostrides.Com on May 04, 2010, 03:47:06 PM
I enabled a block for Gallery after I installed Aeva Mod but the block is not displaying thumbnail for the videos.
More so, the link parameter changed which is causing a redirection to wrong link on the block. See example below:QuoteOriginal Link on Aeva: http://www.theinfostrides.com/media/?sa=item;in=14QuoteLink on SimplePortal Gallery block: http://www.theinfostrides.com/media/?sa=item;id=14
"in=14" changed to "id=14"
Please help!
Quote from: andy12gr on May 05, 2010, 03:03:26 PM
A question, i have simple portal 2.3.2 in smf 1.1.11 but the shoutbox is not auto refresh, how to change this and from where pls?
Quote from: Bruno36 on May 05, 2010, 04:41:35 AM
Hello!
The blocks are displayed in the forums are shifted
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg687.imageshack.us%2Fimg687%2F7475%2Fbugkw.jpg&hash=27503f394ece00950cccb0ef8b18e0f6644849be)
Quote from: Bruno36 on May 07, 2010, 09:04:44 AMQuote from: Bruno36 on May 05, 2010, 04:41:35 AM
Hello!
The blocks are displayed in the forums are shifted
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg687.imageshack.us%2Fimg687%2F7475%2Fbugkw.jpg&hash=27503f394ece00950cccb0ef8b18e0f6644849be)
Quote from: Bruno36 on May 08, 2010, 03:09:30 AMi did i told you that it is standard
you do not give the solution to solve the problem
Quote from: Lady_Cash on May 05, 2010, 06:49:00 AMQuote from: Lady_Cash on May 05, 2010, 06:27:30 AM
Great mod, 2.3.1 worked fine for me, but now I get error in package installation:
12. Execute Modification ./Sources/Subs.php Test failed
I tried to modifiy ./Sources/Subs.php, but can't find this lines:
\?(?:' . SID . ' ;) ((?:board|topic
Replace With:
\?(?:' . SID . ' ;) ((?:board|topic|page
\?((?:board|topic
Replace With:
\?((?:board|topic|page
Anyway, it works fine without this lines!
Quote from: luismanson on May 10, 2010, 12:58:50 PMQuote from: Lady_Cash on May 05, 2010, 06:49:00 AMQuote from: Lady_Cash on May 05, 2010, 06:27:30 AM
Great mod, 2.3.1 worked fine for me, but now I get error in package installation:
12. Execute Modification ./Sources/Subs.php Test failed
I tried to modifiy ./Sources/Subs.php, but can't find this lines:
\?(?:' . SID . ' ;) ((?:board|topic
Replace With:
\?(?:' . SID . ' ;) ((?:board|topic|page
\?((?:board|topic
Replace With:
\?((?:board|topic|page
Anyway, it works fine without this lines!
Same here! :S
Quote from: Darkred35 on May 10, 2010, 08:18:28 PM
We are using SimplePortal 2.2 and the current version is 2.3.2.
Regards,
Darkred
Quote from: Darkred35 on May 10, 2010, 09:09:02 PM
http://spiritusintusalit.com/index.php this is the link to our site. It gives us the mod now, but will not give us any tabs for our forums. How do we do this?
Regards,
Darkred
Quote from: Lady_Cash on May 05, 2010, 06:27:30 AM
Great mod, 2.3.1 worked fine for me, but now I get error in package installation:
12. Execute Modification ./Sources/Subs.php Test failed
I tried to modifiy ./Sources/Subs.php, but can't find this lines:
\?(?:' . SID . ' ;) ((?:board|topic
Replace With:
\?(?:' . SID . ' ;) ((?:board|topic|page
\?((?:board|topic
Replace With:
\?((?:board|topic|page
Anyway, it works fine without this lines!
Quote from: MATTEK on May 12, 2010, 02:53:34 PM
Hi all. I seem to be experienceing an "auto image re size" issue. I'm trying to insert an image in a custom block of my portal located at the top. see here: www.the-ush.com
However, when I insert the image it auto re sizes to 450x43. The image is actually around 700x90.
I've tried going to Attachment and Avatar > Attachment settings > unchecked resize attachments under posts. This helps in forum topics, but it does not work for the portal block.
Any ideas?
Quote from: Brack1 on May 11, 2010, 11:13:52 AM
Having said that there is an edit for the Aeva media on a block over at www.simpleportal.net (http://www.simpleportal.net)
Quote from: Paul_Pauline on May 14, 2010, 04:14:16 AM
Hi Guyz.
Does anyone have a code that would pull images at random from the attachments folder and display them, say five at a time in a block, without the need to install some kind of gallery system ?
I already use the "Display LAST Attachments", which is shipped with the portal, I would like to display RANDOM ones as well, in a seperate block if this is possible.
Thanks, Paul.
Quote from: madman71 on May 12, 2010, 11:28:16 AM
kierjr,
give me a link to your site. I'll take a look at the css code
.catbg a:link, .catbg a:visited, .catbg2 a:link, .catbg2 a:visited {
color: #fff;
text-decoration: none;
.catbg a:link, .catbg a:visited, .catbg2 a:link, .catbg2 a:visited {
color: #000;
text-decoration: none;
Quote from: Darkred35 on May 10, 2010, 09:13:57 PM
We are using a custom theme AS316. We need to know how to add the forum button. However, we are not good with computers, so if you could put this in laymen terms it would be greatly appreciated.
Quote from: TheInfostrides.Com on May 20, 2010, 07:56:44 AM
I created a page with SP and want the page to be accessible after login. Please, how do I achieve it?
Quote from: Achilles. on May 22, 2010, 05:47:19 AM
I've install SimplePortal 2.3.2. it works perfectly fine, however only me (the admin) can see the Welcome message, Recent topics.. Try going to my website: www.skimus.com --> I believe that I've enabled it to be viewed by guests and other users.
Quote from: Afro on May 22, 2010, 05:53:37 AMQuote from: Achilles. on May 22, 2010, 05:47:19 AM
I've install SimplePortal 2.3.2. it works perfectly fine, however only me (the admin) can see the Welcome message, Recent topics.. Try going to my website: www.skimus.com --> I believe that I've enabled it to be viewed by guests and other users.
i can see SP as a guest on your forum.
Quote from: Afro on May 20, 2010, 08:47:12 AMQuote from: TheInfostrides.Com on May 20, 2010, 07:56:44 AM
I created a page with SP and want the page to be accessible after login. Please, how do I achieve it?
You see that pop up registration javascript on your forum, you might want to remove it.
it makes me leave the forum after one page load.
i m sure it does the same thing to so many other people.
it does not increase registration in any way, rather it annoys people.
@topic
what page did you create that you want to hide from guests ?
Quote from: Afro on May 20, 2010, 08:55:08 AM
Go to admin cpanel >> pages {under simple portal config} >> select the page you created >> edit it and click on the "Select permissions for each group" .. give permissions there..
Quote from: AngelinaBelle on May 20, 2010, 08:47:45 AM
You can use the permissions settings.
If you are not logged in, you are part of membergoup "Guest"
So click on " [ Select permissions for each group ] " and uncheck "Guest".
Quote from: BOS4O on May 27, 2010, 04:33:32 PMit will be in the package unzip the package and get the file from therre
Can someone give me please the sql database file for SimplePortal 2.3.2
i am installing it manually
<div id="page" class="windowbg2">
<div class="catbg">SimplePortal • Database Tool</div>
<p id="info" class="windowbg">This tool will prepare your database to work with SimplePortal. It will also fix database issues related to SimplePortal, if there are any.</p>
', $info, '
<p id="copy">SimplePortal © 2008-2010</p>
</div>
</body>
</html>';
}
function sp_db_create_table($table_name, $columns, $indexes = array(), $no_prefix = true)
{
global $db_prefix;
$real_prefix = preg_match('~^(`?)(.+?)\\1\\.(.*?)$~', $db_prefix, $match) === 1 ? $match[3] : $db_prefix;
$complete_table_name = !$no_prefix ? $db_prefix . $table_name : $table_name;
$full_table_name = !$no_prefix ? $real_prefix . $table_name : $table_name;
$tables = sp_db_list_tables();
..........
Quote from: Feriscool on May 31, 2010, 07:23:53 PM
Please read this little problem:
http://www.simplemachines.org/community/index.php?topic=384061.msg2650149#msg2650149
$a = "text";
function abc()
{
global $a;
return $a;
}
echo 'print: '.abc();
global $rotacak_a;
$rotacak_a = "text";
function abc()
{
global $rotacak_a;
return $rotacak_a;
}
echo 'print: '.abc();
echo htmlspecialchars('ěščřžýáíé');
echo 'ěščřžýáíé';
ěščřžýáíé
Quote from: K@t on June 10, 2010, 05:00:06 PM
If it's a custom theme, you have to edit that theme's index.template, to make the button.
Quote from: AngelinaBelle on June 10, 2010, 11:39:12 AM
@Paul666 -- there is a tutorial for that! http://simpleportal.net/index.php?topic=148.0
@diablo -- This all depends on what the page is doing. It may turn out to be easier to re-do it in php, if you want integration and a common theme for the two parts of your website.
On the other hand, it may be possible for your current homepage to call some SMF SSI functions. The best place to ask about that is at simplemachines.org.
SimplePortal does not have an SSI for putting blocks on non-SMF pages. So the best place to ask about that would be at SimplePortal.net, on the custom coding board.
GIANTS007 Today at 09:55:01 PM
74.67.222.93 b1686ca6a5af03cb650ed15eb7c3df8a
http://theinsideslant.com/forum/index.php
8: Undefined index: session_var
File: /home/theinsid/public_html/forum/Themes/default/PortalShoutbox.template.php
Line: 111
Quote from: tumbleweed on June 10, 2010, 11:58:03 PM
I have a shoutbox set up in a board. I get this error:Code SelectGIANTS007 Today at 09:55:01 PM
74.67.222.93 b1686ca6a5af03cb650ed15eb7c3df8a
http://theinsideslant.com/forum/index.php
8: Undefined index: session_var
File: /home/theinsid/public_html/forum/Themes/default/PortalShoutbox.template.php
Line: 111
runnng smf 1.1.11 and sp 2.3
permssions are set to one membergroup
Quote from: humbleworld on June 13, 2010, 05:17:04 PM
Could someone please answer my question above? Thank you!
Quote from: MATTEK on May 12, 2010, 02:53:34 PM
Hi all. I seem to be experienceing an "auto image re size" issue. I'm trying to insert an image in a custom block of my portal located at the top. see here: www.the-ush.com
However, when I insert the image it auto re sizes to 450x43. The image is actually around 700x90.
I've tried going to Attachment and Avatar > Attachment settings > unchecked resize attachments under posts. This helps in forum topics, but it does not work for the portal block.
Any ideas?
Quote from: adbrad on June 14, 2010, 04:35:01 AM
admin>simpleportal>configuration>general settings.
look for Resizes images on portal and see if the option is checked
Quote from: capady on June 21, 2010, 09:01:53 AM
I have 3 different forums with SMF and SP
On all SP startpages I have a block with the comming calendar events.
At one site the events for the next 5 days are shown, on the other 2 sites only the events of the current day are shown.
I would like the show the events for the next few days on each site, but I can't find how to solve this question. I have been looking to the calendar settings of SMF, I've been looking to the settings in SP.
Who can tell me how to solve this ?
Quote from: ⎝⏠⏝⏠⎠ on July 04, 2010, 11:32:58 PM
As you all know, SimplePortal has a specific own site that answer to all your inquiries. Go there: http://simpleportal.net if your questions are unanswered here.
Quote from: ⎝⏠⏝⏠⎠ on July 04, 2010, 11:56:12 PMthen why would you make a topic on simple portal here in the first place if your just going to tell us to go some were else. Also, you stupid Verification word thing is in the way. It wont let me register.Quote from: ⎝⏠⏝⏠⎠ on July 04, 2010, 11:32:58 PM
As you all know, SimplePortal has a specific own site that answer to all your inquiries. Go there: http://simpleportal.net if your questions are unanswered here.
Quote from: AbuFahim⎝⏠⏝⏠⎠ on July 04, 2010, 11:56:12 PMQuote from: ⎝⏠⏝⏠⎠ on July 04, 2010, 11:32:58 PM
As you all know, SimplePortal has a specific own site that answer to all your inquiries. Go there: http://simpleportal.net if your questions are unanswered here.
Quote from: TecKtoNiK.z0r on July 14, 2010, 10:16:30 AMBy going to http://www.simpleportal.net/
i have a problem with blocks:
Table 'highskill_nou.smf_sp_functions' doesn't exist
File: /home/highskill/domains/cxr-highskill.com/public_html/home/Sources/Subs-SPortal2.php
Line: 339
How do i resolve it ???
Quote from: ChrisDoz on July 16, 2010, 12:39:19 PM
Hi people, and sorry for my very bad english, i'm french ...
I've install the Simple portal but i've 2 error :
http://www.hiboox.fr/go/images/informatique/0001,f9ba558172381dbc9cccd5298c2fc904.jpg.html
But, i install ....
I create shoutbox, i can see but other people (guest, smoderator ....) no see
Have you any idea for this problem please ??
Thanks
ChrisDoz
Quote from: ♪ JohnCcCcCc ♫ on July 16, 2010, 12:41:22 PMQuote from: ChrisDoz on July 16, 2010, 12:39:19 PM
Hi people, and sorry for my very bad english, i'm french ...
I've install the Simple portal but i've 2 error :
http://www.hiboox.fr/go/images/informatique/0001,f9ba558172381dbc9cccd5298c2fc904.jpg.html
But, i install ....
I create shoutbox, i can see but other people (guest, smoderator ....) no see
Have you any idea for this problem please ??
Thanks
ChrisDoz
Have you set permissions for the shoutbox? (where you created it their is a drop down menu)
Avez-vous définir des autorisations pour la shoutbox? (Où vous avez créé il leur est un menu déroulant)
Quote from: John1 on July 17, 2010, 06:40:08 AM
Please how do i underline the recent topic/posts on the front page ?
I mean inside the SP Block.
Quote from: John1 on July 17, 2010, 05:36:25 PM
Good, thanks.
how do i add the recentreplies ?
.recentreplies
or just
recentreplies
i mean in the custom style.
Quote from: Chas Large on July 21, 2010, 03:54:15 PMI think the use of custom php block with smf variable is already correct and should work. You should however ensure that php disabled option is ticked in general setting to avoid parse error.
With SimplePortal.net off line still I have a fairly simple question about including variables in blocks.
I'd like to use a variable like {$member.name} (from the Newsletter help screen) in a block.
I've tried it in a BBC block and HTML bloc but it does not work. Custom PHP just gives a parse error probably because my php knowledge is poor.
So, is it possible to use forum variables in BBC or HTML blocks? and if so, how?
Thanks
Quote from: waruna on July 23, 2010, 02:19:28 AMI guess the answer to the first question is yes.
Hello to Mod owner.
I want to upgrade this mod because I'm using older version of SP. So I have to uninstall current SP version, download the latest one, and install it in the package manager? Is that correct?
One more thing, do I have to backup files + mysql database, or just backup my forum files?
Thanks in advance.
Quote from: Tyluur on July 22, 2010, 08:01:43 PMThat is not simple portal mod. That is a pop up mod. And it only replace x (close) with 'Click here if you do not wish to vote'.
Look at www.crisisx.net [nofollow], they use SMF and they ask you to vote as a guest, and below that there's an option that says Click here if you do not wish to vote.
How do I get that? Thanks ;).
Quote1. Execute Modification ./index.php Test failed
1. Replace ./index.php Test successful
2. Replace ./index.php Test failed
3. Replace ./index.php Test successful
4. Replace ./index.php Test successful
5. Replace ./index.php Test successful
6. Replace ./index.php Test successful
2. Execute Modification ./SSI.php Test successful
3. Execute Modification .Sources/Admin.php Test failed
1. Replace .Sources/Admin.php Test failed
2. Replace .Sources/Admin.php Test successful
3. Replace .Sources/Admin.php Test successful
Quote from: Brack1 on July 29, 2010, 04:28:20 PM
Did you have an error on that file when the mod was installed?
If so did you manually edit the file?
Quote from: MATTEK on July 29, 2010, 04:20:08 PMYes. It should. But please note that whatever error you are reading, it shows that the uninstall must be done manually. The admin.php file that has been attached earlier is already clear of SimplePortal mod. So, only replace it when you have finished uninstall SimplePortal mod.
So I should be safe to uninstall even if I'm still getting the index.php failure?
Quote from: AbuFahim⎝⏠⏝⏠⎠ on July 30, 2010, 12:41:37 PMQuote from: MATTEK on July 29, 2010, 04:20:08 PMYes. It should. But please note that whatever error you are reading, it shows that the uninstall must be done manually. The admin.php file that has been attached earlier is already clear of SimplePortal mod. So, only replace it when you have finished uninstall SimplePortal mod.
So I should be safe to uninstall even if I'm still getting the index.php failure?
Quote from: AbuFahim⎝⏠⏝⏠⎠ on July 29, 2010, 09:16:36 AM
I have checked your files but there is no SimplePortal mod to remove from your index.php. Or may be you put a wrong file here?
I have removed the SimplePortal mod from your Admin.php file. Attached.
Quote from: TopBrandGamerz on August 01, 2010, 05:28:15 AMPlease provide your forum details, version, links, etc and problem details like when it started and what have you done before you faced this problem.
Ok so i installed the simpleportal and its taken over my forums and i cannot get them any ideas on how to fixx this
Quote from: TopBrandGamerz on August 01, 2010, 05:46:12 AMPeople here cannot read minds. Unless you provide your forum link and version, we do not know what you did to get the error you have. And, when you install the mod, did you see any error messages?
Ok before i installed simpleportal my index.php was ok i could go to catogerys borards i installed it and it took over index.php i could`nt get to my forums..
Quote from: AbuFahim⎝⏠⏝⏠⎠ on July 30, 2010, 02:14:43 PMThis concerns me. My index.php contains no mods what so ever?Quote from: AbuFahim⎝⏠⏝⏠⎠ on July 29, 2010, 09:16:36 AM
I have checked your files but there is no SimplePortal mod to remove from your index.php. Or may be you put a wrong file here?
I have removed the SimplePortal mod from your Admin.php file. Attached.
The index.php file should contain lots of other mods but yours doesn't contain any. It's like a new index.php file. You must have mistakenly change it or otherwise it should have no problem at all.
Quote from: MATTEK on August 01, 2010, 12:27:25 PM
This concerns me. My index.php contains no mods what so ever?
/**********************************************************************************
* index.php *
***********************************************************************************
* SMF: Simple Machines Forum *
* Open-Source Project Inspired by Zef Hemel ([email protected]) *
* =============================================================================== *
Quote from: MATTEK on August 01, 2010, 01:10:00 PMI can see it's working. Can you take the index.php file from your current site now (from the very root of your site and not from the Sources folder) where other files like Subscriptions.php or agreement.txt or readme.html is situated.
My forum is working perfectly fine minus the function and display of the SA Facebook integration and Custom Top Menu.
Other than that, works perfect.
Here's the only copy of an "index" file that's larger than 14kb that I have. It's a text file though.
Quote from: MATTEK on August 01, 2010, 01:27:59 PM
This is from my root.
Quote from: MATTEK on August 01, 2010, 01:40:41 PMDo consider to use this: http://www.simplemachines.org/community/index.php?topic=360150.0 and this: http://www.simplemachines.org/community/index.php?topic=360150.msg2563368#msg2563368 instead.
Yea we do need it. It generates a lot of traffic. When Articles are published.
Quote from: MATTEK on August 01, 2010, 01:40:41 PM
Yea we do need it. It generates a lot of traffic. When Articles are published.
Quote from: johncccccc on August 01, 2010, 01:50:11 PMQuote from: MATTEK on August 01, 2010, 01:40:41 PM
Yea we do need it. It generates a lot of traffic. When Articles are published.
Most traffic comes from twitter IMO and experience, use the no mod method if you want, but I use the mod, it does work great, however, I do not use SA Facebook.
Back on topic,
How is the comparing of index.php going?
Quote from: wickedstangs on August 01, 2010, 02:03:00 PM
Hello Everyone, I just installed this on my fourm www.rcing.net and I lost my forum tab on top. How can I recover it:) Thanks everyone for an outstanding mod..
Quote from: johncccccc on August 01, 2010, 02:09:04 PMQuote from: wickedstangs on August 01, 2010, 02:03:00 PM
Hello Everyone, I just installed this on my fourm www.rcing.net and I lost my forum tab on top. How can I recover it:) Thanks everyone for an outstanding mod..
Subs.php
Search for " $buttons "
Paste the code here for about 50 lines after that.
// Creates an image/text button
function create_button($name, $alt, $label = '', $custom = '')
{
global $settings, $txt, $context;
if (!$settings['use_image_buttons'])
return $txt[$alt];
elseif (!empty($settings['use_buttons']))
return '<img src="' . $settings['images_url'] . '/buttons/' . $name . '" alt="' . $txt[$alt] . '" ' . $custom . ' />' . ($label != '' ? '<b>' . $txt[$label] . '</b>' : '');
else
return '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/' . $name . '" alt="' . $txt[$alt] . '" ' . $custom . ' />';
}
Quote from: wickedstangs on August 01, 2010, 02:14:31 PMQuote from: johncccccc on August 01, 2010, 02:09:04 PMQuote from: wickedstangs on August 01, 2010, 02:03:00 PM
Hello Everyone, I just installed this on my fourm www.rcing.net and I lost my forum tab on top. How can I recover it:) Thanks everyone for an outstanding mod..
Subs.php
Search for " $buttons "
Paste the code here for about 50 lines after that.
The only thing I found with button in the Subs.php is the below.Code Select// Creates an image/text button
function create_button($name, $alt, $label = '', $custom = '')
{
global $settings, $txt, $context;
if (!$settings['use_image_buttons'])
return $txt[$alt];
elseif (!empty($settings['use_buttons']))
return '<img src="' . $settings['images_url'] . '/buttons/' . $name . '" alt="' . $txt[$alt] . '" ' . $custom . ' />' . ($label != '' ? '<b>' . $txt[$label] . '</b>' : '');
else
return '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/' . $name . '" alt="' . $txt[$alt] . '" ' . $custom . ' />';
}
$buttons = array(
Quote from: MATTEK on August 01, 2010, 02:31:27 PM
who.php also failed on the uninstall. Now only the fourth edit failed. Does that mean only have to manually uninstall that edit?
Quote from: MATTEK on August 01, 2010, 02:54:05 PM
To me, that means even though 3 of the 4 were successful I have to edit all 4 of them. However that is in direct conflict with my question as you said "Yes" to the question : "Do I only have to edit the one that failed?"
Quote from: johncccccc on August 01, 2010, 02:36:28 PMQuote from: wickedstangs on August 01, 2010, 02:14:31 PMQuote from: johncccccc on August 01, 2010, 02:09:04 PMQuote from: wickedstangs on August 01, 2010, 02:03:00 PM
Hello Everyone, I just installed this on my fourm www.rcing.net and I lost my forum tab on top. How can I recover it:) Thanks everyone for an outstanding mod..
Subs.php
Search for " $buttons "
Paste the code here for about 50 lines after that.
The only thing I found with button in the Subs.php is the below.Code Select// Creates an image/text button
function create_button($name, $alt, $label = '', $custom = '')
{
global $settings, $txt, $context;
if (!$settings['use_image_buttons'])
return $txt[$alt];
elseif (!empty($settings['use_buttons']))
return '<img src="' . $settings['images_url'] . '/buttons/' . $name . '" alt="' . $txt[$alt] . '" ' . $custom . ' />' . ($label != '' ? '<b>' . $txt[$label] . '</b>' : '');
else
return '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/' . $name . '" alt="' . $txt[$alt] . '" ' . $custom . ' />';
}
Search for this:Code Select
$buttons = array(
Then paste the things after that
for all edits.
Quote from: wickedstangs on August 01, 2010, 11:52:46 PMYour menu is in index.template.php since your forum is using SMF 1.1.x and not 2.0 RCx. Btw, your forum seems fine to me. All your menu / forum tab are intact. Is it solved then?Quote from: johncccccc on August 01, 2010, 02:36:28 PMQuote from: wickedstangs on August 01, 2010, 02:14:31 PMQuote from: johncccccc on August 01, 2010, 02:09:04 PMQuote from: wickedstangs on August 01, 2010, 02:03:00 PM
Hello Everyone, I just installed this on my fourm www.rcing.net and I lost my forum tab on top. How can I recover it:) Thanks everyone for an outstanding mod..
Subs.php
Search for " $buttons "
Paste the code here for about 50 lines after that.
The only thing I found with button in the Subs.php is the below.Code Select// Creates an image/text button
function create_button($name, $alt, $label = '', $custom = '')
{
global $settings, $txt, $context;
if (!$settings['use_image_buttons'])
return $txt[$alt];
elseif (!empty($settings['use_buttons']))
return '<img src="' . $settings['images_url'] . '/buttons/' . $name . '" alt="' . $txt[$alt] . '" ' . $custom . ' />' . ($label != '' ? '<b>' . $txt[$label] . '</b>' : '');
else
return '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/' . $name . '" alt="' . $txt[$alt] . '" ' . $custom . ' />';
}
Search for this:Code Select
$buttons = array(
Then paste the things after that
for all edits.
I searched the entire file /Sources/Subs.php could not find $buttons = array(
Quote from: AbuFahim⎝⏠⏝⏠⎠ on August 02, 2010, 04:50:21 AMQuote from: wickedstangs on August 01, 2010, 02:03:00 PM
Hello Everyone, I just installed this on my fourm www.rcing.net and I lost my forum tab on top. How can I recover it:) Thanks everyone for an outstanding mod..
Your menu is in index.template.php since your forum is using SMF 1.1.x and not 2.0 RCx. Btw, your forum seems fine to me. All your menu / forum tab are intact. Is it solved then?
// Show the start of the tab section.
echo '<div id="topmenu">
<ul class="topmenu">';
// Show the [home] button.
echo '<li><a' , $current_action=='home' ? ' class="current"' : '' , ' href="', $scripturl, '"><span>' , $txt[103] , '</span></a></li>';
// Show the [help] button.
echo '<li><a' , $current_action=='help' ? ' class="current"' : '' , ' href="', $scripturl, '?action=help"><span>' , $txt[119] , '</span></a></li>';
// How about the [search] button?
if ($context['allow_search'])
echo '<li><a' , $current_action=='search' ? ' class="current"' : '' , ' href="', $scripturl, '?action=search"><span>' , $txt[182] , '</span></a></li>';
// Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])
echo '<li><a' , $current_action=='admin' ? ' class="current"' : '' , ' href="', $scripturl, '?action=admin"><span>' , $txt[2] , '</span></a></li>';
// The [calendar]!
if ($context['allow_calendar'])
echo '<li><a' , $current_action=='calendar' ? ' class="current"' : '' , ' href="', $scripturl, '?action=calendar"><span>' , $txt['calendar24'] , '</span></a></li>';
// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo '<li><a' , $current_action=='profile' ? ' class="current"' : '' , ' href="', $scripturl, '?action=profile"><span>' , $txt[79] , '</span></a></li>';
// Go to PM center... [pm]
if ($context['user']['is_logged'] && $context['allow_pm'])
echo '<li><a' , $current_action=='pm' ? ' class="current"' : '' , ' href="', $scripturl, '?action=pm"><span>' , $txt['pm_short'] , ' ', $context['user']['unread_messages'] > 0 ? '[<strong>'. $context['user']['unread_messages'] . '</strong>]' : '' , '</span></a></li>';
// the [member] list button
if ($context['allow_memberlist'])
echo '<li><a ' , $current_action=='mlist' ? ' class="current"' : '' , ' href="', $scripturl, '?action=mlist"><span>' , $txt[331] , '</span></a></li>';
// If the user is a guest, show [login] button.
if ($context['user']['is_guest'])
echo '<li><a ' , $current_action=='login' ? ' class="current"' : '' , ' href="', $scripturl, '?action=login"><span>' , $txt[34] , '</span></a></li>';
// If the user is a guest, also show [register] button.
if ($context['user']['is_guest'])
echo '<li><a ' , $current_action=='register' ? ' class="current"' : '' , ' href="', $scripturl, '?action=register"><span>' , $txt[97] , '</span></a></li>';
// Otherwise, they might want to [logout]...
if ($context['user']['is_logged'])
echo '<li><a ' , $current_action=='logout' ? ' class="current"' : '' , 'href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '"><span>' , $txt[108] , '</span></a></li>';
echo '
// Show the [home] button.
echo '<li><a' , $current_action=='home' ? ' class="current"' : '' , ' href="', $scripturl, '"><span>' , $txt[103] , '</span></a></li>';
// Show the [home] button.
echo '<li><a' , $current_action=='home' ? ' class="current"' : '' , ' href="', ($modSettings['sp_portal_mode'] == 3 && empty($context['disable_sp']) ? $modSettings['sp_standalone_url'] : $scripturl), '"><span>' , $txt[103] , '</span></a></li>';
// Show the [forum] button.
if (empty($context['disable_sp']) && in_array($modSettings['sp_portal_mode'], array(1, 3)))
echo '<li><a' , $current_action=='forum' ? ' class="current"' : '' , ' href="', $scripturl . ($modSettings['sp_portal_mode'] == 1 ? '?action=forum' : ''), '"><span>', empty($txt['sp-forum']) ? 'Forum' : $txt['sp-forum'], '</span></a></li>';
Quote from: johncccccc on August 02, 2010, 11:31:13 AMI would advise the same as John. May be consider it later?
Moving to SMF 2 RC3 would really be a lot easier for you lol
Trust me, their are a lot less of these issues
Quote from: wickedstangs on August 02, 2010, 06:29:00 PMSorry, my mistake. I got it wrong here:
Will work on it tonight the template edit did not work for me...:( Will try 2.0
href=href=
Quotehttp://www.rsdlaughter.com/smf/index.php (http://www.rsdlaughter.com/smf/index.php)
8: Undefined variable: modSettings
File: /home/domain/public_html/smf/Themes/default/PortalArticles.template.php (main_above sub template - eval?)
Line: 614
Quote from: ahrasis on August 09, 2010, 04:52:34 AM
Your index.template.php looks fine to me. It is exactly as the mod normally does. Try uninstalling and reinstalling the mod.
Quote from: flamechica on August 09, 2010, 05:09:51 AM
Uninstalling and reinstalling did nothing....are there any other files that would cause the forum button to not show?
Quote from: nightyyx on August 17, 2010, 07:44:58 PM
Hello
i just tested simple portal and i need some help.
1) it is nice the article system but i want something different.
I want to have a catalogue with news in the top of my portal and eatch member read it from portal. and then if they want to comment to another board of my forum.
I dont want to press the link of article from portal and going to a topic on my forum with the article.
Any ideas if it is easy to change it?
2)want to my portal forum to have at the right a block that will shows the last 10 active topics with the recent post of eatch of this.
Simple portal have a recent post block but the problem for me it is that shows in the list 5 times the same topic with the last posts. I want a recent topic and post in one if you undestand someone what am i meaning:P
It will show only one time eatch topic and every time that you will refresh the page you will see the last post next of the name of topic.
Quote from: flamechica on August 09, 2010, 02:56:43 AMI can see from your index.template.php that there is some code for the Forum button.
Everything seemed to be ok, except, I do not have a "Forum" button.
Quote from: jollyrogue on August 22, 2010, 05:11:46 PMYou can do this using SimplePortal's "Standalone Portal".
i'd like to know if it is possible to have the portal at the root of my domain while the forum is at /forum/.
Quote from: nightyyx on August 22, 2010, 04:58:57 PM
But still have problem
My articles in the top of portal appears like in screenshoot.
I want to appear like the link that you showed me
My article settings is in the last screenshoot.
Quote from: AngelinaBelle on August 18, 2010, 11:34:51 AM
@FlameChicaQuote from: flamechica on August 09, 2010, 02:56:43 AMI can see from your index.template.php that there is some code for the Forum button.
Everything seemed to be ok, except, I do not have a "Forum" button.
That code only shows up if:
* Simple Portal is NOT disabled.
* Simple Portal is in mode 1 or 3 (frontpage or standalone)
Which settings are you using?
Quote from: AngelinaBelle on August 22, 2010, 07:27:59 PMQuote from: jollyrogue on August 22, 2010, 05:11:46 PMYou can do this using SimplePortal's "Standalone Portal".
i'd like to know if it is possible to have the portal at the root of my domain while the forum is at /forum/.
You would chose the standalone option and take a copy of the standalone portal file to your domain root, then follow the instructions inside the standalone portal file.
After that -- it works pretty much like magic. There are a few small differences between standalone and front page mode.
Quote from: flamechica on August 24, 2010, 05:09:34 AM
Everything seemed to be ok, except, I do not have a "Forum" button.
function template_button_strip($button_strip, $direction = 'top', $force_reset = false, $custom_td = '')
{
global $settings, $buttons, $context, $txt, $scripturl;
function template_button_strip($button_strip, $direction = 'top', $force_reset = false, $custom_td = '')
{
global $settings, $buttons, $context, $txt, $scripturl, $modSettings;
Quote from: Ryan2320 on August 22, 2010, 07:45:19 PM
Can I add a pages button? To where the home and forum button are?
I am using a custom theme, and have already add the forum button, but is it possible to add a pages button right after the forum button? If so how?
What I would like to do is create a page that link to other pages but have all the links on that one page..and have the page button link to that one page
Quote from: aditiya1920 on August 23, 2010, 04:01:58 PM
Really Thanks
Quote from: nightyyx on August 22, 2010, 04:58:57 PM
But still have problem
My articles in the top of portal appears like in screenshoot.
I want to appear like the link that you showed me
My article settings is in the last screenshoot.
Quote from: AngelinaBelle on August 24, 2010, 04:23:16 PMQuote from: flamechica on August 24, 2010, 05:09:34 AM
Everything seemed to be ok, except, I do not have a "Forum" button.Code (find) Selectfunction template_button_strip($button_strip, $direction = 'top', $force_reset = false, $custom_td = '')
{
global $settings, $buttons, $context, $txt, $scripturl;Code (replace) Selectfunction template_button_strip($button_strip, $direction = 'top', $force_reset = false, $custom_td = '')
{
global $settings, $buttons, $context, $txt, $scripturl, $modSettings;
Quote from: AngelinaBelle on August 27, 2010, 10:26:05 AM
Are you still getting the error 8: Undefined variable: modSettings
Quote from: AngelinaBelle on August 27, 2010, 10:26:05 AMBut I just looked at your file again, and I see there is more missing. Is this your default theme?
The install should have gotten all of this right .
Please do the following:
Take out the change I just asked you to make.
Check on all the changes described in the manual install instructions at http://custom.simplemachines.org/mods/index.php?action=parse;mod=1104;attach=139821;smf_version=1.1.11 (http://custom.simplemachines.org/mods/index.php?action=parse;mod=1104;attach=139821;smf_version=1.1.11) for the file index.template.php
I can see you don't have all the required changes to this file.
Quote from: flamechica on August 30, 2010, 02:44:19 AMYes the installer failed. Partially. And it should have given you a "test failed" message.
Yes, this is my default theme and it is what the installer put in there.
$current_action = 'home';
global $modSettings;
$current_action = $modSettings['sp_portal_mode'] == 3 && empty($context['standalone']) && empty($context['disable_sp']) ? 'forum' : 'home';
Quote from: MoreBloodWine on August 28, 2010, 06:25:57 AMSimplePortal is not set up to import anything from other portals.
Can this import block and article data from TP SQL tables or would I have to rip them from the DB and then enter into SP ?
Quote from: muxen on August 31, 2010, 03:45:31 PM?
starcraft2.s9
Quote from: yakyakyakshoutbox is a non-documented bug when running with Aeva (it don't work if Aeva Galleries are on the same page)
minor problems with curved themes when adding bespoke header designs in blocks
Quote from: AngelinaBelle on August 30, 2010, 12:16:04 PMQuote from: flamechica on August 30, 2010, 02:44:19 AMYes the installer failed. Partially. And it should have given you a "test failed" message.
Yes, this is my default theme and it is what the installer put in there.
In the file you just attached, I can see, in template_menu, that you haveCode Select
$current_action = 'home';
But you need to haveCode Select
global $modSettings;
$current_action = $modSettings['sp_portal_mode'] == 3 && empty($context['standalone']) && empty($context['disable_sp']) ? 'forum' : 'home';
When I posted before, I thought you had other problems as well, but it looks like this is the only missed in index.template.php.
This missed edit should account for both the missing $modSettings and the missing forum button.
Quote from: AZMazda3 on September 02, 2010, 09:19:39 PM
Just attempted to update SimplePortal 2.2.2 to 2.3 and the site crashed. Reloaded the backup and now the site shows 2.2.2 at bottom of page but in the packages it lists 2.3 as installed. I am pretty sure what is really installed is 2.2.2 but we really would like to update it the most current version. How should I proceed?
Quote from: AngelinaBelle on September 27, 2010, 10:38:49 AM
@afro -- This could be done, but would take a bit of work.
But I see you have also asked at SimplePortal.net...
Quote from: John1 on September 28, 2010, 06:06:28 AM
simpleportal.net seems to be offline.
Quote from: Nathaniel on September 28, 2010, 09:36:07 AMQuote from: John1 on September 28, 2010, 06:06:28 AM
simpleportal.net seems to be offline.
We're aware and will bring it back online as soon as possible.
Quote from: Diagram on February 26, 2010, 12:34:11 AM
Weird.
After using SimplePortal Shoutbox my forum ended up in a 500 internal server error.
Any help?
[b]|^|<b>|^|[/b]|^|</b>|^|
[i]|^|<i>|^|[/i]|^|</i>|^|
[u]|^|<u>|^|[/u]|^|</u>|^|
[url]|^|[<a href='|^|[/url]|^|' target='_blank'>www</a>]|^|
[mail]|^|[<a href=\'mailto:|^|[/mail]|^|'>@</a>]|^|
[b]|^|<b>|^|[/b]|^|</b>|^|
[i]|^|<i>|^|[/i]|^|</i>|^|
[u]|^|<u>|^|[/u]|^|</u>|^|
[url]|^|[<a href='|^|[/url]|^|' target='_blank'>www</a>]|^|
[mail]|^|[<a href=\'mailto:|^|[/mail]|^|'>@</a>]|^|
[spoiler]|^|<spoiler>|^|[/spoiler]|^|</spoiler>|^|
[move]|^|<marquee>|^|[/move]|^|</marquee>|^|
[moveright]|^|<marquee>|^|[/moveright]|^|</marquee>|^|
[b]|^|<b>|^|[/b]|^|</b>|^|
[i]|^|<i>|^|[/i]|^|</i>|^|
[u]|^|<u>|^|[/u]|^|</u>|^|
[url]|^|[<a href='|^|[/url]|^|' target='_blank'>www</a>]|^|
[mail]|^|[<a href=\'mailto:|^|[/mail]|^|'>@</a>]|^|
[spoiler]|^|<spoiler>|^|[/spoiler]|^|</spoiler>|^|
[move]|^|<move>|^|[/move]|^|</move>|^|
[moveright]|^|<moveright>|^|[/moveright]|^|</moveright>|^|
Quote from: emjan101 on October 22, 2010, 05:53:33 PM
I removed the Simple Portal 2.2.2 and installed the 2.3.2. When I go to the configuration I received this error as captured by my browser: (attached and in word 2003 for compatibility purposes)
Template Parse Error!
There was a problem loading the /Themes/default/PortalAdmin.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.
You may want to try to refresh this page or use the default theme.
syntax error, unexpected T_STRING, expecting ',' or ';'
I have no coding experience so I am lost as to how to fix this. Please help with this, I no longer have the 2.2.2 version to reload and I can't confirure the protal now and it is holding up the site which is already online. I would hate to have to restore the backup since there has been activity on the site saince the installation. Thanks for your prompt and extensive support. BTW: I love Simple Protal, have been running it since I first started the site in 2008. It is slim, efficient, and a breeze to work with. Keep up the great work!!!
Duplicate key name 'state'
File: C:\xampp\htdocs\test\Packages\temp\install2.php
Line: 521
Quote from: Ron Jeremy on November 05, 2010, 12:33:14 PM
In the block "Latest Member" description says "Displays the latest member and their avatar." But no avatar displayed, only dots. Can you fix that and replace dots with avatars?
echo '
<li>', sp_embed_image('dot'), ' ', $member['link'], ' - ', $member['date'], '</li>';
Quote from: Ron Jeremy on November 05, 2010, 02:52:41 PMtry adding this and see what happens, I use this one on my site and they are working great. BTW Ron, what version of SMF and Portal are you using
Of course i have avatars in the system. I wass check file "PortalBlocks.php" and there is codeCode Selectecho '
<li>', sp_embed_image('dot'), ' ', $member['link'], ' - ', $member['date'], '</li>';
instead of "('dot')" in the code should be stand members avatar.
Quote from: !RFAN on November 06, 2010, 10:13:31 AM
why guests cant shout in shoutbox when i have permitted them... i need help :(
Quote from: Ron Jeremy on November 05, 2010, 12:33:14 PM
In the block "Latest Member" description says "Displays the latest member and their avatar." But no avatar displayed, only dots. Can you fix that and replace dots with avatars?
Quote from: !RFAN on November 06, 2010, 10:13:31 AM
why cant gust shout in shoutbox when i have permitted them... i need help :(
Quote from: Obcy on November 07, 2010, 02:22:52 AM
How to put a shoutbox before the info center ?
Quote from: madman71 on November 07, 2010, 02:50:56 PM
http://www.simpleportal.net/ is down.
Anyone know when it's coming back?
Quote from: sheryltoo on November 07, 2010, 05:03:43 PM
I just upgraded to RC3 and downloaded simple portal 2.3.2 and it seems to be working except the icons are missing for various tasks under the administration panel.
You can click on the various tabs such as Configuration, blocks, articles, and it takes you to the the right page but the icons are showing up as x's. and no pictures.
Quote from: sheryltoo on November 07, 2010, 07:15:21 PM
Som of the mods I use don't work with RC4 which is why I upgraded to RC3. Of course I'm finding out that some of the mods don't really work with RC3 either so I probably shouldn't have upgraded/
Quote from: Nathaniel on November 07, 2010, 06:57:18 AMQuote from: Obcy on November 07, 2010, 02:22:52 AM
How to put a shoutbox before the info center ?
The info center is a part of the main BoardIndex template, you can easily add a shoutbox block after the info center, although you will need to edit the "/Themes/{themename}/BoardIndex.template.php" file if you want to put it before the info center.
Quote from: BoZilla on November 14, 2010, 11:38:57 AMAnswer to self...lol: To fix this, just add portal.css and portal_rtl.css to your themes css folder and portal.js to your themes script folder!
Another issue I found when adding blocks, the left curve image does not appear in the box for whatever theme you are using accept for the default theme. I believe it's the main_block.png in index.css but simple portal does not point to the correct one. Here is the support thread I started on this in themes: http://www.simplemachines.org/community/index.php?topic=409036.0
Quote from: smitch6 on November 14, 2010, 05:15:02 AMWe are spread a little thin. I think we have adressed all of your questions over there -- though we may not have solved them...
i posted on sp's website but no-one seems to answer
Quote from: BoZilla on November 14, 2010, 11:51:21 AMQuote from: BoZilla on November 14, 2010, 11:38:57 AMAnswer to self...lol: To fix this, just add portal.css and portal_rtl.css to your themes css folder and portal.js to your themes script folder!
Another issue I found when adding blocks, the left curve image does not appear in the box for whatever theme you are using accept for the default theme. I believe it's the main_block.png in index.css but simple portal does not point to the correct one. Here is the support thread I started on this in themes: http://www.simplemachines.org/community/index.php?topic=409036.0
Quote from: PLAYBOY on November 20, 2010, 06:07:35 PM
I just installed 2.2.3 on 1.1.2 then i installed my language files and then i copied and pasted my language files to /customtheme/languages/ but it still shows english on the portal main page. it says like USER INFO, TOP POSTER etc...
How can i fully change it to my language?
Quote from: BoZilla on November 14, 2010, 11:51:21 AMQuote from: BoZilla on November 14, 2010, 11:38:57 AMAnswer to self...lol: To fix this, just add portal.css and portal_rtl.css to your themes css folder and portal.js to your themes script folder!
Another issue I found when adding blocks, the left curve image does not appear in the box for whatever theme you are using accept for the default theme. I believe it's the main_block.png in index.css but simple portal does not point to the correct one. Here is the support thread I started on this in themes: http://www.simplemachines.org/community/index.php?topic=409036.0
Quote from: BoZilla on November 26, 2010, 10:02:15 PM
After repeating the steps did you clear your forum & browser cache?
Quote from: BoZilla on November 26, 2010, 11:19:17 PM
There is something missing in the theme. You should ask the theme author to take a look at it and see if they can help! ;)
Quote from: big red on November 26, 2010, 11:46:23 PMQuote from: BoZilla on November 26, 2010, 11:19:17 PM
There is something missing in the theme. You should ask the theme author to take a look at it and see if they can help! ;)
Ok, i've posted in the theme authors forum. Thanks for your time! Will update here later.
Quote from: PLAYBOY on November 24, 2010, 11:30:23 PM
The copyright is off the frame on my theme. Where is the copyright code so i can put it in the frame?
Quote from: PLAYBOY on November 25, 2010, 03:18:59 PM
How can i change the order of management (moderation) team?
I want to customize the order on list in that block.
1.1.12
QuoteHow can i change the order of management (moderation) team?Perhaps an example of what you are looking for ... today I thought it sorted it by admin then global mods and then moderators?
I want to customize the order on list in that block.
Quote$staff_list[$row['type'] . '-' . $row['id_member']] = array(
Quote$staff_list[$row['type'] . '-' . $row['group_name'] . '-' . $row['real_name']] = array(
Quote from: smitch6 on November 28, 2010, 05:08:45 PMStrange .... had you already modified that code ? Anyway in your file its line 2311 which has
i don't have that line :(
i've attached my portalblacks.php for you to have a quick look through if you don't mind :)
Quote from: smitch6 on November 28, 2010, 05:08:45 PMYour file is version 2.3.2, the suggestion I posted was for 2.3.3 .... you should update but if your just want to try some things ....
i don't have that line :(
i've attached my portalblacks.php for you to have a quick look through if you don't mind :)
$staff_list[$row['id_member']] = array(
$staff_list[$row['type'] . '-' . $row['id_member']] = array(
$staff_list[$row['type'] . '-' . $row['group_name'] . '-' . $row['real_name']] = array(
Quote from: MorrisGiftShop on November 28, 2010, 05:21:22 PMSays what it means ... another mod you installed changed index.php in the root of your forum so this mod can't find where to "hook" itself in to the code .... you can try uninstalling mods (generally in the reverse order you installed them to avoid problems), or manually update index.php. If you want to attach index.php someone could take a look and tell you what you need to do.
When I try to install I get this error:
Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.
and one in red say "Test failed" and its "Execute Modfication ./index.php"
// Is the forum in maintenance mode? (doesn't apply to administrators.)
// Is the forum in maintenance mode? (doesn't apply to administrators.)
Quote from: MorrisGiftShop on November 28, 2010, 07:09:05 PMIf you want a new tab you will need to get another mod to create menus and then point that new tab (or menu under the tab) back to the SP page ... ie /index.php?page=page1234 or whatever your page is ... some menu mods that do this are this (http://custom.simplemachines.org/mods/index.php?mod=2657) and here (http://arantormods.com/index.php?action=media;sa=item;in=34)
I have got it going now. I have another question. When I add pages how can make a menu tab to link to that page?
Quotestrange you say its 2.3.2 because on the forum at the bottom it says 2.3.3I was reacting to the header in that file plus the changed line but you are correct it is 2.3.3. Looks like most of the file headers were not updated to reflect things as 2.3.2, something the SP team missed.
Quoteit has sorted everyone out but in the wrong orderI see what is occurring .... have to think about it .... the tech team has a higher authority level then the moderators so they ended up under the admins ... then it sorted by the group names with are moderator and senior moderator (alphabetically) ... Let me look at it and give you some options.
Quote
Welcome to SimplePortal!
SimplePortal is one of several portal mods for Simple Machines Forum (SMF). Although always developing, SimplePortal is produced with the user in mind first. User feedback is the number one method of growth for SimplePortal, and our users are always finding ways for SimplePortal to grow. SimplePortal stays competative with other portal software by adding numerous user-requested features such as articles, block types and the ability to completely customize the portal page.
All this and SimplePortal has remained Simple! SimplePortal is built for simplicity and ease of use; ensuring the average forum administrator can install SimplePortal, configure a few settings, and show off the brand new portal to the users in minutes. Confusing menus, undesired pre-loaded blocks and settings that cannot be found are all avoided as much as possible. Because when it comes down to it, SimplePortal is YOUR portal, and should reflect your taste as much as possible.
Ultimate Simplicity
The simplest portal you can ever think of... You only need a few clicks to install it through Package Manager. A few more to create your own blocks and articles. Your portal is ready to go within a couple of minutes, and simple to customise to reflect YOU.
Install Friendly
With the ingenius design of install and update packages, SimplePortal is incredibly install and update friendly. You will never need any manual changes even on a heavily modified forum.
Incredible Theme Support
The simple but powerful structure of SimplePortal brings you wide-range theme support too. You can use SimplePortal with all SMF themes by just adding a button for it.
Professional Support
SimplePortal offers high quality professional support with its own well known support team.
Quote from: smitch6 on November 29, 2010, 09:55:36 AMThere is really not a one glove for all here since the sort order is neither alphabetical nor numerical. The best thing to do is something like this.
Thats really nice of i appreciate your time and effort helping with this
and it would be great if you could come up with a solution because i know quite a few people alongside myself need a solution to this issue
i look forward in your success :)
thanks again
$staff_list = array();
$colorids = array();
$staff_list = array();
$colorids = array();
$sortorder = array('Administrator', 'Senior Leader', 'Senior Moderator', 'Moderator', 'Tech Team');
if (in_array($row['id_member'], $admins))
$row['type'] = 1;
elseif (in_array($row['id_member'], $global_mods))
$row['type'] = 2;
else
$row['type'] = 3;
$staff_list[$row['id_member']] = array(
$sort_key = array_search($row['group_name'],$sortorder);
if ($sort_key !== false)
$row['type'] = $sort_key + 1;
else
$row['type'] = count($sortorder) + 1;
/*
if (in_array($row['id_member'], $admins))
$row['type'] = 1;
elseif (in_array($row['id_member'], $global_mods))
$row['type'] = 2;
else
$row['type'] = 3;
*/
$staff_list[$row['type'] . '-' . ucwords($row['real_name'])] = array(
$icons = array(1 => 'admin', 'gmod', 'lmod');
$icons = array(1 => 'admin', 'gmod', 'gmod', 'lmod', 'lmod', 'lmod');
Quote from: BoZilla on November 30, 2010, 12:02:44 PM
I just moved my sites to a new server and now one of my RSS feed blocks is not working. It just shows this error:
XML error: not well-formed (invalid token) at line 11
You can view it at http://www.myauctionfamily.com on the left side half way down!
That is a VERY interesting report. There have been puzzling problems with that RSS block. It fails where you'd think it out to succeed.
Either your problem is related to your new server, or it is related to a "special" character in a recent addition to the RSS feed, which coincidentally happened at the time of the server move. I'm betting on the latter, but if it is the former, well, that would really be interesting...
Any help would be appreciated!
Quote from: ysite on December 01, 2010, 11:41:04 PMWhat is not showing up for guests?
Why isn't this showing up for guests? (emphasis mine)
Quote from: AngelinaBelle on December 02, 2010, 01:40:06 AMQuote from: ysite on December 01, 2010, 11:41:04 PMWhat is not showing up for guests?
Why isn't this showing up for guests? (emphasis mine)
Quote from: Spuds on December 02, 2010, 10:09:50 AM
As an experiment, in the portal.css file, comment out the compatibility styles section at the bottom like this ...Code Select/* ************************************* */
/* Compatibility styles */
/* ************************************* */
/*h4.catbg span.left, h4.catbg2 span.left, h3.catbg span.left, h3.catbg2 span.left, .table_list tbody.header td span.left
{
float: left;
display: block;
width: 9px;
height: 31px;
background: url(../images/theme/main_block.png) no-repeat 0 -160px;
}
h4.titlebg span.left, h3.titlebg span.left
{
float: left;
display: block;
width: 9px;
height: 31px;
background: url(../images/theme/main_block.png) no-repeat 0 -200px;
}*/
and see what your site looks like. Please note the portal page blocks will be broken but does the rest of the analysis theme look correct at that point?
Quote from: Miss All Sunday on December 02, 2010, 05:50:18 PM
@ysite
just check the Ignore permissions radio button instead of all membergroups.
Quote from: ysite on December 01, 2010, 11:41:04 PM
Why isn't this showing up for guests?
Quote from: Sakae on December 02, 2010, 09:16:01 PMQuote from: Miss All Sunday on December 02, 2010, 05:50:18 PM
@ysite
just check the Ignore permissions radio button instead of all membergroups.
It's a BUG, right? All membergroups should mean... All membergroups! :)
Quote from: シナン on December 03, 2010, 05:26:52 AMQuote from: Sakae on December 02, 2010, 09:16:01 PMQuote from: Miss All Sunday on December 02, 2010, 05:50:18 PM
@ysite
just check the Ignore permissions radio button instead of all membergroups.
It's a BUG, right? All membergroups should mean... All membergroups! :)
"All membergroups" means "a member must have all of the selected membergroups to be able to see it". "One membergroup" means, "a member must have at least of the selected membergroups to be able to see it".
Quote from: AngelinaBelle on December 04, 2010, 03:33:10 PM
You'll need to put the new portal.css in the css/ folder of each of your themes folders.
That should fix the problem.
/* ************************************* */
/* Compatibility styles */
/* ************************************* */
h4.catbg span.left, h4.catbg2 span.left, h3.catbg span.left, h3.catbg2 span.left, .table_list tbody.header td span.left
{
float: left;
display: block;
width: 9px;
height: 31px;
background: url(../images/theme/main_block.png) no-repeat 0 -160px;
}
h4.titlebg span.left, h3.titlebg span.left
{
float: left;
display: block;
width: 9px;
height: 31px;
background: url(../images/theme/main_block.png) no-repeat 0 -200px;
}
/* ************************************* */
/* Compatibility styles */
/* ************************************* */
/* h4.catbg span.left, h4.catbg2 span.left, h3.catbg span.left, h3.catbg2 span.left, .table_list tbody.header td span.left
{
float: left;
display: block;
width: 9px;
height: 31px;
background: url(../images/theme/main_block.png) no-repeat 0 -160px;
}
h4.titlebg span.left, h3.titlebg span.left
{
float: left;
display: block;
width: 9px;
height: 31px;
background: url(../images/theme/main_block.png) no-repeat 0 -200px;
}
*/
Quote from: trekkie2444 on December 05, 2010, 11:51:33 PM
The Analysis RC4 theme. I put the one that was in the default theme?
Here's my forum: http://e-p1.net
#sp_main h3.catbg span.left
{
margin: 0;
}
Quote from: シナン on December 06, 2010, 10:26:49 AMQuote from: trekkie2444 on December 05, 2010, 11:51:33 PM
The Analysis RC4 theme. I put the one that was in the default theme?
Here's my forum: http://e-p1.net
Add this at the end of the portal.css file you copied to the css directory of your custom theme:Code Select#sp_main h3.catbg span.left
{
margin: 0;
}
Quote from: Garou on December 06, 2010, 10:06:40 AM
Assuming that you got your portal.css from either the simple portal zip or copied from curve...
Open the portal.css in the particular themes and scroll down to the bottom and find...Code Select/* ************************************* */
/* Compatibility styles */
/* ************************************* */
h4.catbg span.left, h4.catbg2 span.left, h3.catbg span.left, h3.catbg2 span.left, .table_list tbody.header td span.left
{
float: left;
display: block;
width: 9px;
height: 31px;
background: url(../images/theme/main_block.png) no-repeat 0 -160px;
}
h4.titlebg span.left, h3.titlebg span.left
{
float: left;
display: block;
width: 9px;
height: 31px;
background: url(../images/theme/main_block.png) no-repeat 0 -200px;
}
Change to...Code Select/* ************************************* */
/* Compatibility styles */
/* ************************************* */
/* h4.catbg span.left, h4.catbg2 span.left, h3.catbg span.left, h3.catbg2 span.left, .table_list tbody.header td span.left
{
float: left;
display: block;
width: 9px;
height: 31px;
background: url(../images/theme/main_block.png) no-repeat 0 -160px;
}
h4.titlebg span.left, h3.titlebg span.left
{
float: left;
display: block;
width: 9px;
height: 31px;
background: url(../images/theme/main_block.png) no-repeat 0 -200px;
}
*/
Note that this section is a compatibility fix for Curve based themes. If your theme is based off of Curve this fix will cause you other issues. Only change it in themes you are having issues with on a per theme basis and NEVER in the default Curve themes portal.css.
Quote from: trekkie2444 on December 06, 2010, 04:22:13 PMQuote from: シナン on December 06, 2010, 10:26:49 AMQuote from: trekkie2444 on December 05, 2010, 11:51:33 PM
The Analysis RC4 theme. I put the one that was in the default theme?
Here's my forum: http://e-p1.net
Add this at the end of the portal.css file you copied to the css directory of your custom theme:Code Select#sp_main h3.catbg span.left
{
margin: 0;
}
I just put that in, didn't fix anything.
Quote from: シナン on December 06, 2010, 04:43:44 PM
Did you do a hard refresh (Ctrl + F5) after you made the change? It might be using the old cached CSS.
Quote from: sharks on December 06, 2010, 11:32:50 PM
I would like to report some bugs in 2.3.3 and i installed this on a fresh SMF 1.1.12 with default theme and shoutbox block set to display inside forum only:
When i click on the shoutbox smiley found within the shoutbox, i select an emoticon from the list and when i press the Shout button, i get this in the shoutbox:
sharks.info/Smileys/default/kiss.gif" alt="Kiss" border="0" />
There are no emoticons displayed but only error codes like above for all emoticons that i tried to display via the shoutbox.
I tried it on my existing forum SMF 1.1.11 and the emoticons display fine in the shoutbox. But there is a problem when entering messages. If i click on the Shout button then the message is submitted and it appears in the shoutbox, BUT if i press the Enter button on my keyboard, the message sometimes disappears from the text bar and it doesn't show up inside the shoutbox.
I use the shoutbox as top block in my forum page. The text bar is somehow strangely fixed in its length. It does not fill the dynamic width of the browser/screen. Please test this and you will be able to confirm this bug!
The shout button should also be placed right next to the text bar. My screen is LCD wide-screen 22" so the small "shout" button is so far on the right. It is almost not noticed.
Also, what does the setting Cache do in the shoutbox? It appears to be enabled by default. What is its importance? Won't it make my server/forum slow with time? Need the Cache be flushed regularly and how to do that?
And maybe you could add a button to change the font color of text in the shoutbox and also make the actual clicked smileys appear inside the shoutbox as images, instead of just the text representations. Just some suggestions which i believe will make the shoutbox better and more useful. :)
Quote from: sharks on December 06, 2010, 11:32:50 PMThis bug crops up from time to time when the username is the same as the domain name. I can open a bug report.
When i click on the shoutbox smiley found within the shoutbox, i select an emoticon from the list and when i press the Shout button, i get this in the shoutbox:
sharks.info/Smileys/default/kiss.gif" alt="Kiss" border="0" />
There are no emoticons displayed but only error codes like above for all emoticons that i tried to display via the shoutbox.
QuotePlease post a link
I use the shoutbox as top block in my forum page. The text bar is somehow strangely fixed in its length. It does not fill the dynamic width of the browser/screen. Please test this and you will be able to confirm this bug!
QuoteThe shout button should also be placed right next to the text bar. My screen is LCD wide-screen 22" so the small "shout" button is so far on the right. It is almost not noticed.Is this related to your previous problem?
QuoteAlso, what does the setting Cache do in the shoutbox? It appears to be enabled by default. What is its importance? Won't it make my server/forum slow with time? Need the Cache be flushed regularly and how to do that?I hope Sinan can answer this one.
QuoteAnd maybe you could add a button to change the font color of text in the shoutbox and also make the actual clicked smileys appear inside the shoutbox as images, instead of just the text representations. Just some suggestions which i believe will make the shoutbox better and more useful. :)Please feel welcome to come to SimplePortal.net and post this as a feature request.
QuoteIllegal mix of collations (latin1_general_ci,IMPLICIT) and (latin1_swedish_ci,IMPLICIT) for operation 'ifnull'
File: /nfs/domains/forum/html/Sources/Subs-Portal.php
Line: 1132
Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.12, while your database is at version 1.1.10. The above error might possibly go away if you execute the latest version of upgrade.php.
Quote from: Wally. on December 18, 2010, 05:22:27 PMProbably they don't work well together.
Hey, I just updated my site to RC4, with SP 2.3.3 and Default Avatar 2.0. I was under the impression that when using Default Avatar 2.0 and Simple Portal 2.3.3 I should be able to display the default avatar in the portal blocks. (The previous version of default avatar didn't do this.) But when I finished that wasn't happening. Do I have a problem in my install or do the two mods not work together as I expected.
Quote from: Brack1 on December 20, 2010, 08:47:31 PM
Jue what are the current membergroups you have?
Quote from: tesser on December 22, 2010, 08:29:59 PM
So far this is the best portal
i'v tried them all and this has the best shout box too but it could do with a ding on a new shout with a option to turn sound on and off
Quote from: Spuds on December 23, 2010, 10:02:58 AM
*shrugs* do what you want then but don't ask why someone is not showing up as a moderator when you will not use the build in moderator group.
'group' => $row['group_name'],
'group' => ($row['type'] != 3) ? $row['group_name'] : 'Moderator',
Quote from: PLAYBOY on December 26, 2010, 05:56:40 PMYou may not modify the copyright ::)
How can i change the color of the copyright?
Quote from: Simple Series on December 27, 2010, 07:34:16 AMQuote from: PLAYBOY on December 26, 2010, 05:56:40 PMYou may not modify the copyright ::)
How can i change the color of the copyright?
Quote from: PLAYBOY on December 27, 2010, 09:20:20 AM
How can i change the color of the copyright?
Quote from: eyo on December 30, 2010, 11:49:05 PM
can i just use the blocks and disable the portal homepage? i used to do that with ease in ezportal but with simple i could'nt figure out if it could be done.
Quote from: adi1166 on December 31, 2010, 08:15:10 AMReinstall SP.
hi, i got a little problem...
after instalation SP I can't get to forum or admin panel because i get thist error:
Unable to load the 'Portal' template.
When i replace index.php with org file - forum works, but i have no options from SP (in Installed Packages i have SP)
I'm using SMF 2.0 RC4 and no other mods
Quote from: More-to-life on January 02, 2011, 09:05:43 AMIm looking to change from TinyPortal to SimplePortal & was wondering if the URL in SimplePortal is the same IE www.yourdomain.co.uk/forum/index.phpYes -- the default mode for SimplePortal is "Front Page" mode, where the URL is the same as the forum URL.
QuoteAlso are there any issues with the Pretty Urls mod as all I get are errors with TinyPortalMostly, things seem to work pretty well with Pretty URL. Some users have done a couple of customizations to keep things pretty, though. Try a search on "Pretty URL" at http://SimplePortal.net.
Quote from: PLAYBOY on December 29, 2010, 04:19:41 PMChanging only portal copyright color could be done by changing the HTML & styling of the SimplePortal copyright notice.
Well isnt this gonna change all the copyright color from every mod including smf?
Is there a way to change only portal copyright color?
Quote from: AngelinaBelle on January 02, 2011, 11:18:47 AMQuote from: PLAYBOY on December 29, 2010, 04:19:41 PMChanging only portal copyright color could be done by changing the HTML & styling of the SimplePortal copyright notice.
Well isnt this gonna change all the copyright color from every mod including smf?
Is there a way to change only portal copyright color?
If you find that in Subs-Portal.php, you could put a <span class="sp_copyright"> tag pair around that text, then style it to your heart's content with an appropriate entry in portal.css.
Quote from: AngelinaBelle on January 02, 2011, 11:18:47 AMQuote from: PLAYBOY on December 29, 2010, 04:19:41 PMChanging only portal copyright color could be done by changing the HTML & styling of the SimplePortal copyright notice.
Well isnt this gonna change all the copyright color from every mod including smf?
Is there a way to change only portal copyright color?
If you find that in Subs-Portal.php, you could put a <span class="sp_copyright"> tag pair around that text, then style it to your heart's content with an appropriate entry in portal.css.
Quote from: radioz on January 03, 2011, 07:50:11 AM
I may be wading in on something else, but I needed to change the copyright color for two basic forums (not Simple Portal - yet) that I built recently. With help from forum members, I was successful in making the changes needed. Here is the link to that thread in case it's of use here:
http://www.simplemachines.org/community/index.php?topic=413659.msg2883992#msg2883992 (http://www.simplemachines.org/community/index.php?topic=413659.msg2883992#msg2883992)
I summarized what I did, based on the other meaages in the thread, near the end of the thread. You can just scroll down to get that in the one post.
Warning: strpos() [function.strpos]: Empty delimiter in /web/users/jason/forum/Sources/ForumFirewall.php on line 215
Notice: Undefined index: theme_language_error in /web/users/jason/forum/Sources/Load.php on line 1640
Notice: Undefined index: server in /web/users/jason/forum/Sources/Subs-Post.php on line 532
Notice: Undefined index: forum_name in /web/users/jason/forum/Sources/Subs-Post.php on line 578
Notice: Undefined index: character_set in /web/users/jason/forum/Sources/Subs-Post.php on line 863
Notice: Undefined index: utf8 in /web/users/jason/forum/Sources/Subs-Post.php on line 902
Notice: Undefined index: utf8 in /web/users/jason/forum/Sources/Subs-Post.php on line 904
Notice: Undefined index: server in /web/users/jason/forum/Sources/Subs-Post.php on line 920
Warning: preg_replace() [function.preg-replace]: Compilation failed: invalid UTF-8 string at offset 8 in /web/users/jason/forum/Sources/Subs-Post.php on line 920
Notice: Undefined index: character_set in /web/users/jason/forum/Sources/Subs-Post.php on line 863
Notice: Undefined index: mail_send_unable in /web/users/jason/forum/Sources/Subs-Post.php on line 663
Quote from: radioz on January 11, 2011, 04:21:51 AM
How do you move or remove blocks that you placed on the forum page in the wrong place? I managed to put the same block on the left and right side of the forum and don't know how to correct that short of looking through the code to eliminate the error via code elimination. I also don't understand how to change the orders of the blocks independently of one another relative to the portal and forum pages.
The page that I've messed up: http://www.antiqueradio.net/forum/
This might get easier but it is sure confusing to me as of now. I have read the instructions at the SImple Portal website but that hasn't helped much.
Thanks!
Quote from: żεχเ๏ภ on January 09, 2011, 06:44:34 PM
Simple Portal Versions: 2.3.3
SMF: 1.1.11Code SelectWarning: strpos() [function.strpos]: Empty delimiter in /web/users/jason/forum/Sources/ForumFirewall.php on line 215
Notice: Undefined index: theme_language_error in /web/users/jason/forum/Sources/Load.php on line 1640
Notice: Undefined index: server in /web/users/jason/forum/Sources/Subs-Post.php on line 532
Notice: Undefined index: forum_name in /web/users/jason/forum/Sources/Subs-Post.php on line 578
Notice: Undefined index: character_set in /web/users/jason/forum/Sources/Subs-Post.php on line 863
Notice: Undefined index: utf8 in /web/users/jason/forum/Sources/Subs-Post.php on line 902
Notice: Undefined index: utf8 in /web/users/jason/forum/Sources/Subs-Post.php on line 904
Notice: Undefined index: server in /web/users/jason/forum/Sources/Subs-Post.php on line 920
Warning: preg_replace() [function.preg-replace]: Compilation failed: invalid UTF-8 string at offset 8 in /web/users/jason/forum/Sources/Subs-Post.php on line 920
Notice: Undefined index: character_set in /web/users/jason/forum/Sources/Subs-Post.php on line 863
Notice: Undefined index: mail_send_unable in /web/users/jason/forum/Sources/Subs-Post.php on line 663
Description:
I've been using Simpleportal for a while. GREAT mod. But I decided to have it set to Standalone.
See my forum is at http://mainmedia.me/forum
My standalone page which I set it to point to as http://mainmedia.me/index.php
I only get these errors above when not logged in on standalone page (when logged in, I don't get them). I've had no other errors on anything. My database is UTF 8 btw.
Thanks for ANY help,
Jason
Quote from: radioz on January 11, 2011, 04:21:51 AMYou should be able to look in your list of blocks. If, for example, you had two NEWS blocks, you would look for the NEWS block in the place you don't want it, and disable it or delete it, or set it so it only shows up on certain pages.
I managed to put the same block on the left and right side of the forum
QuoteI also don't understand how to change the orders of the blocks independently of one another relative to the portal and forum pages.Here's the thing -- the blocks are all in one list. This keeps the list of blocks simple (as in easy for the programmers to work with).
Quote from: Imso on January 11, 2011, 08:35:42 PM
Can we add google adsense codes to this and they become active?
Quote from: Brack1 on January 11, 2011, 08:44:58 PMyeah... really? it works without any problem?Quote from: Imso on January 11, 2011, 08:35:42 PM
Can we add google adsense codes to this and they become active?
Do you mean add to a block?
If so then yes. An html block would be used.
Quote from: ACAMS on January 17, 2011, 11:12:04 AMYou can do it in Admin > Simple Portal > Shoutbox, if I'm correct.
How do I empty the shoutbox?
THANKS
Quote from: trekkie2444 on January 19, 2011, 11:53:02 PM
No, what I want is what TinyPortal used to offer...where you can write your own BBCode or HTML article that has nothing to do with a topic on the forum, but acts just like the layout of the rest of the articles (everything is the same except it's not a topic and you just write what you want in it like a thread, but it's not a thread).
Does that make sense?
Quote from: AngelinaBelle on January 27, 2011, 12:48:30 PM
A future version of SimplePortal will do exactly what you want.
For now, every SimplePortal article actually IS a topic post.
One poster did post code for a custom-php "SMF Articles" block. You can find that at SimplePortal.net, by searching for SMF Articles. Then, you can make that custom-php block show up on any page you want.
Another option, of course, for use with the current version of SMF, is to store all the articles away in a single out-of-the-way board (maybe even a child board), and display them on the Portal Page. That's one of the things SimplePortal does best. I think this is the simpler choice.
Either choice is pretty simple.
Quote from: żεχเ๏ภ on January 27, 2011, 07:18:51 PM
Tried looking for the block you said.. Couldn't find it. http://simpleportal.net/index.php?topic=7555.msg42265#msg42265
Quote from: AngelinaBelle on January 27, 2011, 07:34:15 PMQuote from: żεχเ๏ภ on January 27, 2011, 07:18:51 PM
Tried looking for the block you said.. Couldn't find it. http://simpleportal.net/index.php?topic=7555.msg42265#msg42265
Try http://simpleportal.net/index.php?topic=2200.0
Quote from: laetabi on January 28, 2011, 03:40:01 AM
AngelinaBelle, any news on when SimplePortal stand alone articles might be available? "Shortly" sounds good... ;)
Quote from: Jeet Chowdhury on January 28, 2011, 12:24:43 PM
after uninstalling simple portal its still showing menus in old style.
Quote from: Brack1 on January 28, 2011, 12:26:48 PMQuote from: Jeet Chowdhury on January 28, 2011, 12:24:43 PM
after uninstalling simple portal its still showing menus in old style.
Have you checked all the files which simpleportal edits?
You may require manual edits.
Quote from: AngelinaBelle on January 27, 2011, 12:48:30 PMREally? Wow, that's weird don't ask me how I did it, but my articles are posting on the portal....
A future version of SimplePortal will do exactly what you want.
For now, every SimplePortal article actually IS a topic post.
One poster did post code for a custom-php "SMF Articles" block. You can find that at SimplePortal.net, by searching for SMF Articles. Then, you can make that custom-php block show up on any page you want.
Another option, of course, for use with the current version of SMF, is to store all the articles away in a single out-of-the-way board (maybe even a child board), and display them on the Portal Page. That's one of the things SimplePortal does best. I think this is the simpler choice.
Either choice is pretty simple.
Quote from: AngelinaBelle on January 28, 2011, 03:19:51 PMWas like you said, had a custom page wich was calling SSI, it was require, changed it to require_once now it works like a charm.
It sounds as though SSI.php has been included, and something is trying to include it again.
Something is using php's include statement instead of include_once.
ssi_shutdown is the first function definition in that file. So that's why the problem pops up at "function ssi_shutdown"
I don't know which of your mods is doing this.
Which mods use SSI.php? Which page does it happen on? It would be nice to know which file is the one trying to include SSI.php
Can you try narrowing it down by uninstalling the mods in the reverse order you installed them, until the problem goes away?
Troubleshooting this kind of thing can be kind of a pain, but you should be able to manage it.
<script type="text/javascript" src="http://tinychat.com/chatbar/bar.js"></script>
<script type="text/javascript">
chatbar.embed({ room: "d5d0e25662aeb81ffe32d414f01d83dc", theme: "blue", facebook_like: true, tweet_button: true, buzz_button: true, buzz_button: true, digg_button: true, translate: true, width: "fluid", align: "center", position: "bottom"});<
/script>
Quote from: Jeet Chowdhury on January 30, 2011, 03:46:19 PM
how to disable the shoutbox's textbox's autocomplete??
Quote from: Jeet Chowdhury on January 30, 2011, 05:32:02 PM
im using mozilla firefox 4. and textbox auto complete but in ie9 its ok.
Quote from: Jeet Chowdhury on January 31, 2011, 10:35:35 AMRecent Topic only lists the subject line of the recent topic. It was not designed to be pageable.
is there any way or mod to enable recent topic paging? :)
in portal top posters list. the member name link is clicable. i want to do something like. when some one click on user avatar they goto that user profile. how to do that?
Quote from: botb2 on February 10, 2011, 11:16:54 PMYea but for 2.0 RC3 or 4. I just wanna see the comparison.
as in getting it to work? www.thepokerdream.net
Quote from: botb2 on February 10, 2011, 10:54:06 PMWhat do you mean by "verify". The RSS block does not verify feeds.
I've done it twice, both times it failed and wouldn't verify me.
Quote from: botb2 on February 10, 2011, 10:54:06 PMThats because its not an RSS feed .... its a page on how to set up a feed (if you are an affiliate). Its also not php code that you would ever place in a block.
I've done it twice, both times it failed and wouldn't verify me.
Well I tried the RSS Feed for this XML feed I'm trying to get working and I get invalid feed. When I try adding it in as a php block I get this error,
Parse error: syntax error, unexpected ':' in /home/thepok8/public_html/Sources/PortalBlocks.php(3461) : eval()'d code on line 1
This is the feed I'm trying to add to my site, http://www.pokeraffiliatesolutions.com/docs/xmlfeeds.php
http://www.raketracker.com/feeds/poker_rooms/cake-poker.xml
Quote from: MATTEK on February 11, 2011, 12:49:46 AMcheck my website. link in my sig. :)
Yea but for 2.0 RC3 or 4. I just wanna see the comparison.
Quote from: AngelinaBelle on January 27, 2011, 12:48:30 PM
A future version of SimplePortal will do exactly what you want.
For now, every SimplePortal article actually IS a topic post.
One poster did post code for a custom-php "SMF Articles" block. You can find that at SimplePortal.net, by searching for SMF Articles. Then, you can make that custom-php block show up on any page you want.
Another option, of course, for use with the current version of SMF, is to store all the articles away in a single out-of-the-way board (maybe even a child board), and display them on the Portal Page. That's one of the things SimplePortal does best. I think this is the simpler choice.
Either choice is pretty simple.
class="bbc_img resized"
rather than class="bbc_img sp_article"
$row['body'] = preg_replace('~class="bbc_img resized"~i', 'class="bbc_img resized sp_article"', $row['body']);
Quote from: More-to-life on February 20, 2011, 10:46:19 AM
Any updates for RC5 or will it work fine
Just need to know before I upgrade from RC4
Quote from: uninvited13th on February 26, 2011, 08:24:46 PMIt works on my site, and it's 2.0 RC5!
simple portal for smf2.0rc5 please... :D
Quote from: Brack1 on January 30, 2011, 12:36:55 PM
Jeet
The following link will provide the solution for you.
I had the same problem which was solved.
http://www.pixelmansion.com/index.php?topic=89.msg944;topicseen#new
Quote from: AngelinaBelle on March 03, 2011, 03:55:34 PM
ACAMS: ?action=admin;area=portalshoutbox; then edit the permission on the shoutbox itself.
PLAYBOY: Making a WORDPRESS block would require some customization. you'd need to write some php code to do it.
Quote from: Baloch on March 04, 2011, 10:23:43 AM
Kindly update SP for SMF 2.0 RC5
Quote from: AngelinaBelle on March 06, 2011, 11:33:28 AM
I believe that code is meant to go in a custom php block.
Quote from: BSViper on March 05, 2011, 03:00:50 PMCan you provide a link? I would like to understand better.
When Simple Portal installed, all post in forum with multiquote shown wrong.
Forum show only first quote in post, and other quotes shown like simple text, without even borders and color selection...
If i deinstall Simple Portal all shown as expected...
SMF version 2.0 RC4 security patch, Simple Portal 2.3.3
Quote from: AngelinaBelle on March 10, 2011, 01:46:16 PM
For a theme like this, the menu buttons are all in Subs.php. Does your forum button work in the default theme (CURVE)?
Quote from: AngelinaBelle on March 10, 2011, 02:23:02 PM
Please test this and find out whether the button is OK with the default theme.
Quote from: AngelinaBelle on March 10, 2011, 02:37:51 PM
Thanks for that information.
It sounds as though your SimplePortal install did not go quite right in Subs.php.
Did the Package Manager complain about any failed tests in Subs.php
Please go back to the mod page, find the manual install instructions, and work through Subs.php. You should see some code for adding the forum button, and also for figuring out when you are at forum. You will "find" the thing you are supposed to find, and replace it with the code it tells you to replace it with.
Quote from: AngelinaBelle on March 10, 2011, 03:48:45 PM
How many changes did you make in Subs.php? Just the ones about the menu buttons?
'forum' => array(
'title' => empty($txt['sp-forum']) ? 'Forum' : $txt['sp-forum'],
'href' => $scripturl . ($modSettings['sp_portal_mode'] == 1 && empty($context['disable_sp']) ? '?action=forum' : ''),
'show' => in_array($modSettings['sp_portal_mode'], array(1, 3)) && empty($context['disable_sp']),
'sub_buttons' => array(
),
),
'home' => array(
'title' => $txt['home'],
'href' => $modSettings['sp_portal_mode'] == 3 && empty($context['disable_sp']) ? $modSettings['sp_standalone_url'] : $scripturl,
'show' => true,
'sub_buttons' => array(
),
),
Quote from: AngelinaBelle on March 12, 2011, 04:53:24 PM
giovannie,
That change to Subs.php looks about right. It should not cause a shoutbox problem. I wonder if you have installed any other mods in the meantime?
[quote=test]This is a quoted text[/quote]
[color=red][b]A colored answer ?[/b][/color]
Quote from: butch2k on March 15, 2011, 04:51:32 PM
Hummm I noticed something odd with SP and RC5.
Could someone with RC5 and SP installed test posting this ?Code Select[quote=test]This is a quoted text[/quote]
[color=red][b]A colored answer ?[/b][/color]
the parse_tag_cache used with SP seems not to work well with the "parsed_tags_allowed" paramer used with this kind of quote as it results in anything behind it not to be parsed correctly (A colored answer ? appear without any style.)
Quote from: AngelinaBelle on March 15, 2011, 07:42:10 PM
reefforum: SimplePortal, out of the box, does not come with a setting for that.
To achieve this, you would need to do some customization of the sp_recent function in PortalBlocks.php
<tr>
<td class="sp_recent_icon sp_center">
', sp_embed_image(empty($parameters['type']) ? 'post' : 'topic'), '
</td>
<td class="sp_recent_subject">
<a href="', $item['href'], '">', $item['subject'], '</a>
', $item['new'] ? '' : '<a href="' . $scripturl . '?topic=' . $item['topic'] . '.msg' . $item['new_from'] . ';topicseen#new"><img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" alt="' . $txt[302] . '" border="0" /></a>', '<br />[', $item['board']['link'], ']
</td>
<td class="sp_recent_info sp_right">
', $item['poster']['link'], '<br />', $item['time'], '
</td>
</tr>';
Quote from: AngelinaBelle on March 15, 2011, 07:42:10 PM
butch2k: I see what you mean. Tricky stuff. I guess this will need a bug report filed at simpleportal.net
/quote]Thanks i reported the issue.
Quote from: syphergaming on March 21, 2011, 12:23:22 PM
idk if this has been posted on here or not but when i veiw my portal and some other things i see this
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.syphergaming.com%2Fsp2error.png&hash=f44429c1f3097b190ef639aa389d9e767734f785)
i edit this theme me and my m8 edit this theme in RC3
Quote from: Brack1 on March 24, 2011, 10:27:02 AM? pages views?
Not sure if this has been mentioned before but is there an easy way to reset the pages views back to 0?
Quote from: AngelinaBelle on March 24, 2011, 10:13:05 AM
SimplePortal does not show avatars in the recent posts block. This feature would require a change to the php code.
Other users have also been discussing similar things recently in the custom coding boards at http://SimplePortal.net
Quote from: AngelinaBelle on March 25, 2011, 08:06:22 AM
@ironhide1: The RSS problem is likely related to the one feed giving you the problem. You can check it at the feed validator.
Unfortunately, though, the SimplePortal RSS block fails on some feeds that seem perfectly legitimate.
The reason is that the block depends on some SMF functions that seem like they ought to do the job, but were not explicitly designed for or tested with RSS feeds.
Quote from: ukhalik2 on April 02, 2011, 05:33:24 PM
anyone got it fully functioning on RC5 ?
Quote from: AngelinaBelle on April 04, 2011, 06:55:45 AM
Try removing one portal block at a time, to see if you can figure out if one of them is causing the slowdown.
Another possibility is that you simply have too much going on at the portal page for what your database host allows in in database power.
You will have to experiment a bit to narrow it down.
Quote from: AngelinaBelle on April 10, 2011, 12:25:34 PM
Sounds like you might have some bad HTML on the page.
IE sometimes handles incorrect HTML more gracefully -- the other browsers make some guesses about "what you really meant".
Quote
What version of SimplePortal are you using? What version of SMF? Are you using the "no body" option on any of your blocks?
<?php
if (!defined('SMF'))
die('Hacking attempt...');
/*
File: Subs-SPortal1-1.php
Version: SimplePortal 2.1.1 for SMF 1.x
getBlockInfo()
getFunctionInfo()
getCategoryInfo()
getArticleInfo()
createArticle()
fixCategoryArticles()
fixColumnRows()
changeBlockRow()
changeState()
sp_loadPermissions()
spAllowedTo()
sp_loadMemberGroups()
loadDatabaseTables()
databaseTableExists()
*/
function getBlockInfo($column_id = null, $block_id = null, $state = null, $show = null)
{
global $scripturl, $context, $db_prefix, $settings, $txt;
$query = array();
if(!empty($column_id))
$query[] = "col = '$column_id'";
if(!empty($block_id))
$query[] = "ID_BLOCK = '$block_id'";
if(!empty($state))
$query[] = "state = '1'";
$request = db_query("
SELECT ID_BLOCK, label, type, content, parameters, col, row, state, force_view, allowed_groups, permission_type, display
FROM {$db_prefix}sp_blocks" .
(!empty($query) ? " WHERE " . implode(' AND ', $query) : "") .
" ORDER BY row", __FILE__, __LINE__);
$return = array();
while ($row = mysql_fetch_assoc($request))
{
if(!empty($show) && !getShowInfo($row['ID_BLOCK'], $row['display']))
continue;
if(!spAllowedTo('block', $row['ID_BLOCK']))
continue;
$return[] = array(
'id' => $row['ID_BLOCK'],
'label' => $row['label'],
'type' => $row['type'],
'type_text' => !empty($txt['sp_function_'.$row['type'].'_label']) ? $txt['sp_function_'.$row['type'].'_label'] : $txt['sp_function_unkown_label'],
'content' => $row['content'],
'parameters' => $row['parameters'],
'column' => $row['col'],
'row' => $row['row'],
'state' => empty($row['state']) ? 0 : 1,
'force_view' => $row['force_view'],
'allowed_groups' => $row['allowed_groups'],
'permission_type' => $row['permission_type'],
'display' => $row['display'],
);
}
mysql_free_result($request);
return $return;
}
function getFunctionInfo($function = null)
{
global $db_prefix;
$request = db_query("
SELECT ID_FUNCTION, name, parameter
FROM {$db_prefix}sp_functions" .
(!empty($function) ? " WHERE name = '$function'" : "") .
" ORDER BY ID_FUNCTION ASC", __FILE__, __LINE__);
$return = array();
while ($row = mysql_fetch_assoc($request))
{
//There is one function who is not allowed to use by non admins
if($row['name'] == 'sp_php' && !allowedTo('admin_forum'))
continue;
$return[] = array(
'id' => $row['ID_FUNCTION'],
'function' => $row['name'],
'parameter' => $row['parameter'],
);
}
mysql_free_result($request);
return $return;
}
function getCategoryInfo($category_id = null)
{
global $scripturl, $context, $db_prefix, $settings, $txt;
$request = db_query("
SELECT ID_CATEGORY, name, picture, articles, publish
FROM {$db_prefix}sp_categories" .
(!empty($category_id) ? " WHERE ID_CATEGORY = '$category_id'" : "") .
" ORDER BY ID_CATEGORY", __FILE__, __LINE__);
$return = array();
while ($row = mysql_fetch_assoc($request))
{
$return[] = array(
'id' => $row['ID_CATEGORY'],
'name' => $row['name'],
'picture' => array (
'href' => $row['picture'],
'image' => '<img src="' . $row['picture'] . '" alt="' . $row['name'] . '" width="75" />',
),
'articles' => $row['articles'],
'publish' => $row['publish'],
);
}
mysql_free_result($request);
return $return;
}
function getArticleInfo($article_id = null, $category_id = null, $message_id = null, $approved = null)
{
global $db_prefix;
$query = array();
if(!empty($article_id))
$query[] = "ID_ARTICLE = '$article_id'";
if(!empty($category_id))
$query[] = "ID_CATEGORY = '$category_id'";
if(!empty($message_id))
$query[] = "ID_MESSAGE = '$message_id'";
if(!empty($approved))
$query[] = "approved = '1'";
$request = db_query("
SELECT a.ID_ARTICLE, a.ID_CATEGORY, a.ID_MESSAGE, a.approved, c.name
FROM {$db_prefix}sp_articles as a
LEFT JOIN {$db_prefix}sp_categories AS c ON (c.ID_CATEGORY = a.ID_CATEGORY)" .
(!empty($query) ? " WHERE " . implode(' AND ', $query) : "") .
" ORDER BY ID_ARTICLE", __FILE__, __LINE__);
$return = array();
while ($row = mysql_fetch_assoc($request))
{
$return[] = array(
'article' => array(
'id' => $row['ID_ARTICLE'],
'approved' => $row['approved'],
),
'category' => array(
'id' => $row['ID_CATEGORY'],
'name' => $row['name'],
),
'message' => array(
'id' => $row['ID_MESSAGE'],
),
);
}
mysql_free_result($request);
return $return;
}
function createArticle($articleOptions)
{
global $db_prefix;
$articleOptions['ID_CATEGORY'] = !empty($articleOptions['ID_CATEGORY']) ? (int) $articleOptions['ID_CATEGORY'] : 0;
$articleOptions['ID_MESSAGE'] = !empty($articleOptions['ID_MESSAGE']) ? (int) $articleOptions['ID_MESSAGE'] : 0;
$articleOptions['approved'] = !empty($articleOptions['approved']) ? (int) $articleOptions['approved'] : 0;
$request = db_query("
SELECT ID_MESSAGE
FROM {$db_prefix}sp_articles
WHERE ID_MESSAGE = '$articleOptions[ID_MESSAGE]'
LIMIT 1", __FILE__, __LINE__);
list ($exists) = mysql_fetch_row($request);
mysql_free_result($request);
if(empty($articleOptions['ID_CATEGORY']) || empty($articleOptions['ID_MESSAGE']) || $exists)
return false;
db_query("
INSERT INTO {$db_prefix}sp_articles
(ID_CATEGORY, ID_MESSAGE, approved)
VALUES ('$articleOptions[ID_CATEGORY]', '$articleOptions[ID_MESSAGE]', $articleOptions[approved])", __FILE__, __LINE__);
db_query("
UPDATE {$db_prefix}sp_categories
SET articles = articles + 1
WHERE ID_CATEGORY = $articleOptions[ID_CATEGORY]
LIMIT 1", __FILE__, __LINE__);
}
function fixCategoryArticles()
{
global $db_prefix;
$categoryList = getCategoryInfo();
$category_ids = array();
foreach($categoryList as $category)
$category_ids[] = $category['id'];
foreach($category_ids as $category) {
$article_count = 0;
$result = db_query("
SELECT COUNT(*)
FROM {$db_prefix}sp_articles
WHERE ID_CATEGORY = $category", __FILE__, __LINE__);
list ($article_count) = mysql_fetch_row($result);
mysql_free_result($result);
db_query("
UPDATE {$db_prefix}sp_categories
SET articles = $article_count
WHERE ID_CATEGORY = $category
LIMIT 1", __FILE__, __LINE__);
}
}
function fixColumnRows($column_id = null)
{
global $db_prefix;
$blockList = getBlockInfo($column_id);
$block_ids = array();
foreach($blockList as $block)
$block_ids[] = $block['id'];
$counter = 0;
foreach($block_ids as $block) {
$counter = $counter + 1;
db_query("
UPDATE {$db_prefix}sp_blocks
SET row = $counter
WHERE ID_BLOCK = $block
LIMIT 1", __FILE__, __LINE__);
}
}
function changeBlockRow($block_id = null, $direction = null)
{
global $db_prefix;
$blockInfo = getBlockInfo(null, $block_id);
$blockInfo = $blockInfo[0];
db_query("
UPDATE {$db_prefix}sp_blocks
SET row = $blockInfo[row]
WHERE row = $blockInfo[row] " . ($direction == 'up' ? "-" : "+") . " 1
AND col = $blockInfo[column]
LIMIT 1", __FILE__, __LINE__);
db_query("
UPDATE {$db_prefix}sp_blocks
SET row = row " . ($direction == 'up' ? "-" : "+") . " 1
WHERE ID_BLOCK = $block_id
AND col = $blockInfo[column]
LIMIT 1", __FILE__, __LINE__);
}
function changeState($type = null, $id = null)
{
global $db_prefix;
if($type == 'block')
$query = array(
'column' => 'state',
'table' => 'blocks',
'id' => 'ID_BLOCK'
);
elseif($type == 'category')
$query = array(
'column' => 'publish',
'table' => 'categories',
'id' => 'ID_CATEGORY'
);
elseif($type == 'article')
$query = array(
'column' => 'approved',
'table' => 'articles',
'id' => 'ID_ARTICLE'
);
else
return false;
$request = db_query("
SELECT $query[column]
FROM {$db_prefix}sp_$query[table]
WHERE $query[id] = $id
LIMIT 1", __FILE__, __LINE__);
list ($state) = mysql_fetch_row($request);
mysql_free_result($request);
$state = (int) $state;
$state = ($state == 1) ? 0 : 1 ;
db_query("
UPDATE {$db_prefix}sp_$query[table]
SET $query[column] = $state
WHERE $query[id] = $id
LIMIT 1", __FILE__, __LINE__);
}
// Make the allowed check faster, because i can cache this data!
// force_view is used for the way to make 3 diffrent ways to check blocks!
function sp_loadPermissions($type = null) {
global $db_prefix, $sp_context, $user_info;
//Checkup
if(empty($type) || !in_array($type, array('block', 'article')))
return false;
//Prevent double load :)
if(!isset($sp_context['permissions'][$type]))
$sp_context['permissions'][$type] = array();
else
return !empty($sp_context['permissions'][$type]); //On false allowed to nothing ;P
//Blockquery Informations :)
if($type == 'block') {
// Get the necessary block information.
$request = db_query("
SELECT allowed_groups AS allowed_groups, id_block AS id, permission_type
FROM {$db_prefix}sp_blocks
WHERE (permission_type = 2
OR (FIND_IN_SET(" . implode(', allowed_groups) OR FIND_IN_SET(', $user_info['groups']) . ", allowed_groups)))", __FILE__, __LINE__);
}
else {
// Get the necessary block information.
$request = db_query("
SELECT allowed_groups AS allowed_groups, id_article AS id
FROM {$db_prefix}sp_articles
WHERE (FIND_IN_SET(" . implode(', allowed_groups) OR FIND_IN_SET(', $user_info['groups']) . ", allowed_groups))", __FILE__, __LINE__);
}
//The output will only show the allowed positions ;D
while($row = mysql_fetch_assoc($request)) {
//This Permission need a extra checkup 8), it's a faster query now, a lot faster!
if(!empty($row['permission_type']) && $row['permission_type'] == 1) {
if(count(array_intersect($user_info['groups'], explode(',', $row['allowed_groups']))) != count($user_info['groups']))
continue;
}
$sp_context['permissions'][$type][$row['id']] = $row['id'];
}
mysql_free_result($request);
//Okay chached it ;) now it should be faster... a lot faster 8)
return !empty($sp_context['permissions'][$type]);
}
// Function to check if users are allowed to view certain blocks.
function spAllowedTo($type = null, $id = null)
{
global $sp_context;
// SP moderators are supermen. :D i need to do nothing if this correct! It's to late checked!
// And this is the reason why admin unselect never work!
// If we like to fix this we need to think about a way to allowed it in a other way or insert a force admin check
if(allowedTo('sp_moderate'))
return true;
// Sanitize the ID.
$id = (int) $id;
// Make sure that we have a proper id, load Permissions and store a chache
if(empty($id) || sp_loadPermissions($type) === false || empty($type))
return false;
//Pah if it isset than you allowed, if not than not :)
return isset($sp_context['permissions'][$type][$id]);
}
/*
void sp_loadMemberGroups(Array $selectedGroups = array, Array $removeGroups = array(), string $show = 'normal', string $contextName = 'member_groups')
This will file the $context['member_groups'] to the given options
$selectedGroups means all groups who should be shown as selcted, if you like to check all than insert an 'all'
You can also Give the function a string with '2,3,4'
$removeGroups this group id should not shown in the list
$show have follow options
'normal' => will show all groups, and add a guest and regular member (Standard)
'post' => will load only post groups
'master' => will load only not postbased groups
$contextName where the datas should stored in the $context;
The Administrator group id 1 will evertime ignored!
*/
function sp_loadMemberGroups($selectedGroups = array(), $show = 'normal', $contextName = 'member_groups') {
global $db_prefix, $context, $smcFunc, $txt;
//Some additional Language stings are needed
loadLanguage('ManageBoards');
// Make sure its empty
$context[$contextName] = array();
//Preseting some things :)
if(!is_array($selectedGroups))
$checked = strtolower($selectedGroups) == 'all';
else
$checked = false;
if(!$checked && !empty($selectedGroups)) {
if(!is_array($selectedGroups))
$selectedGroups = explode(',', $selectedGroups);
//Remove all strings, i will only allowe ids :P
foreach($selectedGroups as $k => $i)
$selectedGroups[$k] = (int) $i;
$selectedGroups = array_unique($selectedGroups);
}
else
$selectedGroups = array();
//Okay let's checkup the show function
$show_option = array(
'normal' => 'ID_GROUP != 1',
'post' => 'minPosts != -1',
'master' => 'minPosts = -1 AND ID_GROUP != 1',
);
$show = strtolower($show);
if(!isset($show_option[$show]))
$show = 'normal';
// Guest and Members are added manually. Only on normal ond master View =)
if($show == 'normal' || $show == 'master') {
$context[$contextName][-1] = array(
'id' => -1,
'name' => $txt['membergroups_guests'],
'checked' => $checked || in_array(-1, $selectedGroups),
'is_post_group' => false,
);
$context[$contextName][0] = array(
'id' => 0,
'name' => $txt['membergroups_members'],
'checked' => $checked || in_array(0, $selectedGroups),
'is_post_group' => false,
);
}
// Load membergroups.
$request = db_query("
SELECT groupName, ID_GROUP, minPosts
FROM {$db_prefix}membergroups
WHERE ".$show_option[$show]."
ORDER BY minPosts, ID_GROUP != 2, groupName",__FILE__, __LINE__);
while ($row = mysql_fetch_assoc($request))
{
$context[$contextName][(int) $row['ID_GROUP']] = array(
'id' => $row['ID_GROUP'],
'name' => trim($row['groupName']),
'checked' => $checked || in_array($row['ID_GROUP'], $selectedGroups),
'is_post_group' => $row['minPosts'] != -1,
);
}
mysql_free_result($request);
}
function sp_queryFix($tourniquet)
{
global $sportal_version, $context;
if (SMF == 'SSI' || empty($context['template_layers']) || WIRELESS)
return $tourniquet;
$fix = str_replace('{version}', $sportal_version, '<a href="http://www.simpleportal.net/" target="_blank">SimplePortal {version}</a>');
$tourniquet = preg_replace(base64_decode('figsIFNpbXBsZSBNYWNoaW5lcyBMTEM8L2E+KX4='), base64_decode('LCBTaW1wbGUgTWFjaGluZXMgTExDPC9hPjxiciAvPg==') . $fix, $tourniquet);
if (strpos($tourniquet, 'www.simpleportal.net') === false)
{
$fix = '<div class="smalltext" style="text-align: center; width: 100%;">' . $fix . '</div>';
$tourniquet = preg_replace('~</body>\s*</html>~', $fix, $tourniquet);
}
return $tourniquet;
}
// Function to get a block's display/show information.
function getShowInfo($block_id = null, $display = null)
{
global $db_prefix, $context, $modSettings;
// Do we have the display info?
if(empty($display))
{
// Make sure that its an integer.
$block_id = (int) $block_id;
// We need an ID.
if(empty($block_id))
return false;
// Get the info.
$request = db_query("
SELECT display
FROM {$db_prefix}sp_blocks
WHERE ID_BLOCK = $block_id
LIMIT 1", __FILE__, __LINE__);
list ($display) = mysql_fetch_row($request);
mysql_free_result($request);
}
// Some variables for ease.
$action = !empty($context['current_action']) ? $context['current_action'] : '';
$board = !empty($context['current_board']) ? $context['current_board'] : '';
$portal = (empty($action) && empty($board)) ? true : false;
// Set some action exceptions.
$exceptions = array(
'post' => array('announce', 'editpoll', 'post2', 'sendtopic'),
'register' => array('activate', 'coppa'),
'forum' => array('collapse'),
'admin' => array('credits', 'theme', 'viewquery', 'admin', 'ban', 'boardrecount', 'cleanperms', 'detailedversion', 'dumpdb', 'featuresettings', 'featuresettings2', 'findmember', 'maintain', 'manageattachments', 'manageboards', 'managecalendar', 'managesearch', 'membergroups', 'modlog', 'news', 'optimizetables', 'packageget', 'packages', 'permissions', 'pgdownload', 'postsettings', 'regcenter', 'repairboards', 'reports', 'serversettings', 'serversettings2', 'smileys', 'viewErrorLog', 'viewmembers', 'spadmin'),
'login' => array('reminder'),
'profile' => array('trackip', 'viewprofile'),
);
// Set the action to more known one.
foreach($exceptions as $key => $exception)
{
if(in_array($action, $exception))
$action = $key;
}
// If no display info and/or integration disabled and we are on portal; show it!
if((empty($display) || empty($modSettings['sp_enableIntegration'])) && $portal)
return true;
// No display info and/or integration disabled and no portal; no need...
elseif(empty($display) || empty($modSettings['sp_enableIntegration']))
return false;
// Get ready for real action if you haven't yet.
elseif(!is_array($display))
$display = explode(', ', $display);
// Did we disable all blocks for this action?
if(!empty($modSettings['sp_' . $action . 'IntegrationHide']))
return false;
// If we will display show the block.
elseif(in_array('all', $display))
return true;
// If we are on portal, show portal blocks; if we are on forum, show forum blocks.
elseif(($portal && (in_array('portal', $display) || in_array('sportal', $display))) || (!$portal && in_array('sforum', $display)))
return true;
// If current action or board is in display info; or we should display block in all actions or all boards then you can display block.
elseif((!empty($action) && (in_array('allaction', $display) || in_array($action, $display))) || (!empty($board) && (in_array('allboard', $display) || in_array($board, $display))))
return true;
// Ummm, no block!
return false;
}
function sp_checkSyntax($code)
{
return @eval('return true;' . $code);
}
/*
bool loadDatabaseTables ()
- Preload database Tables this will be only done once per script call
- Return false on error
- Mysql 3.x+ Compatible ;) for SMF 1.1.x
*/
function loadDatabaseTables() {
global $database_tables, $db_name;
if(isset($database_tables))
return !empty($database_tables);
else
$database_tables = array();
//Prepare a Checkup ;D
$request = db_query("SHOW TABLES FROM `{$db_name}`", __FILE__, __LINE__);
while ($row = mysql_fetch_assoc($request))
$database_tables[] = strtolower(current($row));
mysql_free_result($request);
return !empty($database_tables);
}
/*
bool databaseTableExists (string tablename, bool $addprefix = true)
- Work only in SMF 1.1.x (SMF 2.0.x work diffrent, but it's possible to insert)
- Return true if the tablename exits
- $addprefix will automatic add the $db_prefix (Check also it this is allready done!)
*/
function databaseTableExists($tablename = '', $addprefix = true) {
global $database_tables, $db_prefix;
//Nothing to Serach for ;)
if(empty($tablename))
return false;
//Error ?_?
if(empty($database_tables) && !loadDatabaseTables())
return false;
//First thing i do.. i know normal i should not so this ;P But it's good enouph for smf ;)
$tablename = strtolower($tablename);
//Table Prefix auto add? :D
if($addprefix === true && strpos($tablename, $db_prefix) !== 0) {
//Looks not so nice ;) but it work trust me ;P
if(strpos($tablename, '{$db_prefix}') !== false)
$tablename = str_replace('{$db_prefix}', $db_prefix, $tablename);
elseif(strpos($tablename, '$db_prefix') !== false)
$tablename = str_replace('$db_prefix', $db_prefix, $tablename);
else
$tablename = $db_prefix.$tablename;
}
return in_array($tablename, $database_tables);
}
//This function return the correct array that is called.
function sp_loadCalendarData($type, $low_date, $high_date = false) {
global $sourcedir;
static $loaded;
if(!isset($loaded)) {
if(file_exists($sourcedir . '/Subs-Calendar.php')) {
require_once($sourcedir . '/Subs-Calendar.php');
$loaded['getEvents'] = 'getEventRange';
$loaded['getBirthdays'] = 'getBirthdayRange';
$loaded['getHolidays'] = 'getHolidayRange';
}
else {
require_once($sourcedir . '/Calendar.php');
$loaded['getEvents'] = 'calendarEventArray';
$loaded['getBirthdays'] = 'calendarBirthdayArray';
$loaded['getHolidays'] = 'calendarHolidayArray';
}
}
return !empty($loaded[$type]) ? $loaded[$type]($low_date, ($high_date === false ? $low_date : $high_date)) : array();
}
function sp_startElement($parser, $name, $attrs)
{
global $rss_data, $rss_current, $rss_main;
switch($name)
{
case 'RSS':
case 'RDF:RDF':
case 'ITEMS':
$rss_current = '';
break;
case 'CHANNEL':
$rss_main = 'CHANNEL';
break;
case 'IMAGE':
$rss_main = 'IMAGE';
$rss_data['IMAGE'] = array();
break;
case 'ITEM':
$rss_main = 'ITEMS';
break;
default:
$rss_current = $name;
break;
}
}
function sp_endElement($parser, $name)
{
global $rss_data, $rss_current, $rss_counter;
$rss_current = '';
if ($name == 'ITEM')
$rss_counter++;
}
function sp_characterData($parser, $data)
{
global $rss_data, $rss_current, $rss_main, $rss_counter;
if (!empty($rss_current))
{
switch($rss_main)
{
case 'CHANNEL':
if (isset($rss_data[$rss_current]))
$rss_data[$rss_current] .= $data;
else
$rss_data[$rss_current] = $data;
break;
case 'IMAGE':
if (isset($rss_data[$rss_main][$rss_current]))
$rss_data[$rss_main][$rss_current] .= $data;
else
$rss_data[$rss_main][$rss_current] = $data;
break;
case 'ITEMS':
if (isset($rss_data[$rss_main][$rss_counter][$rss_current]))
$rss_data[$rss_main][$rss_counter][$rss_current] .= $data;
else
$rss_data[$rss_main][$rss_counter][$rss_current] = $data;
break;
}
}
}
?>
QuoteCan you use your "backed-up" files to run a version of your forum files that does not have SimplePortal installed?Yes, but I dont know which forum files would that be.
Quote from: ACAMS on April 12, 2011, 08:33:58 PMeval()'d codeThat's your clue -- it is happening because of eval'd code, being evaluated in Subs-Portal.php (and therefore, by SimplePortal)
<?
$target_path = "../Robot_Exchange/AW/"; /// upload folder
$allowedExtentions = "bot"; // allowed extentions
// Upload File
if($_FILES['uploadedfile']['name']){
$ext = substr($_FILES['uploadedfile']['name'], strrpos($_FILES['uploadedfile']['name'], '.') + 1);
$chechextentions = explode(",", $allowedExtentions);
$isallowed = 0;
foreach($chechextentions as $key => $name){
if($name==$ext){$isallowed = 1;}
}
Quote from: AngelinaBelle on April 14, 2011, 10:48:18 AM
This piece of code depends on $_FILES['uploadedfile']['name']) being set. But, in the context of this SimplePortal page, it doesn't appear that the value has been set.
http://www.php.net/manual/en/reserved.variables.files.php (http://www.php.net/manual/en/reserved.variables.files.php)
The $_FILES php variable is supposed to be an array of items uploaded to the current script via the HTTP POST method.
But if you are not getting to that page via an HTTP post that uploaded items, then that variable will not have been set.
Quote from: Alyen on April 15, 2011, 05:00:56 PM
error in database in SimplePortal 2.3.3 on SMF 2.0 RC5
Illegal mix of collations (utf8_unicode_ci,IMPLICIT) and (utf8_general_ci,IMPLICIT) for operation 'ifnull'
Arquivo: .../httpdocs/Sources/Subs-Portal.php
Linha: 1266
Quote from: shuban on April 16, 2011, 10:41:33 PM
"
Fatal error: Cannot redeclare sp_topposter() (previously declared in /home/biologyf/public_html/Sources/Load.php:2539) in /home/biologyf/public_html/Sources/PortalBlocks.php on line 605"
I get this error after I install it, what should I do?
Quote from: Miss All Sunday on April 16, 2011, 10:54:38 PMQuote from: Alyen on April 15, 2011, 05:00:56 PM
error in database in SimplePortal 2.3.3 on SMF 2.0 RC5
Illegal mix of collations (utf8_unicode_ci,IMPLICIT) and (utf8_general_ci,IMPLICIT) for operation 'ifnull'
Arquivo: .../httpdocs/Sources/Subs-Portal.php
Linha: 1266
You need to change your tables collation to use either utf8_unicode or utf8_general all, sometimes even columns needs to be changed.
<?
$target_path = "../Robot_Exchange/AW/"; /// upload folder
$allowedExtentions = "bot"; // allowed extentions
// Upload File
if($_FILES['uploadedfile']['name']){
$ext = substr($_FILES['uploadedfile']['name'], strrpos($_FILES['uploadedfile']['name'], '.') + 1);
$chechextentions = explode(",", $allowedExtentions);
$isallowed = 0;
foreach($chechextentions as $key => $name){
if($name==$ext){$isallowed = 1;}
}
if($isallowed == 0){ die("Sorry that filetype [$ext] is not allowed. We allow ($allowedExtentions)");}
if (trim($_POST['user']) == '')
{
echo "Please put your name in the box";
}
elseif (file_exists($target_path.$_FILES['uploadedfile']['name'])) {
$bad_stuff = array("..", ".", "/", "\\");
$random_digit = str_replace($bad_stuff, "", $_POST['user']) . "_DUPLICATE";
if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path.$random_digit.basename( $_FILES['uploadedfile']['name']))) {
echo "Your Bot ". $random_digit.basename( $_FILES['uploadedfile']['name']). " has been uploaded <br>";
$fileurl= "http://".$_SERVER['SERVER_NAME']. "/".$target_path.$random_digit.basename( $_FILES['uploadedfile']['name']);?>
<>
<div align="center">
Thanks for sharing your bot<br>
<? } else{
echo "There was an error uploading the file, please try again!";
}
// other wise just upload
} else {
$bad_stuff = array("..", ".", "/", "\\");
$random_digit = str_replace($bad_stuff, "", $_POST['user']). "_";$random_digit = ($random_digit !="" ? $random_digit : die("empty name"));
if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path.$random_digit.basename( $_FILES['uploadedfile']['name']))) {
echo 'Your Bot '.$random_digit.basename( $_FILES['uploadedfile']['name']). " has been uploaded <br>";
$fileurl= "http://".$_SERVER['SERVER_NAME']. "/".$target_path.$random_digit.basename( $_FILES['uploadedfile']['name']);?>
<br><div align="center">Thanks for sharing your bot<br>
<>
<? } else{
echo "There was an error uploading the file, please try again!";
}
}
// Ask for upload info
}else{ ?>
<>
<form enctype="multipart/form-data" action="index.php?page=page4971" method="POST">
<div align="center"><p>
<BR><strong>YOUR FORUM NAME</strong><br />
<input type="text" name="user" />
<input type="hidden" name="MAX_FILE_SIZE" value="5000000000" />
</p>
<p><BR />
Upload AW bots ONLY 125.0 KG or less<BR />
<BR />
<input name="uploadedfile" type="file" />
<input type="submit" value="Upload File" />
</p>
<>
</form>
<div align="center"><br />
<? } ?>
<>
<BR><div align="center">
<><br><br><br>
if ( isset($_FILES['uploadedfile']['name'] )
if($_FILES['uploadedfile']['name'])
if ( isset($_FILES['uploadedfile']['name'] )
$target_path = "../Robot_Exchange/AW/"; /// upload folder
$allowedExtentions = "bot"; // allowed extentions
// Upload File
if( isset($_FILES['uploadedfile']['name']) ){
$ext = substr($_FILES['uploadedfile']['name'], strrpos($_FILES['uploadedfile']['name'], '.') + 1);
$chechextentions = explode(",", $allowedExtentions);
$isallowed = 0;
foreach($chechextentions as $key => $name){
if($name==$ext){$isallowed = 1;}
}
if($isallowed == 0){ die("Sorry that filetype [$ext] is not allowed. We allow ($allowedExtentions)");}
if (trim($_POST['user']) == '')
{
echo "Please put your name in the box";
}
elseif (file_exists($target_path.$_FILES['uploadedfile']['name'])) {
$bad_stuff = array("..", ".", "/", "\\");
$random_digit = str_replace($bad_stuff, "", $_POST['user']) . "_DUPLICATE";
if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path.$random_digit.basename( $_FILES['uploadedfile']['name']))) {
echo "Your Bot ". $random_digit.basename( $_FILES['uploadedfile']['name']). " has been uploaded <br>";
$fileurl= "http://".$_SERVER['SERVER_NAME']. "/".$target_path.$random_digit.basename( $_FILES['uploadedfile']['name']);?>
<>
<div align="center">
Thanks for sharing your bot<br>
<? } else{
echo "There was an error uploading the file, please try again!";
}
// other wise just upload
} else {
$bad_stuff = array("..", ".", "/", "\\");
$random_digit = str_replace($bad_stuff, "", $_POST['user']). "_";$random_digit = ($random_digit !="" ? $random_digit : die("empty name"));
if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path.$random_digit.basename( $_FILES['uploadedfile']['name']))) {
echo 'Your Bot '.$random_digit.basename( $_FILES['uploadedfile']['name']). " has been uploaded <br>";
$fileurl= "http://".$_SERVER['SERVER_NAME']. "/".$target_path.$random_digit.basename( $_FILES['uploadedfile']['name']);?>
<br><div align="center">Thanks for sharing your bot<br>
<>
<? } else{
echo "There was an error uploading the file, please try again!";
}
}
// Ask for upload info
}else{ ?>
<>
<form enctype="multipart/form-data" action="index.php?page=page4971" method="POST">
<div align="center"><p>
<BR><strong>YOUR FORUM NAME</strong><br />
<input type="text" name="user" />
<input type="hidden" name="MAX_FILE_SIZE" value="5000000000" />
</p>
<p><BR />
Upload AW bots ONLY 125.0 KG or less<BR />
<BR />
<input name="uploadedfile" type="file" />
<input type="submit" value="Upload File" />
</p>
<>
</form>
<div align="center"><br />
<? } ?>
<>
<BR><div align="center">
<><br><br><br>
<?
$target_path = "../uploads/files/"; /// upload folder
$allowedExtentions = "rar,zip,7Z,7z"; // allowed extentions
// Upload File
if( isset($_FILES['uploadedfile']['name']) ){
// Check file extention
$ext = substr($_FILES['uploadedfile']['name'], strrpos($_FILES['uploadedfile']['name'], '.') + 1);
$chechextentions = explode(",", $allowedExtentions);
$isallowed = 0;
foreach($chechextentions as $key => $name){
if($name==$ext){$isallowed = 1;}
}
if($isallowed == 0){ die("Sorry that filetype [$ext] is not allowed, Please use ($allowedExtentions)");}
// See if filename exists
// if it exists rename it
if (file_exists($target_path.$_FILES['uploadedfile']['name'])) {
$random_digit=rand(0000,9999);
if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path.$random_digit.basename( $_FILES['uploadedfile']['name']))) {
echo "The file ". $random_digit.basename( $_FILES['uploadedfile']['name']). " has been uploaded <br>";
$fileurl= "http://".$_SERVER['SERVER_NAME']. "/".$target_path.$random_digit.basename( $_FILES['uploadedfile']['name']);?>
<div align="center">
<input name="textfield" type="text" id="textfield" value="[url=<?=$fileurl?>]<?=$fileurl?>[/url]" size="105" />
<? } else{
echo "There was an error uploading the file, please try again!";
}
// other wise just upload
} else {
if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path.basename( $_FILES['uploadedfile']['name']))) {
echo "The file ". $random_digit.basename( $_FILES['uploadedfile']['name']). " has been uploaded <br>";
$fileurl= "http://".$_SERVER['SERVER_NAME']. "/".$target_path.$random_digit.basename( $_FILES['uploadedfile']['name']);?>
<input name="textfield" type="text" id="textfield" value="[url=<?=$fileurl?>]<?=$fileurl?>[/url]" size="105" />
<? } else{
echo "There was an error uploading the file, please try again!";
}
}
// Ask for upload info
}else{ ?>
<>
<form enctype="multipart/form-data" action="index.php?page=page4749" method="POST">
<div align="center">
<p>
<input type="hidden" name="MAX_FILE_SIZE" value="5000000000" />
<BR />
Choose a file to upload .zip, 7Zip or .rar ONLY<BR />
<BR />
<input name="uploadedfile" type="file" />
<input type="submit" value="Upload File" />
</p>
<>
</form>
<div align="center"><br />
<? } ?>
<>
<BR><div align="center">
<BR><strong>TERMS OF SERVICE</strong><><BR>
<div align="center">
gametechmods.com file host is a free file hosting service, we allow you to upload your files onto our server for free.<BR>
These files can be linked to forums or friends and can not be seen by anyone without the file name.<BR>
We reserve the right to ban any individual or website from using our services for any reason.<BR>
<strong>Do not upload copywrited or illegal content.</strong><>
Quote from: Bigguy on April 21, 2011, 11:14:25 PM
What is the error in the error log. ???
Quote from: ACAMS on April 12, 2011, 08:33:58 PM
I have SMF 2.0 RC3 with the RC4 security patch and Simpleportal 2.3.2
I am getting an error in my error log whenever anybody clicks a link to one of my PHP pages, it does not give an error for BBC, or HTML.
http://gametechmods.com/forums/index.php?/page,page2096.html (http://gametechmods.com/forums/index.php?/page,page2096.html)
8: Undefined index: uploadedfile
File: /home/gametechmods/gametechmods.com/forums/Sources/Subs-Portal.php(1155) : eval()'d code
Line: 5
you will see that line 5 has nothing to do with anything.
Quote from: AngelinaBelle on April 22, 2011, 09:23:52 AM
Isn't line 5 of your eval'd codeCode Selectif( isset($_FILES['uploadedfile']['name']) ){
if( isset($_FILES['uploadedfile']['name']) ){
Quote from: AngelinaBelle on April 21, 2011, 08:00:02 AM
Perhaps if ( isset($_FILES) && isset($_FILES['uploadedfile']) && isset($_FILES['uploadedfile']['name']) ) would work better for you?Quote
At this point, I think we are confident that this is not a SimplePortal-specific problem. I feel that I am not solving your problem quickly and efficiently. You might find more and better help than I have been able to provide in a custom coding board. You can ask there about the correct way to check this php Variable without creating php errors.
<p><a href="index.php?page=page4106"" target="_blank" >Play your uploaded MP3's</a></p>
<p><a href="index.php?page=page4107"" target="_blank" >Classic Rock Player</a></p>
<p><a href="index.php?page=page4108"" target="_blank" >Country Music Player</a></p>
http://gametechmods.com/forums/index.php/index.php?page=page4106
<p><a href="page=page4106"" target="_blank" >Play your uploaded MP3's</a></p>
....BUT it still came out http://gametechmods.com/forums/index.php/index.php?page=page4106
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>MP3 Players</title>
</head>
<body>
<table width="23%" height="178" border="2" align="center" cellpadding="4px" bordercolor="#000000">
<tr>
<td width="57%" height="170" valign="top">
<p><a href="index.php?page=page4106">Play your uploaded MP3's</a></p>
<p><a href="index.php?page=page4107">Classic Rock Player</a></p>
<p><a href="index.php?page=page4108">Country Music Player</a></p>
</td></tr></table>
<br />
</body>
</html>
QuoteEDIT: The only way it will take the code is HTML, php gives an error
echo '<table width="23%" height="178" border="2" align="center" cellpadding="4px" bordercolor="black">
<tr>
<td width="57%" height="170" valign="top">
<p><a href="index.php?page=page4106">Play your uploaded MP3s</a></p>
<p><a href="index.php?page=page4107">Classic Rock Player</a></p>
<p><a href="index.php?page=page4108">Country Music Player</a></p>
</td></tr></table>
<br />';
echo '<table width="23%" height="178" border="2" align="center" cellpadding="4px" bordercolor="black">
<tr>
<td width="57%" height="170" valign="top">
<p><a href="index.php?page=page4106">Play your uploaded MP3's</a></p>
<p><a href="index.php?page=page4107">Classic Rock Player</a></p>
<p><a href="index.php?page=page4108">Country Music Player</a></p>
</td></tr></table>';
[img]https://picasaweb.google.com/teos1955/Cambodia?authkey=Gv1sRgCOWM-5PfuqS0lgE#5607733418829291538[/img]
[img width=300]https://lh4.googleusercontent.com/_se0aqm-n1iA/TdKr1VhoIBI/AAAAAAAAGL4/JV_DOCz3EyQ/s720/_MG_3162.jpg[/img]
Quote from: teos55 on May 26, 2011, 04:42:42 AMI think shoutbox time should be controlled by the time zone each user selects in profile preferences. This will require investigation...
SMF 1.1.13 default theme Simple 2.3.3
Noticed that shoutbox time zone is -1 to my actual time. There is no parm afaik to enter the zone difference .
Quote from: Madzgo on May 26, 2011, 10:27:05 AMSP articles are just regular SMF topics. So if you have any good post/bad post mods installed, they will still work.
Is there anyway to make Good Post/Bad Post voting options on SP articles??
Quote from: GlitchPC on May 27, 2011, 03:59:49 PM1. SimplePortal is not tested with any of these mods. It may well work fine with all of them. I recommend trying it out on a "test" forum to avoid any little surprises. There is always the possibility that installation of one mod will require manual installation steps for another mod, as well -- something else that might best be sorted out on a test forum.
1. Is this mod compatible with SMF 2.0 RC5 with the following addons:
a) Welcome Topic Mod 2.1
b) SMF Staff Page 1.7
c) Referrals System 3.0.2
d) Stop Forum Spam 0.9
e) Facebook_Likev.1.4 1.4
2. I installed SMF in my root directory...not in a "forum" directory. Will this mod still work...and are there any other issues I may have to consider before uploading and installing this mod?
Quote from: smtek on June 04, 2011, 09:51:53 AM
I installed simple portal and added a shout box, after i disabled the portal now the shoutbox is not visible in forum. Is there anyway to add shoutbox to forum?
Quote from: teos55 on June 04, 2011, 06:00:52 PM
SMF 1.1.13 default theme
Is there a way to redirect the member directly to the main portal page, rather then to forum at the initial
login ?
Portal mode= Front page is set.
initial login goes to h t t p: // m y s i t e.org/index.php?action=forum
Quote from: AZMazda3 on June 14, 2011, 12:52:22 PM
I just attempted to upgrade to 2.0 rc3 to rc5 no problems
Quote from: sremick on June 14, 2011, 04:08:05 PMQuote from: AZMazda3 on June 14, 2011, 12:52:22 PM
I just attempted to upgrade to 2.0 rc3 to rc5 no problems
Why would you upgrade to RC5 when 2.0 final has been out since Saturday?
Anyway... can anyone confirm that SP works fine on 2.0 final if you emulate RC4 during install? Or are there bugs/issues and we need to wait for an updated version of SP?
Quote from: sremick on June 14, 2011, 04:08:05 PMQuote from: AZMazda3 on June 14, 2011, 12:52:22 PM
I just attempted to upgrade to 2.0 rc3 to rc5 no problems
Why would you upgrade to RC5 when 2.0 final has been out since Saturday?
Anyway... can anyone confirm that SP works fine on 2.0 final if you emulate RC4 during install? Or are there bugs/issues and we need to wait for an updated version of SP?
Quote from: aoife on June 14, 2011, 04:23:38 PMQuote from: sremick on June 14, 2011, 04:08:05 PMQuote from: AZMazda3 on June 14, 2011, 12:52:22 PM
I just attempted to upgrade to 2.0 rc3 to rc5 no problems
Why would you upgrade to RC5 when 2.0 final has been out since Saturday?
Anyway... can anyone confirm that SP works fine on 2.0 final if you emulate RC4 during install? Or are there bugs/issues and we need to wait for an updated version of SP?
In that case I should start testing my version of 2.0 Final, ugh. Here we go again...
I just installed 2.3.3 to SMF 2.0 without using emulation and it seems to be working fine.
Quote from: Studio1031 on June 14, 2011, 07:12:16 PM
yeah, i installed 2.3.3 on SMF 2.0 "as is" without issue.. still had to copy the portal.css to the themes, but other than that, everything seems to work perfectly.
Quote from: AZMazda3 on June 14, 2011, 08:14:30 PMQuote from: Studio1031 on June 14, 2011, 07:12:16 PM
yeah, i installed 2.3.3 on SMF 2.0 "as is" without issue.. still had to copy the portal.css to the themes, but other than that, everything seems to work perfectly.
Ok, I upgraded to 2.0 installed SP 2.3.3 and again, it is no where to be found. It's been awhile...so am I missing a step adding SP?
Quote from: aoife on June 14, 2011, 09:01:46 PMQuote from: AZMazda3 on June 14, 2011, 08:14:30 PMQuote from: Studio1031 on June 14, 2011, 07:12:16 PM
yeah, i installed 2.3.3 on SMF 2.0 "as is" without issue.. still had to copy the portal.css to the themes, but other than that, everything seems to work perfectly.
Ok, I upgraded to 2.0 installed SP 2.3.3 and again, it is no where to be found. It's been awhile...so am I missing a step adding SP?
Did you enable it in the Config settings? I have it set to Front Page....
Quote from: tatack on June 16, 2011, 06:35:21 AM
Does Simple Portal 2.3.3 work with SMF 2.0 ?
Quote from: tabletsdroid on June 17, 2011, 03:23:20 AMDoing the 2.0 install would have wiped out any mods you had previously installed. Did you install SimplePortal AFTER the SMF 2.0 install?
This is also a fresh install of smf 2.0 which has not been upgraded.
Quote from: MC73 on June 18, 2011, 08:11:46 PM
You may have to uninstall SP and ftp into your files and delete the Folders and files that SP installed ... then run then upload sp again and install it again ....
I had the same thing happen to me when i forgot to uninstall SP during the rc2 to rc3 upgrade .....
Quote from: GlitchPC on June 19, 2011, 07:45:40 PM
Bump! http://www.simplemachines.org/community/index.php?topic=227599.msg3079986#msg3079986
Quote from: PLAYBOY on June 22, 2011, 11:32:58 PM
I used to use SP in my 1.1.14 now i upgraded to 2.0 and i get blue edges on top of the blocks when i install SP.
Can anybody tell me why is this happening and how can i fix it?
Quoteput portal.css in your theme's folder / css.
Quote from: helike13 on June 24, 2011, 03:25:17 AM
Is it recommended to install SimplePortal to a heavily modified SMF forum posteriorly? Or it screws up the modification?
Quote from: C4G-TK on June 24, 2011, 11:07:34 AMQuote from: helike13 on June 24, 2011, 03:25:17 AM
Is it recommended to install SimplePortal to a heavily modified SMF forum posteriorly? Or it screws up the modification?
I've had SimplePortal on one of my forums for at least two years and have almost 60 mods installed. It has worked great.
Quote from: helike13 on June 24, 2011, 12:02:48 PM
Did you installed SimplePortal after you installed 80 other mods? Or you installed the 80 mods after equipped with SimplePortal?
I have only 2 mods and lots of annoying manual code modifications that I can not exactly count at the moment.
Quote from: C4G-TK on June 24, 2011, 12:43:50 PM
1) Always backup your files before you do an install.
Quote from: helike13 on June 24, 2011, 02:42:56 PMQuote from: C4G-TK on June 24, 2011, 12:43:50 PM
1) Always backup your files before you do an install.
What's with the database?
Does SimplePortal mod the database?
totalpaglamy.com
Quote from: flybox on June 30, 2011, 10:40:09 AM
Hi!
I am having some troubles with my Simple Portal Installed on latest version SMF 2.0 the blue color just won't fill whole line on top of the block take a look at here:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg803.imageshack.us%2Fimg803%2F240%2Fproblemc.png&hash=1b3c75e82c8c7d487fd1bbedd10b129a58ab4889)
HOW TO FIX THIS?
and how do i make that when a user logins they get redirected to portal, not on the forum??
Quote from: jestism on June 27, 2011, 10:43:19 PM
PROBLEM SOLVED......
The problem is that I had a "/" at the end of the SMF forum path....
Removed it and everything installed properly.
QuoteAnd if SimplePortal bothered to fix it in the 6 months or so since the last update ...
Quote from: nob4uask on June 30, 2011, 07:39:07 PM
Morn All,
I have posted this on the SP website and thought I would give it a try here to.
I am trying to add a panels tab to a custome HTML/PHP block. I created a spry pannels tab using dreamweaver cs3 and figured I would upload the files and copy the code to the block. Didn't exactly work..lol
I have searched for assistance and thought I read somewhere that you can only have body info in the custom block, just don't remember. If anyone can point me in the right direction it would be appreciated.
The code I am trying to enter is below.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script src="SpryAssets/SpryTabbedPanels.js" type="text/javascript"></script>
<link href="SpryAssets/SpryTabbedPanels.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="TabbedPanels1" class="TabbedPanels">
<ul class="TabbedPanelsTabGroup">
<li class="TabbedPanelsTab" tabindex="0">NFL News</li>
<li class="TabbedPanelsTab" tabindex="0">Yahoo Sports</li>
</ul>
<div class="TabbedPanelsContentGroup">
<div class="TabbedPanelsContent">Content 1</div>
<div class="TabbedPanelsContent">Content 2</div>
</div>
</div>
<script type="text/javascript">
<!--
var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1");
//-->
</script>
</body>
</html>
I am using the default smf theme so I uploaded the js & css files to that folder.
Thank you for your time.
Quote from: flybox on June 30, 2011, 10:40:09 AM
Hi!
I am having some troubles with my Simple Portal Installed on latest version SMF 2.0 the blue color just won't fill whole line on top of the block take a look at here:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg803.imageshack.us%2Fimg803%2F240%2Fproblemc.png&hash=1b3c75e82c8c7d487fd1bbedd10b129a58ab4889)
HOW TO FIX THIS?
Quote from: telles0808 on June 30, 2011, 02:15:50 PM
Hello folks.
I did a Google+1 button for who wanna share the News on the first page of your Site (Portal).
You'll need to modify the "PortalBlocks.php" inside the ".../forum/Sources/" folder
........Thanks.
Quote from: Brack1 on June 30, 2011, 02:29:12 PM
............ the default themes portal.css file has to be placed into your theme folder.
::)
Quote from: More-to-life on July 16, 2011, 12:31:10 PM
Hi Guys
Are there any updates due for SMF 2.0 Gold
Thanks in advance
Quote from: More-to-life on July 16, 2011, 12:37:01 PM
erm...not me ;D
Thanks for the quick reply
Quote from: More-to-life on July 21, 2011, 09:23:52 AM
Ive upgraded to 2.0 Gold & tried to install & emulate install SP but all I get is
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
How did you lot get this to work then?
Quote from: aoife on July 21, 2011, 09:31:13 AMYep tried that as mentioned in by previous postQuote from: More-to-life on July 21, 2011, 09:23:52 AM
Ive upgraded to 2.0 Gold & tried to install & emulate install SP but all I get is
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
How did you lot get this to work then?
don't emulate, just install to 2.0. that worked for me.
:)
Quote from: soki2ng on July 18, 2011, 07:47:20 AMThat "starting post id" feature allows you to specify the earliest post that will be featured. It does not give you a way to display one post in a "sticky" position, for example.
can i specify more than one post id to be displayed first before any others? example:
/?Topic=187.0, 190.0, 119.0 etc
Quote from: AngelinaBelle on July 27, 2011, 10:25:28 AM
* If you start with fresh SMF 2.0, with no mods installed
* Do you have such blank white pages anywhere?
Quote from: AngelinaBelle on July 27, 2011, 11:22:54 AM
I am sorry I did not understand. Please tell meQuote from: AngelinaBelle on July 27, 2011, 10:25:28 AM
* If you start with fresh SMF 2.0, with no mods installed
* Do you have such blank white pages anywhere?
Quote from: AngelinaBelle on July 27, 2011, 03:46:42 PM
Did you have any problem BEFORE you started installing SimplePortal, or did all the problems begin with installation of Simpleportal?
instalowanie portalu - po udanym z pliku zip brak widoczności strony modyfikacji oraz działanie portalu o czym wspomniałem już wcześniej
Portal da się zainstalować jak się przerobi tar na zip - ale portal ma w działaniu kilka problemów o czym już pisałem
Quote from: urgent on July 27, 2011, 08:41:41 PM
Hello:
I just installed simpleportal manually. Now when I click a link for categories or post, it just reloads the homepage. Any ideas on where I should start? My initial idea is to reload the sources folder from a clean install and start again. Thanks.
Quote from: AngelinaBelle on July 28, 2011, 10:50:53 AM
urgent,
I am sorry I missed your original post.
Manual installation can be tricky. If you know which SMF files you edited, it should be enough to replace them.
These files will include index.php, some in the Sources folder, and some in your Themes folder.
Is there some reason you elected not to use the package manager to install the mod?
If only some of the tests failed, it is often easier to first do the install, then fix up the files that failed their test.
Quote from: urgent on July 28, 2011, 05:37:10 PMQuote from: AngelinaBelle on July 28, 2011, 10:50:53 AM
urgent,
I am sorry I missed your original post.
Manual installation can be tricky. If you know which SMF files you edited, it should be enough to replace them.
These files will include index.php, some in the Sources folder, and some in your Themes folder.
Is there some reason you elected not to use the package manager to install the mod?
If only some of the tests failed, it is often easier to first do the install, then fix up the files that failed their test.
np thanks for responding. I did manual installation because I had other mods installed and remember trying to install an earlier module and it failing.
The thing is other links work, like the admin section works fine. When I try clicking on category or post links, it just goes to the homepage.
This link works and goes to the admin section:
index.php?action=admin;area=corefeatures;d07e5399375=924d3660194834c1591126fbbdf22a39
But this link generated from the simpleportal recent post doesn't and just refreshes the homepage:
index.php?topic=1.msg1;topicseen#new
same with this one for the categories:
index.php?board=1.0
Thanks.
Quote from: AngelinaBelle on August 03, 2011, 08:32:57 PM
rollingrock:
Administrator should find a little delete icon all the way on the right-hand side of the shout.
It looks like this: (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fsimpleportal.net%2FThemes%2Fmehmene%2Fimages%2Fsp%2Fdelete_small.png&hash=cd053b5dc1e7ff8c8f20063a8434718d17af42c9)
Click that, and delete the shout.
Quote from: AngelinaBelle on August 08, 2011, 04:02:25 PM
This is very surprising. I have never heard of this kind of behavior before. Are there other mods installed, which might affect the order in which the boards are displayed? Maybe the different mods are not getting along somehow?
Quote
[Welcome to the Cafe]
Read First, Rules of the Cafe
New to DC? Introduce Yourself
Have a Question About the Site?
[Auto Detailing 101]
Start Here
[The Cafe Detailing Help Desk]
Detailing Help
[Show of your recent Detail]
Cafe Detailing Gallery
Cafe Hall of Fame Detail Work
Website Photos
Quote
[General Category]
General Discussion
Watch Cafe
Gun Room
The Soap Box
Car/Truck Mod Talk
The Detailer's Cafe Events
Testing Area
Classic Car Photos and discussions
Quote from: AngelinaBelle on August 09, 2011, 11:42:20 AMMaybe the garage mod?
dsantana -- you are having some kind of AJAX problem, I think. Do you have any other AJAX-based mods installed?
Quote from: AngelinaBelle on August 09, 2011, 11:41:38 AM
rollingrock -- that's not just a little different. Those categproes amd boards listed in the admin page. It looks like a completely different site. And you say that just turning off the portal fixes the problem?Quote
[Welcome to the Cafe]
Read First, Rules of the Cafe
New to DC? Introduce Yourself
Have a Question About the Site?
[Auto Detailing 101]
Start Here
[The Cafe Detailing Help Desk]
Detailing Help
[Show of your recent Detail]
Cafe Detailing Gallery
Cafe Hall of Fame Detail Work
Website PhotosQuote
[General Category]
General Discussion
Watch Cafe
Gun Room
The Soap Box
Car/Truck Mod Talk
The Detailer's Cafe Events
Testing Area
Classic Car Photos and discussions
Quote from: AngelinaBelle on August 09, 2011, 01:52:39 PM
You say the problem started the moment you installed SimplePortal?
Perhaps shutting it off would make a difference.
Have you tried re-ordering the boards since they started appearing in the strange order?
Quote from: AngelinaBelle on August 09, 2011, 03:00:24 PM
SimplePortal should not be messing with the boardindex sort order at all.
So enabling/disabling, using integrated vs front page vs standalone, boxes on portal only or everywhere -- none of that OUGHT to make a difference.
I would suggest uninstalling it first. If the boards are still out of order, then it is not SimplePortal at all.
If the boards get better after an uninstall, then simpleportal must have SOMETHING to do with the problem.
Then, if unistalling fixes the problem, please try re-installing and fiddling with many different settings.
If the problem goes away when SimplePortal is uninstalled, then the problem COULD BE some weird side effect of (SimplePortal + another mod). Because SimplePortal has no way to reorder board index on its own.
#sp_center { width: 100%; vertical-align: top; }
actually removing the line with the width MIGHT make a difference. It is worth a shot, in any case. Which gallery are you using?
Quote from: AngelinaBelle on August 16, 2011, 10:15:10 AM
The image has spilled out of the sp_center "box" it is supposed to be in. It is above the sp_right background, but below the words. Which gallery mod are you using? How does it figure out how wide to display the photo? The issue is possibly related to a feature of simpleportal. It tries to accomodate some strange browser behavior by setting the width of the table column sp_center to 100%. This works for most browsers most of the time, even though it is not strictly correct. If sp_left is 200px and sp_right is 200px, then sp_center cannot possibly be 100%. You can try, in portal.css,Code Select#sp_center { width: 100%; vertical-align: top; }
actually removing the line with the width MIGHT make a difference. It is worth a shot, in any case. Which gallery are you using?
Quote from: JFlame on August 17, 2011, 03:37:53 PM
I am running SimplePortal 2.3.2 (need to upgrade, I know). I use the "Recent Topics" block on my home page set to show Topics, not posts.
What I'm seeing is that sometimes, no matter what I set the "Number of topics to display" parameter to, the list will shrink to a number less than the setting. I am looking into why this is now by analyzing the code and queries, but it is eluding me so I want to see if anybody is familiar with this issue.
So basically I set the number of topics to be 40, and on some days it might show 40, then maybe 35, 25, 39, 40, etc. There is some other variable that I can't quite put my finger on, it's either a time variable that is affecting the data returned or something else.
'min_message_id' => $modSettings['maxMsgID'] - 35 * min($num_recent, 5),
'min_message_id' => $modSettings['maxMsgID'] - 10000,
Quote from: AngelinaBelle on August 17, 2011, 06:44:58 PM
Does that block draw from all boards, or from only some of the boards?
($modSettings['maxMsgID'] - 35 * min($num_recent, 5))
Quote from: AngelinaBelle on August 18, 2011, 08:49:52 AM
JFlame,
This is exactly the reason for the problem. You can fix this problem by making a change or two in SSI.php.
In ssi_recentPosts, and in ssi_recentTopics, you'll see:Code Select($modSettings['maxMsgID'] - 35 * min($num_recent, 5))
Change that 35 to something larger. Just how large will depend on how busy the rest of your forum is compared to the boards in your block. You might need a 50, or even 100 to get what you need here.
Quote from: rollingrock on August 19, 2011, 10:20:24 PM
Ok, new issue
On my home imac my site looks fine while using photos looking at threads.
On many users laptops they are telling them they have a scroll bar on threads with photos. I have confirmed this on my work lap top so what I did was not allow right side blocks to show but that didn't fix it. Seems the sight may not be auto fitting to the screen. Is that even a setting?
Quote from: rgecy on August 19, 2011, 11:00:25 PM
Any idea why this is happening? Its not just in Simple Portal, but also in My Download mod by vbgamer. But does not happen anywhere else in the forum.
Thanks
RGecy
Quote from: Shadow Queen on August 17, 2011, 10:05:44 PM
How good of this portal work? Is TIny Portal better?
I am just asking.
Quote from: Brack1 on August 19, 2011, 11:12:01 PMQuote from: Shadow Queen on August 17, 2011, 10:05:44 PM
How good of this portal work? Is TIny Portal better?
I am just asking.
I prefer the way this portal looks compared to TP.
Quote from: AngelinaBelle on August 23, 2011, 07:15:17 AM
Good luck with SimplePortal. Let us know if you have any questions about it?
<div class="sp_image smalltext">', ($showLink ? '
<a href="' . $item['file']['href'] . '">' . $item['file']['filename'] . '</a><br />' : ''), '
', $item['file']['image']['link'], '<br />', ($showDownloads ? '
' . $txt['downloads'] . ': ' . $item['file']['downloads'] . '<br />' : ''), ($showPoster ? '
' . $txt['posted_by'] . ': ' . $item['member']['link'] : ''), '
</div>
</td>', !$direction ? '
Quote from: AngelinaBelle on August 22, 2011, 03:50:52 PM
If you exceed the allowable width, you'll get both horizontal and vertical scroll bars.
But I don't think there is a default maximum height.
Quote from: AngelinaBelle on August 23, 2011, 01:47:17 PM
The administrator can delete individual shouts. There is a little icon next to each one. Click it, and the post will disappear.
<div id="playerCamaraDiv">
<div>
<script src="flowplayer/flowplayer-3.1.4.min.js"></script>
<!-- player container-->
<div id="player" style="display:block;width:380px;height:300px;"><object width="100%" height="100%" id="player_api" data="flowplayer/flowplayer.commercial-3.1.5.swf" type="application/x-shockwave-flash"><param name="allowfullscreen" value="true"><param name="allowscriptaccess" value="always"><param name="quality" value="high"><param name="cachebusting" value="false"><param name="bgcolor" value="#000000"><param name="flashvars" value="config={"key":"#$9aebd05d6acc83bc985","buffering":false,"autoPlay":true,"wmode":"opaque","canvas":{"backgroundColor":"#000000","backgroundGradient":"low"},"clip":{"url":"http://camara-c-paj-mar.reserva.ebd.csic.es/stream_flv/","autoPlay":true,"autoBuffering":true,"bufferLength":2,"live":true,"provider":"http","scaling":"fit","wmode":"opaque"},"showErrors":false,"plugins":{"controls":{"url":"flowplayer/flowplayer.controls-3.1.5.swf","autoHide":"always","hideDelay":"2000","all":true,"play":false,"volume":false,"mute":false,"time":false,"stop":false,"playlist":false,"fullscreen":true,"scrubber":true,"backgroundColor":"#000000","tooltips":{"buttons":true,"fullscreen":"Enter Fullscreen mode"}}},"playerId":"player","playlist":[{"url":"http://camara-c-paj-mar.reserva.ebd.csic.es/stream_flv/","autoPlay":true,"autoBuffering":true,"bufferLength":2,"live":true,"provider":"http","scaling":"fit","wmode":"opaque"}]}"></object></div>
<!-- this script block will install Flowplayer inside previous A tag -->
<script language="JavaScript">
flowplayer("player", "flowplayer/flowplayer.commercial-3.1.5.swf", {
//product key for ebd.csic.es
key: '#$9aebd05d6acc83bc985',
buffering: false,
autoPlay: true,
wmode: 'opaque',
canvas: {
backgroundColor: '#000000',
backgroundGradient: 'low'
},
clip: {
url: 'http://camara-c-paj-mar.reserva.ebd.csic.es/stream_flv/',
autoPlay: true,
autoBuffering: true,
bufferLength: 2,
live: true,
provider: 'http',
scaling: 'fit',
wmode: 'opaque',
onStart: function (){
//if (!flashembed.isSupported([10, 32])) {
//alert("IS SUPPORTED");
//} else {
//failed
// alert("Si la imagen se queda congelada, mueva ligeramente la barra de desplazamiento inferior.");
//}
}
},
// don't show errors in the player
showErrors: false,
onBegin: function (){
//alert("ESTAMOS EN ONBEGIN");
//alert("...con state: " + this.getState());
//alert("...con status: " + this.getStatus());
//alert("...is paused? " + this.isPaused());
//alert("...is playing? " + this.isPlaying());
},
onStart: function (){
//alert("ESTAMOS EN ONSTART");
//alert("...con state: " + this.getState());
//alert("...con status: " + this.getStatus());
//alert("...is paused? " + this.isPaused());
//alert("...is playing? " + this.isPlaying());
},
onPause: function (){
//alert("ESTAMOS EN ONPAUSE");
//alert("...con state: " + this.getState());
//alert("...con status: " + this.getStatus());
//alert("...is paused? " + this.isPaused());
//alert("...is playing? " + this.isPlaying());
},
onBeforeSeek: function (){
//alert("ESTAMOS EN onBeforeSeek");
//alert("...con state: " + this.getState());
//alert("...con status: " + this.getStatus());
//alert("...is paused? " + this.isPaused());
//alert("...is playing? " + this.isPlaying());
},
onLoad: function (){
//alert("ESTAMOS EN ONLOAD");
//alert("...con state: " + this.getState());
//alert("...con status: " + this.getStatus());
//alert("...is paused? " + this.isPaused());
//alert("...is playing? " + this.isPlaying());
},
onBufferEmpty: function (){
//alert("onBufferEmpty!!!");
},
onBufferFull: function (){
//alert("onBufferFull!!!");
},
onBufferStop: function (){
//alert("onBufferStop!!!");
},
onNetStreamEvent: function (event){
//alert("onNetStreamEvent: " + event);
},
onSeek: function (){
//alert("onSeek!!!");
},
onError: function(errCode, errMessage){
//alert("ERROR: " + errCode + errMessage);
if(errCode == 100){
alert("Plugin initialization failed. Please, refresh your browser or try it again later");
}
else if(errCode == 200){
alert("Stream not found. Please, refresh your browser or try it again later");
}
else if(errCode == 201){
alert("Unable to load stream or clip file. Please, refresh your browser or try it again later");
}
else if(errCode == 202){
alert("Provider specified in clip is not loaded. Please, refresh your browser or try it again later");
}
else if(errCode == 300){
alert("Player initialization failed. Please, refresh your browser or try it again later");
}
else if(errCode == 301){
alert("Unable to load plugin. Please, refresh your browser or try it again later");
}
else if(errCode == 302){
alert("Error when invoking plugin external method. Please, refresh your browser or try it again later");
}
else if(errCode == 303){
alert("Failed to load resource such as stylesheet or background image. Please, refresh your browser or try it again later");
}
else{
alert("An unexpected error has ocurred while playing the stream. Please, refresh your browser");
}
},
plugins: { // load one or more plugins
controls: { // load the controls plugin
url: 'flowplayer/flowplayer.controls-3.1.5.swf', // always: where to find the Flash object
// now the custom options of the Flash object
autoHide: 'always',
hideDelay: '2000',
all: true,
play: false,
volume: false,
mute: false,
time: false,
stop: false,
playlist: false,
fullscreen: true,
scrubber: true,
backgroundColor: '#000000',
tooltips: { // this plugin object exposes a 'tooltips' object
buttons: true,
fullscreen: 'Enter Fullscreen mode'
}
}
}
});
</script>
</div>
</div>
Quote from: Miss All Sunday on August 25, 2011, 11:41:52 AMYeah, I know it works, but on my site's block it seems not to. -_- Can you give it a look? My site: http://www.projectolynx.com/
I tried the link you gave and its working fine? those "linces" are sleeping right now ;)
oh wait, that is not your site isnt it?
perhaps it is this:flowplayer/flowplayer.commercial-3.1.5.swf
try putting the full url to your player swf or the full path
Quote from: harry66 on August 23, 2011, 01:41:20 PM
Hey,
does anybody know a fix for Shoutbox Spam? Its very annoying :/
thanks
Quote from: bluehaze1991 on August 26, 2011, 02:05:35 AM
when i uninstalled simple portal 2.3 i got some errors but I accidently kept going with the uninstalling process
( ! ) Parse error: syntax error, unexpected T_DOUBLE_ARROW in C:\wamp\www\index.php on line 230
// Here's the monstrous $_REQUEST['action'] array - $_REQUEST['action'] => array($file, $function).
$actionArray = array(
'activate' => array('Register.php', 'Activate'),
Quote from: AngelinaBelle on August 30, 2011, 04:29:56 PM
I would not advise a fully manual install of SimplePortal.
If there are a couple of "test failed" on the install, do the rest automatically, then do just the couple things by hand.
Did you keep a "backup" copy of index.php? If you put it in place of the current, broken, index.php, you will have something you can use.
If not, you can get one from the correct install set.
Or, you can use ftp to look in Packages/backup directory, get the most recent backup in there, extract index.php, and put it in place of the current, broken, index.php. For more on this backups directory, please see: http://wiki.simplemachines.org/smf/A_mod_broke_my_forum_what_should_I_do
You may be forced to finish up by uninstalling SimplePortal and the other, most-recently-installed mod (the most recent file backup was created just before you installed that other mod). Then you can re-install. It won't look pretty, but it should work.
Quote from: AngelinaBelle on August 30, 2011, 09:10:29 PM
You removed about 80 lines from index.php. This kind of mistake is pretty easy to make, but it really messes up your forum.
If you compare the two files, you will see the difference between them. It could be difficult to spot by eye -- so you might want to use a tool to compare two files. WinMerge is an example of windows software that can do this job for you.
My advice is to put all the saved php files in place of all the ones you changed while installing SimplePortal. Then your files will be back to before the install. Since you did not use the package manager, it should have no record of ever having installed SimplePortal.
Now, you are ready to install SimplePortal again. Please use the package manager this time. It is easier.
Most of the tests should pass. There may be a small number of failed tests. You should be able to handle these.
Take careful notes on the edits you will have to do by hand. Please read more about the installation process, including the information the package manager can give you, at http://wiki.simplemachines.org/smf/Package_manager#Installing_a_Package.
( ! ) Parse error: syntax error, unexpected T_DOUBLE_ARROW in C:\wamp\www\Sources\Subs.php on line 3935
Call Stack
# Time Memory Function Location
1 0.0025 474128 {main}( ) ..\index.php:0
Quote from: SniperXPX on September 05, 2011, 04:06:32 PM
I just upgraded from SMF 2.0 RC5 to SMF 2.0 and this plugin broke on me. I am not sure on how to get it working again. Can anyone help me? The website is ceiling-cat.net. I used the front page/portal feature and it was beautiful and useful.
Quotethis plugin broke on me.
Quote from: Brack1 on September 05, 2011, 04:36:47 PMQuote from: SniperXPX on September 05, 2011, 04:06:32 PM
I just upgraded from SMF 2.0 RC5 to SMF 2.0 and this plugin broke on me. I am not sure on how to get it working again. Can anyone help me? The website is ceiling-cat.net. I used the front page/portal feature and it was beautiful and useful.
can you explain what you mean byQuotethis plugin broke on me.
Quote from: Brack1 on September 05, 2011, 05:24:50 PM
Have you checked the permissions?
@sniper I have just had a look and you seem to have the portal integrated with the forum.
Quote from: Brack1 on September 05, 2011, 04:38:41 PM
@Wantsome
Your portal.css file should be in placed in your themes folder.
Quote from: WantSome on September 05, 2011, 06:00:16 PMcopy it from /Themes/default/css to /Themes/<yourthemenamehere>/css
do you mean i need to move the portal.css into the themes folder or copy it from wherever it is now into the themes folder?
Quote from: SniperXPX on September 05, 2011, 04:54:33 PMQuote from: Brack1 on September 05, 2011, 04:36:47 PMQuote from: SniperXPX on September 05, 2011, 04:06:32 PM
I just upgraded from SMF 2.0 RC5 to SMF 2.0 and this plugin broke on me. I am not sure on how to get it working again. Can anyone help me? The website is ceiling-cat.net. I used the front page/portal feature and it was beautiful and useful.
can you explain what you mean byQuotethis plugin broke on me.
It shows that it is installed in the package manager but none of its other functions seem to be working.
Quote from: AngelinaBelle on September 09, 2011, 08:35:52 AMAh... This solves one of my problems too.
strafe -- copy portal.css from Themes/default/css to the css directory of your custom theme.
Quote from: AngelinaBelle on September 09, 2011, 08:35:52 AMThank you (:
Kimmie-- this is unusual behavior. Did you install any other mods, or have your Simpleportal settings changed?
strafe -- copy portal.css from Themes/default/css to the css directory of your custom theme.
Quote from: AngelinaBelle on September 09, 2011, 08:35:52 AM
Kimmie-- this is unusual behavior. Did you install any other mods, or have your Simpleportal settings changed?
Quote from: strafe on September 11, 2011, 01:12:59 PM
Simpleportal removes forum page!! Help -.-
http://localhost/smf_2-0_install/index.php?action=pm
Quote from: AngelinaBelle on September 12, 2011, 09:27:27 AMSmf 2.0
strafe -- which version of SMF are you using? Which theme are you using?
Quote from: bearstreet on September 12, 2011, 03:16:10 AM
It might be trivial to ask , but I would like to know that can I add custom PHP/HTML block for some action that is not included in the list of actions of simple portal add block menu.(see the image attached)
more specifically,suppose I want to add a php/html block so that it shows up at messages page of my forum(personal message PM)
for that, action =pmCode Selecthttp://localhost/smf_2-0_install/index.php?action=pm
I suppose that action is seen from the url of the forum.
so can I add custom php/html for some particualr action that is not included in the simple portal actions options(see image attached)
Quote from: AngelinaBelle on September 19, 2011, 09:10:14 AM
You can try the advanced display options / custom display options to specify a block shows up only when action = pm.
Quote from: AngelinaBelle on September 20, 2011, 07:42:27 AM
This happens with SMF 2.0 as well. This will be addressed in the next version of SimplePortal
Quote from: Capcom on September 28, 2011, 04:52:38 PM
Hey
I just want to know how to remove this ugly line from blocks.
P.S look at attachment
Quote from: Miss All Sunday on October 03, 2011, 10:11:27 AM
As far as I know, Simpleportal has some permissions for the shoutbox, you may as well check if there is a permisisons to "shout" and then revoke that permissions for all members but the admins.
Table 'viperm_community.smf_sp_functions' doesn't exist
File: /home/viperm/public_html/forum/Packages/temp/install2.php
Line: 318
Quote from: soulgeek on October 03, 2011, 02:56:24 PMThat is correct. You can find permissions
There are permission settings only to Show the block or not and where.
Quote from: KnightBob on October 03, 2011, 04:38:15 PMWhat version of SimplePortal are you attempting to install? I can't figure out why you'd get that sort of error on line 318 of install2.php for SimplePortal 2.3.3.
When I try to install Simple Portal, I get this MySQl Error.Code SelectTable 'viperm_community.smf_sp_functions' doesn't exist
File: /home/viperm/public_html/forum/Packages/temp/install2.php
Line: 318
Quote from: AngelinaBelle on October 04, 2011, 09:55:31 AMQuote from: KnightBob on October 03, 2011, 04:38:15 PMWhat version of SimplePortal are you attempting to install? I can't figure out why you'd get that sort of error on line 318 of install2.php for SimplePortal 2.3.3.
When I try to install Simple Portal, I get this MySQl Error.Code SelectTable 'viperm_community.smf_sp_functions' doesn't exist
File: /home/viperm/public_html/forum/Packages/temp/install2.php
Line: 318
Thanks for the info
Quote from: AngelinaBelle on October 04, 2011, 01:56:53 PMThat it didn't load the index.php file, whas bicose I stilll had it named: index.php123 for the latest test. I changed it to index.php now.
I think I get it. You need some kind of index.php or index.html at vipermoddingteam.com. Please try putting something there. almost anything, really.
Quote from: AngelinaBelle on October 04, 2011, 01:56:53 PM
Please check that the $forum_dir= in the standalone php file is copied EXACTLY from the SMF Directory at (Administration Center » Server Settings » Database and Paths)
Fatal error: Call to undefined function sportal() in /home/viperm/public_html/index.php on line 45
Quote from: KnightBob on October 04, 2011, 04:48:22 PMI am not certain. Please give more details. Do you want a "portal" page in your main domain?
Is it possible to acces me custom page from the main domain instead of the community sub domain?
<html><head><title>Title</title></head>
<frameset cols='*'>
<frame name='main' src='some_url' scrolling='auto' noresize>
<noframes>
<body>
Your browser does not support frames
</body></noframes></frameset>
</html>
Quote from: AngelinaBelle on October 05, 2011, 12:37:30 PM
Does this do what you want?
Quote from: bearstreet on October 06, 2011, 01:59:26 PM
is there a way to use different widths of portal blocks.
more specifically, i want to use 400 width blocks on portals, and 100 width blocks (left and right ) on my forum.
is it possible?
Quote from: lostprodigy on October 08, 2011, 03:29:19 PM
Hi I recently installed http://custom.simplemachines.org/mods/index.php?mod=2786 and now my icons won't show up as shown in the screenshot below.
prntscr.com/3e47h
{
echo '
<table class="sp_fullwidth">';
foreach ($items as $item)
echo '
<tr>
<td class="sp_recent_icon sp_center">
', sp_embed_image(empty($parameters['type']) ? 'post' : 'topic'), '
</td>
<td class="sp_recent_subject">
<a href="', $item['href'], '">', $item['subject'], '</a>
', $item['new'] ? '' : '<a href="' . $scripturl . '?topic=' . $item['topic'] . '.msg' . $item['new_from'] . ';topicseen#new"><img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" alt="' . $txt['new'] . '" border="0" /></a>', '<br />[', $item['board']['link'], ']', '<br />by ', $item['poster']['link'], ', ', $item['time'], '
</td>
</tr>';
echo '
</table>';
}
}
Quote from: AngelinaBelle on October 11, 2011, 09:38:43 AM
Do you want to show recent POSTS or recent TOPICS?
Quote from: AngelinaBelle on October 12, 2011, 03:11:38 PM
zexion -- Here's how I found the answer:
1) sp_recent uses 'ssi_recent' . $type in SSI.php.
2) So I looked in SSI.php for ssi_recentTopics,
3) which calls ssi_QueryPosts.
4) and ssi_QueryPosts brings back the author of the current post, not the author of the topic.
Making the change you want would require a change to PortalBlocks.php as well as a change to SSI.php. Of course, it can be done, but it will not be convenient, as the SSI.php changes could disappear on any SMF upgrade, and the PortalBlocks.php changes could disappear on any SimplePortal upgrade. Still interested?
Quote from: AngelinaBelle on October 26, 2011, 07:22:23 PM
Removing the linktree from the portal page will require some custom coding in your theme.
Are you ready for that?
Quote from: Robin1989 on November 12, 2011, 10:27:09 AM
i wanted to ask about a bug fix as people on my forum although unable to speak in a shoutbox for staff they can still access it to read the history by manipulating the history url.
see the shoutbox we use for everyone would be say - index.php?action=portal;sa=shoutbox;shoutbox_id=1 - and the staff one would be index.php?action=portal;sa=shoutbox;shoutbox_id=2 and any member seems to be able to access that history even though they cant type in it.
is this an issue for everyone or is it a setting i havnt done right or is there a fix i havent found.
any help would be greatly apreciated
Quote
The SimplePortal Team has been hard at work for the last several months developing the next version of SimplePortal, 2.3.4, code-named "cherry"! We've heard your feedback, and included many requested features in our upcoming version, although it was supposed to be a bug-fix-only release.
Since we would like to have testing and feedback for our new version, in order to provide you the most stable product possible, we have decided to make our release candidate public. This means you can download the upcoming version now, test and report the bugs.
However, please note that: There will be no install/upgrade/uninstall support provided for/from RC1 version. Although this is a stable version, we strongly advise against using this package on your live forums. This package is only for testing purposes.
For those who are wondering, here's some (but not all) of the features of our new version:Your feedback is welcome here and in the related topics in Team Blogs (http://simpleportal.net/index.php?board=60.0) board. Please post any bugs to the Bugs (http://simpleportal.net/index.php?board=3.0) board.
- SMF 2.0.1 and 1.1.15 compatibility.
- Two new positions for blocks: header and footer.
- Revamped permission system with the ability to deny permissions.
- Complex display options using PHP expressions for block display.
- Implemented basic flood protection for shoutbox.
- Introduced group based shoutbox moderators.
- Added ability to prune shoutboxes with various options.
- Links posted to shoutbox are now shortened.
- Added ability to whisper (write private shouts) in shoutbox.
- Improved compatibility with other mods.
- Improved Right-To-Left languages support.
- Fixed the bugs reported in 2.3.3.
You can download the package from Beta Packages (http://simpleportal.net/index.php?action=downloads;area=stable_beta_packages) category in Downloads (http://simpleportal.net/index.php?action=downloads) area.
Thanks,
-The SimplePortal Team
Quote from: SimplePortal Team on November 13, 2011, 08:42:55 AM
SimplePortal 2.3.4 RC1 Released! (http://simpleportal.net/index.php?topic=10069.0)
Quote from: DragoN_SAMP on November 18, 2011, 11:43:38 PM
Is it possible to hide or remove the userbox ONLY from the portal page?
Quote from: DragoN_SAMP on November 18, 2011, 11:43:38 PM
Is it possible to hide or remove the userbox ONLY from the portal page?
Quote from: Brack1 on November 19, 2011, 12:55:57 AMThe one with the user avatar, recent topics, unread replies, latest member, etc..
What do you mean by userbox?
Quote from: [SiNaN] on November 19, 2011, 01:43:11 AMWitch block? Sorry but im a noob at scripting.. Sometimes I mess arround the files and usually I get the things done, but with the userbox I can find it at index.template but if I delete it it crash my forum down.. And maybe if I can turn arround the crash I presume it will disapear from the entire forum..
Yeah. Just edit the block and change the Display Options as you like.
$php global $context; return (isset($context['get_message']) && $context['get_message'] == 'prepareDisplayContext');
Quote from: AngelinaBelle on November 11, 2011, 11:16:50 AM
The board news block does not have a paramter for that.
However, since you are already customizing the boardnews block, you could add a parameter to control this.
This discussion could go on for a little while, so I invite you to visit the custom coding board at simpleportal.net.
I will not be available there until next week, but maybe someone can help you with adding a parameter to the boardnews block, and then using it to control the max. length of the subject line.
Quote from: Brack1 on November 24, 2011, 01:02:53 PM
You do know there is a new version out?
Quote from: GlitchPC on November 24, 2011, 02:42:27 PM
Regarding the new Beta and hopefully soon to be released Final version of 2.3.4... Will there be an upgrade feature, or will one have to uninstall the old to install the new?
Quote
The SimplePortal Team is happy to announce the release of SimplePortal 2.3.4, code-named "Cherry!" This release includes many minor feature additions, improvements and fixes for bugs found in the 2.3.3 version.
We urge all users to upgrade to SimplePortal 2.3.4 as soon as possible to take advantage of the new features and bug fixes. A summary of the features and fixes is as follows:
Features
- Two new positions for blocks: header and footer.
- Revamped permission system with the ability to deny permissions.
- Complex display options using PHP expressions for block display.
- Implemented basic flood protection for shoutbox.
- Introduced group based shoutbox moderators.
- Added ability to prune shoutboxes with various options.
- Links posted to shoutbox are now shortened.
- Added ability to whisper (post private shouts) in shoutbox.
- Better handling of ignored users in shoutbox.
- Brand new RSS Feed block with a better parser.
- Allow selecting blocks (not) to show in pages on page add/edit.
- Allow overriding block titles using language strings.
Fixes
- SMF 2.0.1 and 1.1.15 compatibility.
- Improved compatibility with other mods.
- Improved Right-To-Left languages support.
- Several fixes to package database functions.
- Custom theme friendly fix for broken headers.
- Unescaped entities in shout dates could break shoutbox.
- cutoff tag was displayed when it shouldn't be.
- max-height failed on older browsers.
- Copyright was misaligned due to recent changes in SMF.
- Fixed MySQL 5.5+ compatibility.
- Board news pagination link was sometimes broken.
- Applied board permissions to the article management area.
A full list of changes for 2.3.4 can be found in the changelog.txt file within the SimplePortal package.
Unfortunately, there is no auto-upgrade option from 2.3.3 to 2.3.4 due to the number of changes. So, if you are running 2.3.3 or an older version, you can upgrade by following these three steps. You shouldn't lose any data, but for safety, you should always back up before modifying your forum.
- Uninstall SimplePortal.
- Download SimplePortal 2.3.4. (http://simpleportal.net/index.php?action=downloads;area=stable_simpleportal_packages;file=115;download)
- Install SimplePortal 2.3.4, and you are ready to go!
Finally, please do not use this topic for any support requests. You will get a much more prompt response by posting in Install and Upgrade (http://simpleportal.net/index.php?board=54.0) board.
Thanks for all your support, and keep those bug reports and feature requests coming!
-The SimplePortal Team
Quote from: żεχเ๏ภ on November 26, 2011, 05:05:14 PM
No "independent articles"? Ouch. ???
Quote from: phantomm on November 29, 2011, 10:24:50 AM
What about resetting (custom) permissions when previewing block?
Quote from: AngelinaBelle on November 29, 2011, 09:42:01 AM
GlitchPC -- I went to glitchpc.net. at http://glitchpc.net/index.php alignment looks perfect. at http://glitchpc.net/index.php?action=faq the block "What are the forum rules" is a little higher than the left block.
I am going to guess that the image you attached is of a simple portal page, and that no top blocks are shown. Can you provide a link?
Quote from: GlitchPC on November 29, 2011, 11:14:34 AMQuote from: AngelinaBelle on November 29, 2011, 09:42:01 AM
GlitchPC -- I went to glitchpc.net. at http://glitchpc.net/index.php alignment looks perfect. at http://glitchpc.net/index.php?action=faq the block "What are the forum rules" is a little higher than the left block.
I am going to guess that the image you attached is of a simple portal page, and that no top blocks are shown. Can you provide a link?
AngelinaBelle...
This only happens when I create a SimplePortal page. No top blocks. The FAQ page is another mod. Issues I have are with the following pages:
- Legal-Privacy (http://glitchpc.net/index.php/page,legal.html)
- Link to Us (http://glitchpc.net/index.php/page,link2us.html)
- Board Rules (http://glitchpc.net/index.php/page,boardrules.html)
- Windows XP Shortcut Keys (http://glitchpc.net/index.php/page,xpshortcutkeys.html)
So...what do ya think?
echo '
<br class="sp_side_clear" />';
Quote from: phantomm on November 29, 2011, 11:34:17 AM
Brack, try to add new block with custom permissions. Set few to "A", few to "D", and leave few with "X". Now click "Preview" and now all permissions are set to "X"
SMF 2.0.1
SP 2.3.4 (earlier on 2.3.3 I didn't notice this problem)
Quote from: Miss All Sunday on November 26, 2011, 05:42:12 PMQuote from: żεχเ๏ภ on November 26, 2011, 05:05:14 PM
No "independent articles"? Ouch. ???
http://simpleportal.net/index.php?topic=9808.msg51680#msg51680
Quote from: [SiNaN] on November 29, 2011, 01:25:55 PMQuote from: GlitchPC on November 29, 2011, 11:14:34 AMQuote from: AngelinaBelle on November 29, 2011, 09:42:01 AM
GlitchPC -- I went to glitchpc.net. at http://glitchpc.net/index.php alignment looks perfect. at http://glitchpc.net/index.php?action=faq the block "What are the forum rules" is a little higher than the left block.
I am going to guess that the image you attached is of a simple portal page, and that no top blocks are shown. Can you provide a link?
AngelinaBelle...
This only happens when I create a SimplePortal page. No top blocks. The FAQ page is another mod. Issues I have are with the following pages:
- Legal-Privacy (http://glitchpc.net/index.php/page,legal.html)
- Link to Us (http://glitchpc.net/index.php/page,link2us.html)
- Board Rules (http://glitchpc.net/index.php/page,boardrules.html)
- Windows XP Shortcut Keys (http://glitchpc.net/index.php/page,xpshortcutkeys.html)
So...what do ya think?
That space is there to separate the forum content from SimplePortal blocks but if it bothers you, you could make this change:
Themes/default/Portal.template.phpCode (Find and Remove) Selectecho '
<br class="sp_side_clear" />';
I'll change that with a more cleaner and customizable code in the next versions.
Quote from: AngelinaBelle on November 29, 2011, 02:05:11 PM
Thanks, Sinan. I was still working through whether that was in Portal.template.php, or whether it came along with the pages.
A little logic for "if you don't have top blocks, don't put in the space-after-the-top-blocks". that sounds like a good idea.
Quote from: [SiNaN] on November 29, 2011, 01:25:55 PMJust out of interest I created a test page with a Left Block and a Right Block in it, attached is the result. Is this normal? The Theme is ClearSky but it's the same with Curve.Quote from: GlitchPC on November 29, 2011, 11:14:34 AMQuote from: AngelinaBelle on November 29, 2011, 09:42:01 AM
GlitchPC -- I went to glitchpc.net. at http://glitchpc.net/index.php alignment looks perfect. at http://glitchpc.net/index.php?action=faq the block "What are the forum rules" is a little higher than the left block.
I am going to guess that the image you attached is of a simple portal page, and that no top blocks are shown. Can you provide a link?
AngelinaBelle...
This only happens when I create a SimplePortal page. No top blocks. The FAQ page is another mod. Issues I have are with the following pages:
- Legal-Privacy (http://glitchpc.net/index.php/page,legal.html)
- Link to Us (http://glitchpc.net/index.php/page,link2us.html)
- Board Rules (http://glitchpc.net/index.php/page,boardrules.html)
- Windows XP Shortcut Keys (http://glitchpc.net/index.php/page,xpshortcutkeys.html)
So...what do ya think?
That space is there to separate the forum content from SimplePortal blocks but if it bothers you, you could make this change:
Themes/default/Portal.template.phpCode (Find and Remove) Selectecho '
<br class="sp_side_clear" />';
I'll change that with a more cleaner and customizable code in the next versions.Quote from: phantomm on November 29, 2011, 11:34:17 AM
Brack, try to add new block with custom permissions. Set few to "A", few to "D", and leave few with "X". Now click "Preview" and now all permissions are set to "X"
SMF 2.0.1
SP 2.3.4 (earlier on 2.3.3 I didn't notice this problem)
See this:
http://simpleportal.net/index.php?topic=10216.0
ADMIN
127.0.0.1
02 Gru 11, 22:13:47
2eeef374bc337994728661adc1ca7e3b
Typ błędu: Baza danych
http://localhost/dialog/index.php?Bład bazy danych: Illegal mix of collations (utf8_polish_ci,IMPLICIT) and (utf8_general_ci,IMPLICIT) for operation 'ifnull'Plik: C:/Documents and Settings/tomeh/Pulpit/Xmp/xampp/htdocs/dialog/Sources/Subs-Portal.php
Linia: 1263
.sp_recent_subject
{
font-weight: bold;
}
<span class="sp_subject">This is the subject of the post</span>
QuoteWelcome to SimplePortal!
SimplePortal is one of several portal mods for Simple Machines Forum (SMF). Although always developing, SimplePortal is produced with the user in mind first. User feedback is the number one method of growth for SimplePortal, and our users are always finding ways for SimplePortal to grow. SimplePortal stays competative with other portal software by adding numerous user-requested features such as articles, block types and the ability to completely customize the portal page.
All this and SimplePortal has remained Simple! SimplePortal is built for simplicity and ease of use; ensuring the average forum administrator can install SimplePortal, configure a few settings, and show off the brand new portal to the users in minutes. Confusing menus, undesired pre-loaded blocks and settings that cannot be found are all avoided as much as possible. Because when it comes down to it, SimplePortal is YOUR portal, and should reflect your taste as much as possible.
Ultimate Simplicity
The simplest portal you can ever think of... You only need a few clicks to install it through Package Manager. A few more to create your own blocks and articles. Your portal is ready to go within a couple of minutes, and simple to customise to reflect YOU.
Install Friendly
With the ingenius design of install and update packages, SimplePortal is incredibly install and update friendly. You will never need any manual changes even on a heavily modified forum.
Incredible Theme Support
The simple but powerful structure of SimplePortal brings you wide-range theme support too. You can use SimplePortal with all SMF themes by just adding a button for it.
Professional Support
SimplePortal offers high quality professional support with its own well known support team.
Quote from: Ozzie on December 27, 2011, 07:32:47 PM
go into admin and portal in blocks under top blocks look for a block called welcome click the edit option you can do it there
Quote from: Haggis Hunter on December 28, 2011, 08:09:13 PM
Howdy Pardner
:D
Admin >> Simple Portal >> Blocks >> Block List
Quote from: BaghdadGhost on December 28, 2011, 12:02:07 AM
Hi all,
I am new to SP :)
after I managed to install SP in SMF 2.0.2 I am facing this problem. when I enable portal the General category size changes. I tried to create a test category in order to determine what is causing the issue and the problem is the same. I also copied portal.css and portal_rtl.css to my custom theme css folder but this did not solve the problem. I searched this site and simplemachine.org and did not find a similar problem or solution for it. I use ClearSky v2 theme for smf2. I know its a theme issue not any other thing because when I switch to default all is ok. I parsed SP package to see what modification the installation do to theme files and found out it only modify display.template.php
I would give a like to site but the portal is disabled now for many reasons but the main reason is this problem.
please see attached image for more clarification. also boardindex.template.php for the custom theme.
thank you
<tbody class="divider">
<tr>
<td colspan="4"></td>
</tr>
</tbody>';
echo '<tbody><tr><td colspan="4">';
//Display ads Between cats
if (function_exists("show_category"))
{
$ads = show_category($category['id']);
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}
echo ' </td></tr></tbody>';
Quote from: Extreme TripBasically ive installed the SimplePortal mod and i need to know how i can change the text at the top that says "Be sure to read the RULES or you may be sorry..."I remember the first time when you install SimplePortal this text appears. Go to blocklist.....you can modify,delete or deactivate this let say starting up text
Quote from: swift1993 on January 09, 2012, 11:25:28 AM2.3.4 Final is released, maybe that fix your issue.
how can i fix this on my forums i have 2.0.2
and i am using simportal 2.3.4 RC1
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg220.imageshack.us%2Fimg220%2F4462%2F93fc31c01d0c48d5aef00ed.png&hash=961bdb05567c425f606958395adf33a2ab5b2f28)
how do i fix this ? i think it has somthing to do with simpleportel.
i went to the simple portal rar/zip file and got the portal.css
and i did this to my theme
i went into css
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg97.imageshack.us%2Fimg97%2F2936%2Ffadf6c99e77c406e816cab7.png&hash=c97e209b41b2ee7838f9dc68e561deab7902df1a)
i then put the portal.css in there like this
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg97.imageshack.us%2Fimg97%2F3057%2F85eed8a480f84657bbcd576.png&hash=1367ef6ae924cfa94c95b867946c9622a4930427)
is that right? or do i need to do somthing els
Quote from: Yoshi2889 on January 09, 2012, 11:47:05 AMQuote from: swift1993 on January 09, 2012, 11:25:28 AM2.3.4 Final is released, maybe that fix your issue.
how can i fix this on my forums i have 2.0.2
and i am using simportal 2.3.4 RC1
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg220.imageshack.us%2Fimg220%2F4462%2F93fc31c01d0c48d5aef00ed.png&hash=961bdb05567c425f606958395adf33a2ab5b2f28)
how do i fix this ? i think it has somthing to do with simpleportel.
i went to the simple portal rar/zip file and got the portal.css
and i did this to my theme
i went into css
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg97.imageshack.us%2Fimg97%2F2936%2Ffadf6c99e77c406e816cab7.png&hash=c97e209b41b2ee7838f9dc68e561deab7902df1a)
i then put the portal.css in there like this
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg97.imageshack.us%2Fimg97%2F3057%2F85eed8a480f84657bbcd576.png&hash=1367ef6ae924cfa94c95b867946c9622a4930427)
is that right? or do i need to do somthing els
Quote from: swift1993 on January 09, 2012, 12:05:41 PMYou said you were using RC1 of 2.3.4. Final is released now, that's higher then RC1.Quote from: Yoshi2889 on January 09, 2012, 11:47:05 AMQuote from: swift1993 on January 09, 2012, 11:25:28 AM2.3.4 Final is released, maybe that fix your issue.
how can i fix this on my forums i have 2.0.2
and i am using simportal 2.3.4 RC1
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg220.imageshack.us%2Fimg220%2F4462%2F93fc31c01d0c48d5aef00ed.png&hash=961bdb05567c425f606958395adf33a2ab5b2f28)
how do i fix this ? i think it has somthing to do with simpleportel.
i went to the simple portal rar/zip file and got the portal.css
and i did this to my theme
i went into css
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg97.imageshack.us%2Fimg97%2F2936%2Ffadf6c99e77c406e816cab7.png&hash=c97e209b41b2ee7838f9dc68e561deab7902df1a)
i then put the portal.css in there like this
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg97.imageshack.us%2Fimg97%2F3057%2F85eed8a480f84657bbcd576.png&hash=1367ef6ae924cfa94c95b867946c9622a4930427)
is that right? or do i need to do somthing els
i did say i am using that allready
8: Undefined index: 0
file: /home/www/cwcity/hosting/i/n/xxxxxx/htdocs/Themes/default/PortalArticles.template.php (portal_above sub template - eval?)
line: 85
echo '
<a href="', $scripturl, '?action=profile;u=', $article['poster']['id'], '"><img src="', $article['poster']['avatar']['href'], '" alt="', $article['poster']['name'], '" width="30" class="sp_float_right" /></a>
<div class="middletext">', $article['message']['time'], ' ', $txt['by'], ' ', $article['poster']['link'], '<br />', $txt['sp-articlesViews'], ': ', $article['topic']['views'], ' | ', $txt['sp-articlesComments'], ': ', $article['topic']['replies'], '</div>';
Quote from: davidhs on January 29, 2012, 02:49:49 PM
I attach package for Spanish translation of SimplePortal 2.3.4 (based of translation 2.3.3 + new strings)
Edit: Some string was incorrect. I correct these in new attachment.
QuoteError in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.
Uninstall Actions "SimplePortal"
Remove all data associated with this modification. [Details]
Installing this package will perform the following actions:
Type Action Description
* 1. Execute Modification ./index.php Test failed
1. Replace ./index.php Test failed
2. Replace ./index.php Test successful
3. Replace ./index.php Test successful
Quote from: AngelinaBelle on February 02, 2012, 11:16:02 AM
It sounds like you have installed something since you installed Simple Portal, and this makes it difficult to run the uninstaller for Simple Portal. This is a common problem when more than one mod is changing the same part of an SMF file.
One way to get around this problem is to uninstall all mods in reverse order that you installed them, until you come down to Simple Portal. If the install worked in that order, then the uninstall should work in the reverse order.
Another, more complicated option, involves the manual install instructions that you can find using the little pencil icon on each of the failed tests (as well as on the customize website -- http://custom.simplemachines.org/mods/index.php?action=parse;mod=1104;attach=190525;smf_version=2.0.2). Although this is not strictly a SimplePortal problem, there is some documentation of this at the Simple Portal website: http://simpleportal.net/index.php?action=docs;area=solving_install_problems
I am not certain what caused the white screen. Did you attempt the uninstall despite the errors?
Quote from: BCK on February 04, 2012, 08:33:26 PM
hi..can someone tell me where to set and or how to use the ignore or whisper etc in the shout,,,I set up the shoutbox from the simpleportal andf see no way to use or set any features
Quote from: BCK on February 04, 2012, 08:50:10 PM
hey...thx...how you been
[html]<table style="text-align:center;margin: 5px auto;"><tr><td>
<div style="font-size: 40px; font-family: arial black; text-transform: uppercase; letter-spacing: 4px; padding:-5px;margin-right:10px;margin-left:10px;">MALES</div>
<br>
<div style="background:#eee; text-align:center;-moz-border-radius:20px; -webkit-border-radius:20px; margin:10px;padding:10px 5px;font-size:10px;width:230px;">
<div style="font-size: 45px; font-family: arial black; text-transform: uppercase; letter-spacing: -5px;margin-bottom:-10px;">ABCD</div><br>
» <b>LAST NAME,</b> first --- Character Name<br />
» <b>LAST NAME,</b> first --- Character Name<br />
» <b>LAST NAME,</b> first --- Character Name<br />
» <b>LAST NAME,</b> first --- Character Name<br />
<br>
<div style="font-size: 45px; font-family: arial black; text-transform: uppercase; letter-spacing: -5px;margin-bottom:-10px;">EFGH</div><br>
» <b>LAST NAME,</b> first --- Character Name<br />
» <b>LAST NAME,</b> first --- Character Name<br />
» <b>LAST NAME,</b> first --- Character Name<br />
» <b>LAST NAME,</b> first --- Character Name<br />
<br>
<div style="font-size: 45px; font-family: arial black; text-transform: uppercase; letter-spacing: -5px;margin-bottom:-10px;">IJKL</div><br>
» <b>LAST NAME,</b> first --- Character Name<br />
» <b>LAST NAME,</b> first --- Character Name<br />
» <b>LAST NAME,</b> first --- Character Name<br />
» <b>LAST NAME,</b> first --- Character Name<br />
<br>
<div style="font-size: 45px; font-family: arial black; text-transform: uppercase; letter-spacing: -5px;margin-bottom:-10px;">MNOP</div><br>
» <b>LAST NAME,</b> first --- Character Name<br />
» <b>LAST NAME,</b> first --- Character Name<br />
» <b>LAST NAME,</b> first --- Character Name<br />
» <b>LAST NAME,</b> first --- Character Name<br />
<br>
<div style="font-size: 45px; font-family: arial black; text-transform: uppercase; letter-spacing: -5px;margin-bottom:-10px;">QRST</div><br>
» <b>LAST NAME,</b> first --- Character Name<br />
» <b>LAST NAME,</b> first --- Character Name<br />
» <b>LAST NAME,</b> first --- Character Name<br />
» <b>LAST NAME,</b> first --- Character Name<br />
<br>
<div style="font-size: 45px; font-family: arial black; text-transform: uppercase; letter-spacing: -5px;margin-bottom:-10px;">UVWX</div><br>
» <b>LAST NAME,</b> first --- Character Name<br />
» <b>LAST NAME,</b> first --- Character Name<br />
» <b>LAST NAME,</b> first --- Character Name<br />
» <b>LAST NAME,</b> first --- Character Name<br />
<br>
<div style="font-size: 45px; font-family: arial black; text-transform: uppercase; letter-spacing: -5px;margin-bottom:-10px;">YZ</div><br>
» <b>LAST NAME,</b> first --- Character Name<br />
» <b>LAST NAME,</b> first --- Character Name<br />
» <b>LAST NAME,</b> first --- Character Name<br />
» <b>LAST NAME,</b> first --- Character Name<br />
</div></td><td>
<div style="font-size: 40px; font-family: arial black; text-transform: uppercase; letter-spacing: 4px;margin-bottom:-5px;margin-left:10px;margin-right:10px;padding:-5px;">FEMALES</div>
<br>
<div style="background:#eee; text-align:center;-moz-border-radius:20px; -webkit-border-radius: 20px; margin:10px;padding:10px 5px; font-size:10px;width:230px;">
<div style="font-size: 45px; font-family: arial black; text-transform: uppercase; letter-spacing: -5px;margin-bottom:-10px;">ABCD</div><br>
» <b>LAST NAME,</b> first --- Character Name<br />
» <b>LAST NAME,</b> first --- Character Name<br />
» <b>LAST NAME,</b> first --- Character Name<br />
» <b>LAST NAME,</b> first --- Character Name<br />
<br>
<div style="font-size: 45px; font-family: arial black; text-transform: uppercase; letter-spacing: -5px;margin-bottom:-10px;">EFGH</div><br>
» <b>LAST NAME,</b> first --- Character Name<br />
» <b>LAST NAME,</b> first --- Character Name<br />
» <b>LAST NAME,</b> first --- Character Name<br />
» <b>LAST NAME,</b> first --- Character Name<br />
<br>
<div style="font-size: 45px; font-family: arial black; text-transform: uppercase; letter-spacing: -5px;margin-bottom:-10px;">IJKL</div><br>
» <b>LAST NAME,</b> first --- Character Name<br />
» <b>LAST NAME,</b> first --- Character Name<br />
» <b>LAST NAME,</b> first --- Character Name<br />
» <b>LAST NAME,</b> first --- Character Name<br />
<br>
<div style="font-size: 45px; font-family: arial black; text-transform: uppercase; letter-spacing: -5px;margin-bottom:-10px;">MNOP</div><br>
» <b>LAST NAME,</b> first --- Character Name<br />
» <b>LAST NAME,</b> first --- Character Name<br />
» <b>LAST NAME,</b> first --- Character Name<br />
» <b>LAST NAME,</b> first --- Character Name<br />
<br>
<div style="font-size: 45px; font-family: arial black; text-transform: uppercase; letter-spacing: -5px;margin-bottom:-10px;">QRST</div><br>
» <b>LAST NAME,</b> first --- Character Name<br />
» <b>LAST NAME,</b> first --- Character Name<br />
» <b>LAST NAME,</b> first --- Character Name<br />
» <b>LAST NAME,</b> first --- Character Name<br />
<br>
<div style="font-size: 45px; font-family: arial black; text-transform: uppercase; letter-spacing: -5px;margin-bottom:-10px;">UVWX</div><br>
» <b>LAST NAME,</b> first --- Character Name<br />
» <b>LAST NAME,</b> first --- Character Name<br />
» <b>LAST NAME,</b> first --- Character Name<br />
» <b>LAST NAME,</b> first --- Character Name<br />
<br>
<div style="font-size: 45px; font-family: arial black; text-transform: uppercase; letter-spacing: -5px;margin-bottom:-10px;">YZ</div><br>
» <b>LAST NAME,</b> first --- Character Name<br />
» <b>LAST NAME,</b> first --- Character Name<br />
» <b>LAST NAME,</b> first --- Character Name<br />
» <b>LAST NAME,</b> first --- Character Name<br />
</div></td></tr>
<tr><td colspan="2"><div style="background:#eee; text-align:center;-moz-border-radius:20px; -webkit-border-radius: 20px; margin:10px;padding:10px 5px; font-size:10px;"><center>TEMPLATE BY <a href="http://twitter.com/designsbyrevo" style="text-decoration:none;">Revo.</a> of <a href="http://z10.invisionfree.com/A_THOUSAND_FIREFLIES/index.php?showuser=2133" style="text-decoration:none;">ATF</a> & <a href="http://rpg-directory.com/index.php?showuser=6066" style="text-decoration:none;">RPG-D</a>!</center></div>
<td></tr></table>
[/html]
Fatal error: Call to undefined function sp_embed_image() in /forum/full/path/Sources/Load.php(2284) : eval()'d code on line 233
Quote from: MrCreatoR on February 22, 2012, 07:01:07 AMHow can you even visit a deleted topic? ???
When you try to visit a deleted topic on the forum, you get this error:Code SelectFatal error: Call to undefined function sp_embed_image() in /forum/full/path/Sources/Load.php(2284) : eval()'d code on line 233
Any ideas on how to fix it?
QuoteHow can you even visit a deleted topic?By link from old topic.
QuoteOr do you have a recycling board?And thats also, but this is happening even if the topic is deleted from recycle board.
Quoteif you are still running SMF 2.0 RC1.2, you should upgrade to 2.0.2 straight away.If that was so simple...
QuotePlease give a sample URL where you see the problem.http://autoit-script.ru/index.php/topic,8915.0.html
QuoteCan you share with me your file Load.php, so I can be sure what is on line 2284?Attached.
QuoteThat function sp_embed_image should be found in the file Subs-Portal.php. Do you have the file Subs-Portal.php?I have Subs-SPortal2.php, and the function sp_embed_image is there.
echo '<br />
function template_include evaluating file ', $filename, '
<br />';
Quote<li>', sp_embed_image('dot'), ' <strong><a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a></strong></li>
Quote from: Exodus111 on March 11, 2012, 07:42:06 AM
I would love to see some examples of SMF simplePortal sites out there.
-Exo
Quote from: simon36 on March 19, 2012, 01:47:41 PM
Doesn't seem to work with SMF 2.2? Fails the pre-install test in Sources/Subs.php
Quote
The SimplePortal Team has been hard at work for the last several weeks developing the next version of SimplePortal, 2.3.5, code-named "railgun"! This release fixes the unfortunate bugs that slipped into 2.3.4 version.
Since we would like to have a wider testing and more feedback for our new version, in order to provide you the most stable product possible, we have decided to make our release candidate public. This means you can download the upcoming version now, test and report the bugs.
However, please note that: There will be no install/upgrade/uninstall support provided for/from RC1 version. Although this is a stable version, we strongly advise against using this package on your live forums. This package is only for testing purposes.
One important thing to note is that with this version, SMF 2.0 Beta and RC versions support is dropped. That means, SimplePortal 2.3.5 will only support SMF 2.0, 2.0.1, 2.0.2 and all versions of SMF 1.0 and SMF 1.1 line, including SMF 1.1.16.
For those who are wondering, here's some of the fixes included in this version:Your feedback is welcome here and in the related topics in Team Blogs (http://simpleportal.net/index.php?board=60.0) board. Please post any bugs to the Bugs (http://simpleportal.net/index.php?board=3.0) board.
- Full SMF 2.0.2 and 1.1.16 compatibility
- Broken header bars in custom themes
- Undefined indexes caused by feed parser
- Custom permissions being reset on preview
- Page blocks being reset in some cases
- Shoutbox requests not updating user logs
- Parsed content in tag parameters breaking BBC parsing
- Several fixes to the layout and spacing
You can download the package from Beta Packages (http://simpleportal.net/index.php?action=downloads;area=stable_beta_packages) category in Downloads (http://simpleportal.net/index.php?action=downloads) area.
Thanks,
-The SimplePortal Team
Quote from: ishy on March 24, 2012, 06:04:14 PM
The menu titles don't seem to be fixed by uploading portal.css to the theme anymore: http://www.technochicks.net/forum/index.php
Do I need to do something else now?
Quote from: ishy on March 24, 2012, 06:04:14 PMThis was fixed in version 2.3.4, as Old Fossil said, time to update.
The menu titles don't seem to be fixed by uploading portal.css to the theme anymore: http://www.technochicks.net/forum/index.php
Do I need to do something else now?
Quote from: Yoshi2889 on March 24, 2012, 06:37:43 PMQuote from: ishy on March 24, 2012, 06:04:14 PMThis was fixed in version 2.3.4, as Old Fossil said, time to update.
The menu titles don't seem to be fixed by uploading portal.css to the theme anymore: http://www.technochicks.net/forum/index.php
Do I need to do something else now?
Quote from: Old Fossil on March 24, 2012, 06:42:31 PMJust sayin' how many versions the user is behind and when it was fixed ;)Quote from: Yoshi2889 on March 24, 2012, 06:37:43 PMQuote from: ishy on March 24, 2012, 06:04:14 PMThis was fixed in version 2.3.4, as Old Fossil said, time to update.
The menu titles don't seem to be fixed by uploading portal.css to the theme anymore: http://www.technochicks.net/forum/index.php
Do I need to do something else now?
parrot :P
~board|1234,-~topic,-~action
Quote
The SimplePortal Team is happy to announce the release of SimplePortal 2.3.5, code-named "Railgun!" This release includes fixes for the bugs found in the 2.3.4 version, and features full SMF 2.0.2 and 1.1.16 compatibility.
We urge all users to upgrade to SimplePortal 2.3.5 as soon as possible to take advantage of the bug fixes. A full list of changes for 2.3.5 can be found in the changelog.txt file within the SimplePortal package, but the major fixes are:[cutoff]Unfortunately, there is no auto-upgrade option from 2.3.4 to 2.3.5 due to the number of changes. So, if you are running 2.3.4 or an older version, you can upgrade by following these three steps. You shouldn't lose any data, but for safety, you should always back up before modifying your forum.
- Broken header bars in custom themes
- Undefined indexes caused by feed parser
- Custom permissions being reset on preview
- Page blocks being reset in some cases
- Shoutbox requests not updating user logs
- Parsed content in tag parameters breaking BBC parsing
- Several fixes to the layout and spacing
Finally, please do not use this topic for any support requests. You will get a much more prompt response by posting in Install and Upgrade (http://simpleportal.net/index.php?board=54.0) board.
- Uninstall SimplePortal.
- Download SimplePortal 2.3.5. (http://simpleportal.net/index.php?action=downloads;area=stable_simpleportal_packages;file=118;download)
- Install SimplePortal 2.3.5, and you are ready to go!
Thanks for all your support, and keep those bug reports and feature requests coming!
-The SimplePortal Team
Quote from: [SiNaN] on March 27, 2012, 11:06:49 AM
Yeah, unfortunately there are some conflicts with the SMF Project Tools mod. I had to uninstall that mod before I could uninstall the old version of SimplePortal and install the new one over at simpleportal.net.
By the way, if you remove the portal.css file in your custom theme's directory, your portal should look better. It's using an outdated CSS file which results in problems with spacing between blocks.
Quote from: teos55 on March 27, 2012, 03:16:20 PM
Hımm, crossing fingures and going the Yoshi's way, because the other method of removing all the mods till to sp 2.3.4 means
removing maybe 20 mods, and I'm sure they will fail in some way / somehow :-)))
Quote from: AngelinaBelle on March 28, 2012, 10:45:45 AM
Did the ADK blog mod get along OK with previous Simple Portal versions?
Quote from: AngelinaBelle on March 28, 2012, 03:20:58 PM
It is not surprising that uninstall/install might be required.
But the lost data is very strange.
This is a very strange thing. Simple Portal should not do anything to ADK tables on the database.
When you uninstalled ADK blog mod, you did not choose "delete data"?
Quote from: edcplanet on March 28, 2012, 07:15:49 PM
The "Recent Attached Images" block is not resizing images to thumbnails. How do I prevent the block from showing images at full size?
Quote from: Zuća on March 28, 2012, 08:06:13 PM
what is new after update ?
Quote from: swoodie on March 28, 2012, 07:32:02 PMQuote from: edcplanet on March 28, 2012, 07:15:49 PM
The "Recent Attached Images" block is not resizing images to thumbnails. How do I prevent the block from showing images at full size?
check this post out at simpleportal
http://simpleportal.net/index.php?topic=4118.msg31721#msg31721
Quote from: AngelinaBelle on March 28, 2012, 03:09:40 PM
I bet you did it correctly. But even a very bad typo would not cause a 500 error.
You have to make the server plenty angry to get one of those.
Who owns the "bad" files? who owns the other files?
if (empty($parse_tags) || in_array($code['tag'], $parse_tags))
$bbc_codes[substr($code['tag'], 0, 1)][] = $code;
}
$codes = null;
}
foreach ($codes as $c)
$bbc_codes[substr($c['tag'], 0, 1)][] = $c;
$codes = null;
Quote from: AngelinaBelle on April 09, 2012, 05:42:36 PM
I don't know what the problem is. It could be related to a post/topic that shows on the front page.
First -- please submit the page to xHTML verification, to find out if some broken HTML is causing the problem.
This is common with truncated posts in boardnews and articles blocks.
Quote from: AngelinaBelle on April 09, 2012, 08:20:06 PMYep.
shoutbox is only available to members?
Quote from: AngelinaBelle on April 25, 2012, 10:45:09 AMUnfortunately I'm a newb at this. I have a current block (PHP BLOCK) that adjusts size depending on the avatar sizes of each user showing... I'd like to set that block as a fixed height OR set each avatar height at a fixed height which would thereby eliminate the block from adjusting height.
Have you tried adding the height to the custom style field for the block?
global $smcFunc, $context, $scripturl, $modSettings, $txt, $color_profile;
$limit = 5;
$request = $smcFunc['db_query']('','
SELECT
m.id_member, m.real_name, m.date_registered, m.avatar,
a.id_attach, a.attachment_type, a.filename
FROM {db_prefix}members AS m
LEFT JOIN {db_prefix}attachments AS a ON (a.id_member = m.id_member)
ORDER BY id_member DESC
LIMIT {int:limit}',
array(
'limit' => $limit,
)
);
$members = array();
$colorids = array();
while ($row = $smcFunc['db_fetch_assoc']($request))
{
if (!empty($row['id_member']))
$colorids[$row['id_member']] = $row['id_member'];
if ($modSettings['avatar_action_too_large'] == 'option_html_resize' || $modSettings['avatar_action_too_large'] == 'option_js_resize')
{
$avatar_width = !empty($modSettings['avatar_max_width_external']) ? ' width="' . $modSettings['avatar_max_width_external'] . '"' : '';
$avatar_height = !empty($modSettings['avatar_max_height_external']) ? ' height="' . $modSettings['avatar_max_height_external'] . '"' : '';
}
else
{
$avatar_width = '';
$avatar_height = '';
}
$members[] = array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
'date' => timeformat($row['date_registered'], '%d %B'),
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);
}
$smcFunc['db_free_result']($request);
if (empty($members))
{
echo '
', $txt['error_sp_no_members_found'];
return;
}
if (!empty($colorids) && sp_loadColors($colorids) !== false)
{
foreach ($members as $k => $p)
{
if (!empty($color_profile[$p['id']]['link']))
$members[$k]['link'] = $color_profile[$p['id']]['link'];
}
}
echo '
<table class="sp_fullwidth">';
foreach ($members as $member)
echo '
<tr>
<td class="sp_top_poster sp_center">', !empty($member['avatar']['href']) ? '
<img src="' . $member['avatar']['href'] . '" alt="' . $member['name'] . '" width="40" />' : '', '
</td>
<td>
', $member['link'], '<br />
', $member['date'], '
</td>
</tr>';
echo '
</table>';
<img src="' . $member['avatar']['href'] . '" alt="' . $member['name'] . '" height="35" />' : '', '
Quote from: simon36 on May 01, 2012, 09:18:40 AMYup, when you create a new shoutbox or edit an existing one, you'll see a setting named something like "Auto refresh". Set that to the number you want and it does what you want. :)
Is there a way to turn the soutbox in to a chat room? i.e. have it auto-refresh new messages every second or so?
QuoteAnd also have a setting to limit the number of messages?Yeah, same page: "Maximum shouts" :)
Quote from: simon36 on May 01, 2012, 12:19:43 PM
It is but it is possible to turn it off with html autocomplete="off"
Could you tell me where I would edit the code to do that.
Many thanks.
Quote from: simon36 on May 01, 2012, 04:28:18 PMWhat blank bar?
What is the blank bar at the top of that link that makes the blocks line up? Could you tell me how to do that instead of altering the code.
Thanks.
Quote from: simon36 on May 01, 2012, 04:39:00 PM
It's at the top of this url
http://simpleportal.net/index.php?board=11.0
QuoteSimplePortal 2.3.5 © 2008-2012, SimplePortal
QuoteTheme by DzinerStudio and Modified By NBK*Twitch - SimplePortal 2.3.5 © 2008-2012, SimplePortal - Referrals System by CreateAForum.com
Quote from: Old Fossil on May 02, 2012, 07:01:16 PM
Have you looked in your default theme to see if it shows there?
Quote from: AngelinaBelle on May 03, 2012, 07:56:30 AMThe latest version - 2.0.2
Which version of SMF are you using?
Quote from: AngelinaBelle on May 16, 2012, 09:40:20 AM
Correct. That is how the staff block has been designed.
The staff block on simple portal shows only admins, global moderators, and local moderators.
If you would like that block to show something different, you may customize it.
This has been discussed several times at simpleportal.net. Please try a search there, and see if you turn up what you need.
» <a href="http://snarkish.com/forum/science/latest-post-here">Scientists discover prehistoric laptop</a>
Quote from: AngelinaBelle on May 14, 2012, 02:01:58 PM
Does this happen during install, or afterwards? It sounds as though SSI.php is being required or included more than once.
Quote from: AngelinaBelle on May 03, 2012, 12:21:38 PMThis has happened since I installed SimplePortal as far as I can remember.
Did this problem start after you upgraded SMF or SimplePortal?
Or did this start the first time you installed SimplePortal?
Quote from: AngelinaBelle on May 21, 2012, 03:40:46 PM
NBKTwitch -- this is a bit of a puzzler.
Simple Portal uses a couple of techniques to figure out where to place its copyright notice.
It looks like it succeeded twice, which is a little bit of a surprise.
Can you tell me which version of php your site uses?
Quote from: BinkyM on May 17, 2012, 05:57:10 PMI know that there are several ways, using SMF, to achieve the solution you seek.
In Ikonboard, you can output text files with all sortsa handy tags, but I like to just output the URLs and titles of the five most recent posts in each forum. Then I use an SSI include to stick it on my home page (which isn't the forum) with a heading like "Latest Posts in the Science & Technology Forum," or "New in the Current Events Forum," and so on. IOW, it's like a sampling of what's going on in the forums and it's up-to-the-minute. Very spiderable.
Is this something that SimplePortal does, or shall I go look elsewhere? My users aren't shoutbox-type users (but if they were, I think they'd looove SimplePortal!).
Quote from: AngelinaBelle on May 21, 2012, 04:26:10 PM
NBKTwitch,
I am surprised. It looks to me like str_replace did its job, but returned "false" anyway, so simpleportal thought the str_replace did not work, and added the credit for SimplePortal to the very end of the page. I wouldn't have expected that to happen in php 5.2.17.
I don't know what to think of it. I don't know if this could be considered a bug in Simple Portal, but I'll report the issue there.
Thanks for the information.
Quote from: AngelinaBelle on May 22, 2012, 01:24:07 PM
nbktwitch, can you let me see, from your theme, in index.template.php, the contents of the following functions:
* function template_body_below()
* function template_html_below()
Thanks
function template_html_below()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;
echo '
<><>
';
global $modSettings;
if(!empty($modSettings['googleAnalyticsCode']))
echo '
<script type="text/javascript"><!-- // -->', chr(60), '![CDATA[', '
var _gaq = _gaq || [];
_gaq.push([\'_setAccount\', \'' . $modSettings['googleAnalyticsCode'] . '\']);
_gaq.push([\'_trackPageview\']);
(function() {
var ga = document.createElement(\'script\'); ga.type = \'text/javascript\'; ga.async = true;
ga.src = (\'https:\' == document.location.protocol ? \'https://ssl\' : \'http://www\') + \'.google-analytics.com/ga.js\';
var s = document.getElementsByTagName(\'script\')[0]; s.parentNode.insertBefore(ga, s);
})();
// ]]', chr(62), '</script>';
echo '</body></html>';
}
// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree($force_show = false)
{
global $context, $settings, $options, $shown_linktree;
// If linktree is empty, just return - also allow an override.
if (empty($context['linktree']) || (!empty($context['dont_default_linktree']) && !$force_show))
return;
echo '
<div class="navigate_section">
<ul>';
// Each tree item has a URL and name. Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{
echo '
<li', ($link_num == count($context['linktree']) - 1) ? ' class="last"' : '', '>';
// Show something before the link?
if (isset($tree['extra_before']))
echo $tree['extra_before'];
// Show the link, including a URL if it should have one.
echo $settings['linktree_link'] && isset($tree['url']) ? '
<a href="' . $tree['url'] . '"><span>' . $tree['name'] . '</span></a>' : '<span>' . $tree['name'] . '</span>';
// Show something after the link...?
if (isset($tree['extra_after']))
echo $tree['extra_after'];
// Don't show a separator for the last one.
if ($link_num != count($context['linktree']) - 1)
echo ' »';
echo '
</li>';
}
echo '
</ul>
<>';
$shown_linktree = true;
}
function template_body_below()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;
echo '
<>
<div id="footer" class="smalltext">
', theme_copyright(), '<br />Theme by <a href="http://www.dzinerstudio.com">DzinerStudio</a> and Modified By <a href="http://nbktwitch.me">NBK*Twitch</a> - SimplePortal 2.3.5 © 2008-2012, <a href="http://www.simpleportal.net/">SimplePortal</a> - Referrals System by <a href="http://www.createaforum.com" title="Forum Hosting" target="_blank">CreateAForum.com</a>';
// Show the load time?
if ($context['show_load_time'])
echo '
<br />', $txt['page_created'], $context['load_time'], $txt['seconds_with'], $context['load_queries'], $txt['queries'];
echo '
<>';
}
function template_html_below()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;
echo '
<><>
';
global $modSettings;
if(!empty($modSettings['googleAnalyticsCode']))
echo '
<script type="text/javascript"><!-- // -->', chr(60), '![CDATA[', '
var _gaq = _gaq || [];
_gaq.push([\'_setAccount\', \'' . $modSettings['googleAnalyticsCode'] . '\']);
_gaq.push([\'_trackPageview\']);
(function() {
var ga = document.createElement(\'script\'); ga.type = \'text/javascript\'; ga.async = true;
ga.src = (\'https:\' == document.location.protocol ? \'https://ssl\' : \'http://www\') + \'.google-analytics.com/ga.js\';
var s = document.getElementsByTagName(\'script\')[0]; s.parentNode.insertBefore(ga, s);
})();
// ]]', chr(62), '</script>';
echo '</body></html>';
}
// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree($force_show = false)
{
global $context, $settings, $options, $shown_linktree;
// If linktree is empty, just return - also allow an override.
if (empty($context['linktree']) || (!empty($context['dont_default_linktree']) && !$force_show))
return;
echo '
<div class="navigate_section">
<ul>';
// Each tree item has a URL and name. Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{
echo '
<li', ($link_num == count($context['linktree']) - 1) ? ' class="last"' : '', '>';
// Show something before the link?
if (isset($tree['extra_before']))
echo $tree['extra_before'];
// Show the link, including a URL if it should have one.
echo $settings['linktree_link'] && isset($tree['url']) ? '
<a href="' . $tree['url'] . '"><span>' . $tree['name'] . '</span></a>' : '<span>' . $tree['name'] . '</span>';
// Show something after the link...?
if (isset($tree['extra_after']))
echo $tree['extra_after'];
// Don't show a separator for the last one.
if ($link_num != count($context['linktree']) - 1)
echo ' »';
echo '
</li>';
}
echo '
</ul>
<>';
$shown_linktree = true;
}
<div id="footer" class="smalltext">
', theme_copyright(), '<br />Theme by <a href="http://www.dzinerstudio.com">DzinerStudio</a> and Modified By <a href="http://nbktwitch.me">NBK*Twitch</a> - SimplePortal 2.3.5 © 2008-2012, <a href="http://www.simpleportal.net/">SimplePortal</a> - Referrals System by <a href="http://www.createaforum.com" title="Forum Hosting" target="_blank">CreateAForum.com</a>';
<div id="footer" class="smalltext">
', theme_copyright(), '<br />Theme by <a href="http://www.dzinerstudio.com">DzinerStudio</a> and Modified By <a href="http://nbktwitch.me">NBK*Twitch</a> - SimplePortal 2.3.5 © 2008-2012, <a href="http://www.simpleportal.net/">SimplePortal</a> - Referrals System by <a href="http://www.createaforum.com" title="Forum Hosting" target="_blank">CreateAForum.com</a>';
<div id="footer" class="smalltext">
', theme_copyright(), '<br />Theme by <a href="http://www.dzinerstudio.com">DzinerStudio</a> and Modified By <a href="http://nbktwitch.me">NBK*Twitch</a> - Referrals System by <a href="http://www.createaforum.com" title="Forum Hosting" target="_blank">CreateAForum.com</a>';
Quote from: AngelinaBelle on May 23, 2012, 12:49:49 AM
Here's your problem.
The lineCode Select<div id="footer" class="smalltext">
', theme_copyright(), '<br />Theme by <a href="http://www.dzinerstudio.com">DzinerStudio</a> and Modified By <a href="http://nbktwitch.me">NBK*Twitch</a> - SimplePortal 2.3.5 © 2008-2012, <a href="http://www.simpleportal.net/">SimplePortal</a> - Referrals System by <a href="http://www.createaforum.com" title="Forum Hosting" target="_blank">CreateAForum.com</a>';
My advice is to change this -- this change will probably fix your problem.Code Select<div id="footer" class="smalltext">
', theme_copyright(), '<br />Theme by <a href="http://www.dzinerstudio.com">DzinerStudio</a> and Modified By <a href="http://nbktwitch.me">NBK*Twitch</a> - SimplePortal 2.3.5 © 2008-2012, <a href="http://www.simpleportal.net/">SimplePortal</a> - Referrals System by <a href="http://www.createaforum.com" title="Forum Hosting" target="_blank">CreateAForum.com</a>';
or else remove the Simple Portal credit line from your them altogether -- this probably won't fix your problem until you fix something else. Please see belowCode Select<div id="footer" class="smalltext">
', theme_copyright(), '<br />Theme by <a href="http://www.dzinerstudio.com">DzinerStudio</a> and Modified By <a href="http://nbktwitch.me">NBK*Twitch</a> - Referrals System by <a href="http://www.createaforum.com" title="Forum Hosting" target="_blank">CreateAForum.com</a>';
But, given what you have in that theme and what shows on your forum, I would have expected the Simple Portal credit line to be seen 3 times, not 2 times. Please look at Subs-Portal.php. What Software Version: of Simple Portal appears at the top of the file?
Quote from: 4LP3RUZ1 on June 01, 2012, 11:49:12 AM
Question about Simpleportal's shoutbox:
When I do a refresh through the refresh button or an auto refresh, only the shoutbox messages are refreshed through AJAX, this is great.
However, when I enter and send a message the whole portal page gets refreshed. Is this normal behaviour?
Quote from: AngelinaBelle on June 01, 2012, 10:36:56 AMIt worked thanks!
Pokeman:
This sounds like a cookie problem.
Do you use standalone portal?
Is it in a different sub-domain?
* Please go to: Administration Center » Server Settings » Cookies and Sessions
* Make sure the box for "local storage of cookies cookies" is unset
* Make sure the box for "subdomain independent cookies" is set
That usually fixes the problem.
Does that work?
Quote from: 4LP3RUZ1 on June 02, 2012, 02:14:31 AM
Sure, I updated the profile to have permissions.
Quote from: ThePharaoh on June 12, 2012, 10:16:51 PM
The site is very popular and there are thousands of people who own 30+ year old RVs. They can be a lot of fun to tinker with, just like old cars... only bigger! And, more and more Americans are turning to the vintage RVs as, what I call, "mobile alternative living options." - LOL!
Quote from: FrizzleFried on June 12, 2012, 07:46:39 PMI don't know how to edit that please I attach my file here so that you help me edit that, please? Also let me know the line you edit.
In layman terms:
The package manger can not find the line of code the software is looking for to either REPLACE the code or ADD code BEFORE or AFTER said line. Because it can't find the line in your current code, most likely due to another mod having already been installed that has moved or changed that line (or combination of lines), it can't insert the code it's attempting to insert so you get the error.
What you need to do is manually edit that one file.
Are you familiar with manually editing code?
Quote from: perfec2 on June 13, 2012, 12:32:55 PM
Is only in subs.php i have "Test fail" error others went successful.
Quote from: perfec2 on June 13, 2012, 02:11:09 PM
I don't know how to expand and know the one that fails, that is why i come here and attached my file for i to be helped. if this is the only way what are the steps?
Quote from: perfec2 on June 13, 2012, 02:53:40 PM
I'm using 1.16 version of smf, I can't see the expand option after I just try to reinstall. What am missing here?
Quote from: goodman854 on June 14, 2012, 11:46:09 PM
Also is their a way I can make links just be normal again. So people can see the link and not have to click a box that says [LINK]
Thanks.
Quote from: Old Fossil on June 15, 2012, 12:10:12 AMSo what about the shout box issue? Is there anything that can fix that?Quote from: goodman854 on June 14, 2012, 11:46:09 PM
Also is their a way I can make links just be normal again. So people can see the link and not have to click a box that says [LINK]
Thanks.
Unfortunately there is no way out of this at present although their beta testers have mentioned this.
/me is an SP beta tester.
Quote from: AngelinaBelle on June 15, 2012, 05:52:58 PMIt's also a security risk for users who don't look at the status bar when clicking links. The idea of unknown links in my opinion is a very stupid idea.
That [LINK] in the shoutbox is a feature. It was put there because links are usually too long for the shoutbox.
Getting rid of it would require some customization of the shoutbox.
Quote from: [SiNaN] on June 17, 2012, 01:54:07 PMWhat? I know what I'm talking about not sure you meant by that. I'm just saying in my opinion it's a bad idea. I understand why you did it, I'm just saying I don't think it was the correct work around for that.
I have posted how to remove that feature here:
http://simpleportal.net/index.php?topic=10715.msg55104;topicseen#msg55104
And I'm sorry but I'll have to ask you to learn what you are talking about before labeling something as "stupid".
Quote from: AngelinaBelle on June 27, 2012, 10:03:03 PM
You can customize the page id. It can be something like ?page=The_Best_Page_About_SEO if you want it to be.
Quote from: AngelinaBelle on July 02, 2012, 08:54:07 AM
http://www.aquapuppies.com/aquapuppies/index.php/page,page721.html might link poorly because it cannot be found.
Quote from: LOVELORD on July 12, 2012, 07:26:15 PMYou mean the shoutbox?
Hello,
i looked but i cant find...
is there any way to add image for bbc code in chat?
Quote from: onepiece on July 14, 2012, 05:32:13 PM
Yes: http://simpleportal.net/index.php?action=docs;area=set_up_standalone_portal
Quote from: phantomm on August 02, 2012, 01:22:42 PM
Check out this topic => http://simpleportal.net/index.php?topic=9834.0 (http://simpleportal.net/index.php?topic=9834.0) ;)
Quote from: Tiensg on August 19, 2012, 11:59:50 AM
Is there any audible alert for new message in the shoutbox? I can't find any. By the way, I am using SMF 2.0.2.
Quote from: Tiensg on August 19, 2012, 11:59:50 AM
Is there any audible alert for new message in the shoutbox? I can't find any. By the way, I am using SMF 2.0.2.
Error Line 21, Column 19: there is no attribute "property"
<meta property="og:type" content="article" />
✉
You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).
This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.
How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.
Warning Line 82, Column 23: character "&" is the first character of a delimiter but occurred as data
if (((keyCode >= 65 && keyCode <= 90) && !shiftKey) || ((keyCode >= 97 && key...
✉
This message may appear in several cases:
You tried to include the "<" character in your page: you should escape it as "<"
You used an unescaped ampersand "&": this may be valid in some contexts, but it is recommended to use "&", which is always safe.
Another possibility is that you forgot to close quotes in a previous tag.
Warning Line 82, Column 24: character "&" is the first character of a delimiter but occurred as data
if (((keyCode >= 65 && keyCode <= 90) && !shiftKey) || ((keyCode >= 97 && key...
✉
This message may appear in several cases:
You tried to include the "<" character in your page: you should escape it as "<"
You used an unescaped ampersand "&": this may be valid in some contexts, but it is recommended to use "&", which is always safe.
Another possibility is that you forgot to close quotes in a previous tag.
Warning Line 82, Column 34: character "<" is the first character of a delimiter but occurred as data
if (((keyCode >= 65 && keyCode <= 90) && !shiftKey) || ((keyCode >= 97 && key...
✉
This message may appear in several cases:
You tried to include the "<" character in your page: you should escape it as "<"
You used an unescaped ampersand "&": this may be valid in some contexts, but it is recommended to use "&", which is always safe.
Another possibility is that you forgot to close quotes in a previous tag.
Warning Line 82, Column 41: character "&" is the first character of a delimiter but occurred as data
...if (((keyCode >= 65 && keyCode <= 90) && !shiftKey) || ((keyCode >= 97 && keyC...
✉
This message may appear in several cases:
You tried to include the "<" character in your page: you should escape it as "<"
You used an unescaped ampersand "&": this may be valid in some contexts, but it is recommended to use "&", which is always safe.
Another possibility is that you forgot to close quotes in a previous tag.
Warning Line 82, Column 42: character "&" is the first character of a delimiter but occurred as data
...f (((keyCode >= 65 && keyCode <= 90) && !shiftKey) || ((keyCode >= 97 && keyCo...
✉
This message may appear in several cases:
You tried to include the "<" character in your page: you should escape it as "<"
You used an unescaped ampersand "&": this may be valid in some contexts, but it is recommended to use "&", which is always safe.
Another possibility is that you forgot to close quotes in a previous tag.
Warning Line 82, Column 74: character "&" is the first character of a delimiter but occurred as data
...eyCode <= 90) && !shiftKey) || ((keyCode >= 97 && keyCode <= 122) && shiftKey))
✉
This message may appear in several cases:
You tried to include the "<" character in your page: you should escape it as "<"
You used an unescaped ampersand "&": this may be valid in some contexts, but it is recommended to use "&", which is always safe.
Another possibility is that you forgot to close quotes in a previous tag.
Warning Line 82, Column 75: character "&" is the first character of a delimiter but occurred as data
...eyCode <= 90) && !shiftKey) || ((keyCode >= 97 && keyCode <= 122) && shiftKey))
✉
This message may appear in several cases:
You tried to include the "<" character in your page: you should escape it as "<"
You used an unescaped ampersand "&": this may be valid in some contexts, but it is recommended to use "&", which is always safe.
Another possibility is that you forgot to close quotes in a previous tag.
Warning Line 82, Column 85: character "<" is the first character of a delimiter but occurred as data
...eyCode <= 90) && !shiftKey) || ((keyCode >= 97 && keyCode <= 122) && shiftKey))
✉
This message may appear in several cases:
You tried to include the "<" character in your page: you should escape it as "<"
You used an unescaped ampersand "&": this may be valid in some contexts, but it is recommended to use "&", which is always safe.
Another possibility is that you forgot to close quotes in a previous tag.
Warning Line 82, Column 93: character "&" is the first character of a delimiter but occurred as data
...eyCode <= 90) && !shiftKey) || ((keyCode >= 97 && keyCode <= 122) && shiftKey))
✉
This message may appear in several cases:
You tried to include the "<" character in your page: you should escape it as "<"
You used an unescaped ampersand "&": this may be valid in some contexts, but it is recommended to use "&", which is always safe.
Another possibility is that you forgot to close quotes in a previous tag.
Warning Line 82, Column 94: character "&" is the first character of a delimiter but occurred as data
...eyCode <= 90) && !shiftKey) || ((keyCode >= 97 && keyCode <= 122) && shiftKey))
✉
This message may appear in several cases:
You tried to include the "<" character in your page: you should escape it as "<"
You used an unescaped ampersand "&": this may be valid in some contexts, but it is recommended to use "&", which is always safe.
Another possibility is that you forgot to close quotes in a previous tag.
Error Line 91, Column 5: marked section end not in marked section declaration
// ]]></script>
✉
Error Line 109, Column 86: document type does not allow element "div" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag
...section"><span style="float: right; margin-top: 10px;"><div id="fb-root"></div>
✉
The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.
One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
Error Line 110, Column 8: required attribute "type" not specified
<script>
✉
The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element.
Typical values for type are type="text/css" for <style> and type="text/javascript" for <script>.
Error Line 153, Column 104: document type does not allow element "div" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag
...div id="siteslogan" class="floatright">My SLogan</d...
✉
The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.
One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
QuoteWhere is this javascript involving "shiftkey" coming from?
QuoteFinally, the error on line 153, in which you have a div some place where it is not allowed to be, indicates that you might have opened or closed something else improperly. Please fix these HTML errors and see if matters improve.I dont know how to fix the html errors. I am not good at coding.
QuoteIf you had any difficulties installing or uninstalling any of your mods along the way -- that may be the problem.
QuoteHave you tried turning off SimplePortal?
Did the problem start after the un-install re-install of simple portal?
QuoteParse error: syntax error, unexpected $end in /public_html/forum/index.php on line 392
QuoteParse error: syntax error, unexpected $end in CODE on line 392 Errors parsing CODE
if (($_GET["page"]=="") && (!empty($_GET)))
Quote from: AngelinaBelle on September 17, 2012, 04:22:29 PMThank you, this is my first time with a portal.
@tMicky,
To make recent topics scrolling would require some customization. The php code for the recent topics block would be the place to start
The same with other changes to the recent topics blocks.
For more in-depth discussions of these things, I invite you to simpleportal.net, in the customization board.
You can create a special "shoutbox" page using a page, and display that shoutbox block only on that page.
To add a button to the main menu -- please see navigation buttons mods for simple machines.
If you want your board index to be the front page, you will want "integration mode".
Quote from: AngelinaBelle on September 17, 2012, 07:15:36 PMsorry to be a pain, but how do I go about changing the tables. The Simple Portal tables have the latin_swedish info.
The "mix of collations" problem is a database problem. SimplePortal assumes you will have latin1_general collation on your data tables, and has set up sp_ tables with this collation, but your database actually already had data tables with latin1_swedish collation.
To fix the problem, you need to set the same collation on all the columns of all your tables. This will take some work in phpmyadmin, or else writing a little script to find and fix all the columns with the "wrong" collation.
Collation, by the way, is related to "dictionary order". It becomes important when you want to sort things -- order them alphabetically.
MySQL gets confused when you try to match up things that get sorted/ordered differently.
You can remove the date and time from showing in Recent Topics block by changing the code in PortalBlocks.php. This is where the "templates" for all the blocks can be found.
Quote from: AngelinaBelle on September 17, 2012, 08:27:42 PMYes, most of the tables are latin_general_ci
Hmm. This sounds all backwards. There are some scripts available to help fix this kind of problem.
Please confirm some things about your SMF installation
1) This is not a UTF8 installation?
2) Most of your tables are latin_general collation?
Based on this information, I can help you with the right set-up parameters for a general-purpose script that will help you do the job.
$collation = 'latin1_general_ci';
$character_set = 'latin1';
<?
#########################################################################
#########################################################################
## ##
## Script coded by Eric Reiche ##
## ##
## Version: 0.2 / 2006-08-16 17:35 GMT + 100 ##
## Version 0.2 contains bugfixes ##
## ##
## Inspired by serversupportforum.de user monotek ##
## ( http://www.serversupportforum.de/forum/sql/ \ ##
## 9279-kollation-von-tabellen-aendern.html#post67293 ) ##
## [Check link for bashscript] ##
## ##
## Web: http://www.ericreiche.net || Mail: [email protected] ##
## ##
## You can spread this script, until you don't touch this copymark ##
## ##
#########################################################################
#########################################################################
//Config:
$mysqlserver = 'localhost'; //Host
$mysqluser = 'username'; //User [It's recomment to use root]
$mysqlpw = 'password; //Password
$mysqldb = 'db_name'; //Database
$stepping = 100; //Queries per Page
//$tabletoskip = 'really_big_table'; //If you have a really big table, you can enter it here,
//it will be skipped, to prevent a script abort
$collation = 'latin1_general_ci;
$character_set = 'latin1';
//End Config
#######################################################################
# Do not change anything from here, until you know what you're doing #
#######################################################################
if(isset($_GET['start']) && is_numeric($_GET['start'])){
$start = $_GET['start'];
if($start > 0){
$start = $start * $stepping;
}
}else{
$start = 0;
}
//mysql connect
@mysql_connect($mysqlserver, $mysqluser, $mysqlpw) OR die("No Conncection to Server. Report: :".mysql_error());
mysql_select_db($mysqldb) OR die("couldn't select database, Report: ".mysql_error());
unset($mysqlserver);
unset($mysqluser);
unset($mysqlpw);
$i = 0;
print('<pre>');
if($start == 0){
$sql = 'ALTER DATABASE '.$mysqldb.' DEFAULT CHARACTER SET '.$character_set.' COLLATE '.$collation.";\r\n";
mysql_query($sql);
print($sql);
}
$sql = 'Show tables;';
$result1 = mysql_query($sql);
while($tables = mysql_fetch_assoc($result1)){
if($start == 0){
$sql = 'ALTER TABLE '.$tables['Tables_in_'.$mysqldb].' DEFAULT CHARACTER SET '.$character_set.' COLLATE '.$collation.";\r\n";
mysql_query($sql);
print(' '.$sql);
}
$sql = 'Show columns FROM '.$tables['Tables_in_'.$mysqldb];
$result2 = mysql_query($sql);
while($columns = mysql_fetch_assoc($result2)){
if(substr_count($columns['Type'], 'varchar') || substr_count($columns['Type'], 'text')){
$i++;
if($i >= $start && $i < ($start + $stepping)){
$sql = 'ALTER TABLE '.$tables['Tables_in_'.$mysqldb].' CHANGE '.$columns['Field'].' '.$columns['Field'].' '.$columns['Type'].' CHARACTER SET '.$character_set.' COLLATE '.$collation.';';
if($tabletoskip != $tables['Tables_in_'.$mysqldb]){
mysql_query($sql);
print(' '.$i.'. '.$sql."\r\n");
}else{
print(' '.$i.'. <b>SKIPPED</b>: '.$sql."\r\n");
}
}
}
}
}
print('</pre>');
print('<a href="'.$_SERVER['PHP_SELF'].'?start='.($_GET['start'] + 1).'">Weiter...</a>');
?>
Quote from: AngelinaBelle on September 18, 2012, 10:45:25 AMThank you so much for helping, truly appreciated.
Simple Portal should leave collations alone -- use the default collation for your tables, which should also be the collation used when SMF created your tables in the first place. But these kinds of changes sometimes happen, anyway.
...
if (WIRELESS || ($standalone && (isset($_REQUEST['wap']) || isset($_REQUEST['wap2']) || isset($_REQUEST['imode']))) || !empty($settings['disable_sp']) || empty($modSettings['sp_portal_mode']) || ((!empty($modSettings['sp_maintenance']) || !empty($maintenance)) && !allowedTo('admin_forum')) || isset($_GET['debug']) || (empty($modSettings['allow_guestAccess']) && $context['user']['is_guest']))
if (WIRELESS || ($standalone && (isset($_REQUEST['wap']) || isset($_REQUEST['wap2']) || isset($_REQUEST['imode']))) || !empty($settings['disable_sp']) || empty($modSettings['sp_portal_mode']) || ((!empty($modSettings['sp_maintenance']) || !empty($maintenance)) && !allowedTo('admin_forum')) || isset($_GET['debug']) || (empty($modSettings['allow_guestAccess']) && $context['user']['is_guest']) || $settings['name'] == 'Core Theme')
height:250px;overflow:hidden;
function sportal_init($standalone = false)
{
global $context, $sourcedir, $scripturl, $modSettings, $txt;
global $settings, $options, $boarddir, $maintenance, $sportal_version;
function sportal_init($standalone = false)
{
global $context, $sourcedir, $scripturl, $modSettings, $txt;
global $settings, $options, $boarddir, $maintenance, $sportal_version;
if ($settings['name'] == 'Core Theme')
$modSettings['sp_portal_mode'] = 2;
$blocks = getBlockInfo(null, null, true, true, true);
$context['SPortal']['blocks'] = array();
foreach ($blocks as $block)
{
if (!$context['SPortal']['sides'][$block['column']]['active'])
continue;
$blocks = getBlockInfo(null, null, true, true, true);
$context['SPortal']['blocks'] = array();
foreach ($blocks as $block)
{
if ($block['type'] != 'sp_shoutbox' && $settings['name'] == 'Core Theme')
continue;
elseif (!$context['SPortal']['sides'][$block['column']]['active'])
continue;
foreach ($shouts as $shout)
{
if (preg_match('~^@(.+?): ~' . ($context['utf8'] ? 'u' : ''), $shout['text'], $target) && $smcFunc['strtolower']($target[1]) !== $smcFunc['strtolower']($user_info['name']) && $shout['author']['id'] != $user_info['id'] && !$user_info['is_admin'])
{
unset($shouts[$shout['id']]);
continue;
}
foreach ($shouts as $shout)
{
if (preg_match('~^@(.+?): ~' . ($context['utf8'] ? 'u' : ''), $shout['text'], $target) && $smcFunc['strtolower']($target[1]) !== $smcFunc['strtolower']($user_info['name']) && $shout['author']['id'] != $user_info['id'] && !$user_info['is_admin'])
{
unset($shouts[$shout['id']]);
continue;
}
elseif (preg_match('~^@(.+?): ~' . ($context['utf8'] ? 'u' : ''), $shout['text'], $target))
$shouts[$shout['id']]['text'] = '<i>' . $shouts[$shout['id']]['text'] . '</i>';
Quote from: blunted on November 12, 2012, 10:31:15 PM
was wondering if there is a way to change the structure of the link feature in shout box, for some reason my link referral protection only works 1/2 the time so i hoped to hard code the call in.
thank you
if ($context['can_shout'])
echo '
<div class="shoutbox_input smalltext">
<input type="text" name="new_shout" id="new_shout_', $shoutbox['id'], '" class="shoutbox_input sp_float_left input_text"', $context['browser']['is_ie'] ? ' onkeypress="if (sp_catch_enter(event)) { sp_submit_shout(' . $shoutbox['id'] . ', \'' . $context['session_var'] . '\', \'' . $context['session_id'] . '\'); return false; }"' : '', ' />
<input type="submit" name="submit_shout" value="', $txt['sp_shoutbox_button'], '" class="sp_float_right button_submit" onclick="sp_submit_shout(', $shoutbox['id'], ', \'', $context['session_var'], '\', \'', $context['session_id'], '\'); return false;" />
</div>';
tourniquet = str_replace($finds, $replaces, $tourniquet);
function sp_query_string($tourniquet)
{
global $sportal_version, $context, $modSettings;
$fix = str_replace('{version}', $sportal_version, '<a href="http://www.simpleportal.net/" target="_blank" class="new_win">SimplePortal {version} © 2008-2012, SimplePortal</a>');
if ((SMF == 'SSI' && empty($context['standalone'])) || empty($context['template_layers']) || WIRELESS || empty($modSettings['sp_portal_mode']) || strpos($tourniquet, $fix) !== false)
return $tourniquet;
$finds = array(
', Simple Machines LLC</a>',
', <a href="http://www.simplemachines.org" title="Simple Machines" target="_blank" class="new_win">Simple Machines</a>',
'class="copywrite"',
'class="copyright"',
);
$replaces = array(
', Simple Machines LLC</a><br />' . $fix,
', <a href="http://www.simplemachines.org" title="Simple Machines" target="_blank" class="new_win">Simple Machines</a><br />' . $fix,
'class="copywrite" style="line-height: 1em;"',
'class="copyright" style="line-height: 1.5em;"',
);
$tourniquet = str_replace($finds, $replaces, $tourniquet);
if (strpos($tourniquet, $fix) === false)
{
$fix = '<div style="text-align: center; width: 100%; font-size: x-small; margin-bottom: 5px;">' . $fix . '</div></body></html>';
$tourniquet = preg_replace('~</body>\s*</html>~', $fix, $tourniquet);
}
return $tourniquet;
}
Quote from: SugarD-x on December 17, 2012, 01:38:47 PM
Is SimplePortal 2.3.5 compatible with SMF 2.0.3? I don't see why not, since it worked fine in SMF 2.0.2, but I want to be sure before I go and update. :P
Quote from: Zuća on December 18, 2012, 08:39:53 PMAwesome, thank you!Quote from: SugarD-x on December 17, 2012, 01:38:47 PM
Is SimplePortal 2.3.5 compatible with SMF 2.0.3? I don't see why not, since it worked fine in SMF 2.0.2, but I want to be sure before I go and update. :P
it works perfectly on smf 2.0.3
Quote from: BCK on December 20, 2012, 09:05:04 AMPlease move your forum files and run repair_settings.php (http://wiki.simplemachines.org/smf/Repair_settings.php).
once i installed smf forum and added simple portal..i need to put /smf at end of url..after the .com how can i get it to work without the /smf...so people can just use the url.com not url.com/smf
thx in advance
Quote from: BCK on December 20, 2012, 02:38:13 PMMove all of your forum's files to the new directory where you want them, and then run that file he mentioned.
move forum files..please explain...what files..where etc..
QuotePlease accept our apologies for the delay. First of all, please note that we do not provide support with the installation of 3rd party software as well as do not provide support with the tracing/debugging/coding/analyzing of 3rd part scripts/software.please advice how to do that.
However, we have checked the issue you have encountered more closely. Its main reason is that the installation of your 3rd party software requires that some folder should has a writable permissions. But the server your account is hosted on does not allow to execute scripts from folders which do not have 755 permissions and the scripts which do not have 644 permissions. It depends on the global sever configuration and this can not be changed at all.
We recommend you to contact the developers of your 3rd party scripts/software and consult with them whether you are able to install your scripts manually e.g. by copying them to the related folders, etc.
We hope this information will be useful for you.
QuoteUnknown column 'lastLogin' in 'where clause'
File: /forum/Sources/PortalBlocks.php
Line: 899
Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 2.0.2, while your database is at version 2.0. The above error might possibly go away if you execute the latest version of upgrade.php.
Quote from: LOVELORD on January 07, 2013, 04:13:21 PMDepending on the language used, sometimes you can switch between ' and " in HTML+PHP code to prevent conflicts.
I cant find on simpleportal.net website.. I cant use php block, becouse i have few flash players and they have ' and ; caracters and that make a lot of problem. just html work
Quote from: SugarD-x on January 07, 2013, 04:38:52 PMQuote from: LOVELORD on January 07, 2013, 04:13:21 PMDepending on the language used, sometimes you can switch between ' and " in HTML+PHP code to prevent conflicts.
I cant find on simpleportal.net website.. I cant use php block, becouse i have few flash players and they have ' and ; caracters and that make a lot of problem. just html work
<object data="http://www.domain.com/player/player_mp3_maxi.swf" type="application/x-shockwave-flash" width="200" height="20" align="middle">
<param name="movie" value="http://www.domain.com/player/player_mp3_maxi.swf" />
<param name="bgcolor" value="#ffffff" />
<param name="FlashVars" value="mp3=http%3A//www.domain.com/lista/2012/50.mp3&showvolume=1" />
</object>
Quote from: LOVELORD on January 07, 2013, 04:44:24 PMA lot of times in PHP pages which contain HTML code, they will use an echo statement, which starts off using " and ends the HTML code with the same thing, to differentiate between languages. If the HTML within those characters contains the same characters, it will bug everything. Try switching all of the " to ' in that code you showed me, and see if it helps.Quote from: SugarD-x on January 07, 2013, 04:38:52 PMQuote from: LOVELORD on January 07, 2013, 04:13:21 PMDepending on the language used, sometimes you can switch between ' and " in HTML+PHP code to prevent conflicts.
I cant find on simpleportal.net website.. I cant use php block, becouse i have few flash players and they have ' and ; caracters and that make a lot of problem. just html work
I use this codeCode Select<object data="http://www.domain.com/player/player_mp3_maxi.swf" type="application/x-shockwave-flash" width="200" height="20" align="middle">
<param name="movie" value="http://www.domain.com/player/player_mp3_maxi.swf" />
<param name="bgcolor" value="#ffffff" />
<param name="FlashVars" value="mp3=http%3A//www.domain.com/lista/2012/50.mp3&showvolume=1" />
</object>
And that makes conflict in php... ANd I dont now how to use that in php. I have over 50 players on my website, plus chart top list, and then page is broken. I dont know how to fix this problem. First i want to make custom action page, and this flash player make me problems. Then i try use simplepage html page.
// Okay load the data :D
$request = $smcFunc['db_query']('', '
SELECT
mem.id_member, mem.real_name, mem.avatar,
a.id_attach, a.attachment_type, a.filename,
{raw:field}
FROM {db_prefix}members as mem
LEFT JOIN {db_prefix}attachments AS a ON (a.id_member = mem.id_member)
{raw:where}
ORDER BY {raw:order} {raw:sort}
LIMIT {int:limit}', array(
'limit' => $context['common_stats']['total_members'] > 100 ? ($limit + 5) : $limit, // Prevent delete of user if the cache is avaible :D
'field' => $current_system['field'],
'where' => $where,
'order' => $current_system['order'],
'sort' => ($sort_asc ? 'ASC' : 'DESC'),
)
);
// Last active remove
if (!empty($last_active_limit))
{
$timeLimit = time() - $last_active_limit;
$where[] = "lastLogin > $timeLimit";
}
if (!empty($current_system['where']))
$where[] = $current_system['where'];
if (!empty($where))
$where = 'WHERE (' . implode(')
AND (', $where) . ')';
else
$where = "";
Quote from: teos55 on January 12, 2013, 09:27:59 AM
Do you mean ...
Simple portal --> General settings --> Portal mode ( 3 options there Portal, integrated and standalone )
Quote from: teos55 on January 12, 2013, 09:40:11 AM
You have to create blocks to be seen. Start with the default ones, then you can create php or html blocks ..
Quote from: teos55 on January 12, 2013, 09:56:54 AM
Last thing I can say, look at the block settings. In block settings , "show block on" should be set to" portal" for your case.
Quote from: AngelinaBelle on February 11, 2013, 08:27:08 PMNot really. Lately seen plenty of wordpress sites with this style instead of the typical article layout. I thought of making something similar for SP. Maybe as a plugin or...
That is a different look. Are you getting a lot of interest in it?
Quote from: AngelinaBelle on February 13, 2013, 01:08:05 PMThanks. how do i set it so latest added articles show up on top first, and not below the last added article.
There is a way to "promote posts"
That is to "add as article". These articles will then appear on the portal page (if articles are enabled) or in any articles block.
Quote from: Alpay on March 08, 2013, 09:13:40 AMLooks great man. Much better than Simpleportal default layout.
@Mick.
Simpleportal : www.diablofanturkiye.com www.starcraftturkiye.com www.dotaturk.com
Quote from: winsoft on April 01, 2013, 12:19:46 PM
Is there anyway to use only sidebars and not the portal view?
Quote from: demlak on March 17, 2013, 09:06:15 PM
support on this modification is down?
i tried a lot questions in the last few months on simpleportal.net... but no responses =(
Quote from: PokémonS on March 13, 2013, 11:16:35 AMnvm already answered here http://simpleportal.net/index.php?topic=12427
SP 2.3.5
Hi, how to disable smiley in shoutbox?
Thx.
Quote from: toastedone on April 19, 2013, 04:03:21 PMDo you see it on the 'default' theme?
No, I installed it about a week ago, when i first installed it the feature worked but I decided againts using it at that time, I am using some of its features like pages.
Quote from: toastedone on April 20, 2013, 02:33:08 AM
No I have just tried and there is no forum button
Quote from: Old Fossil on April 20, 2013, 04:54:33 PM
Pokemon it is strongly advised that you upgrade to 2.0.4
The sp copyright issue should correct itself when you do.
As for the other issue that is outta my league for which I apologise.
:)
Quote from: FrizzleFried on April 22, 2013, 01:43:26 PMThanks for your answer FrizzleFried! However I'm not able to find anything that could help at SP forum right now, can you please be more specific, I would appreciate it.
You need to read the block within a block thread on the Simpleportal forum...
Quote from: phantomm on April 22, 2013, 03:46:20 PMThank youuuu! :)
Here it is described how to use it => http://simpleportal.net/index.php?topic=5332.0
Quote from: Abhijit_Guha on April 24, 2013, 10:06:31 AM
not working on my forum http://forum.andro-park.org please Help I want to try this out
Quote from: Old Fossil on May 14, 2013, 11:29:20 AMthank you :)
http://simpleportal.net/index.php?topic=5332.0
This link on the Simple Portal forum may help.
Quote from: ryan_dwight on May 21, 2013, 05:44:03 AM
is there a way to remove a scroll bar on the blocks like in the user info block. the size of the block is exactly enough for the info, why it has a scroll bar?
overflow:hidden;
Quote from: ryan_dwight on May 21, 2013, 04:58:36 PM
i appreciate the reply underdog but i can't edit the user info block and i have a custom bbc block which i tried to put your code but it doesn't work
Quote from: Shambles on May 29, 2013, 01:59:56 PM
I can't see any unprocessed bbcode in your article (and I couldn't see it in the actual post, but you then edited your text to explain that).
What are we looking for?
This is what I see:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FmpMVsTw.jpg&hash=feae0053047ff27296559514245dfa5f2f1f88f7)
Quote from: Old Fossil on June 02, 2013, 07:46:21 PM
Is the url bb code ticked in Admin > Forum > posts and topics > bbc?
QuoteAn Error Has Occurred!
Database error in block code. Please check the code.
Quote from: brynnThat's how I create "articles" on my forum - they're simply topics added to an article category, thus they can appear within an article block.
... I'm getting the impression that an "article" is simply a forum message that just gets called an article so it can be shown in an Articles block. Is that how it goes?...
Quote from: knksyon29 on July 20, 2013, 12:11:28 AMYou will get better response if you open a support thread at simpleportal.net (http://simpleportal.net)
its seems when i installed this on smf 2.0.4..
the profile tab is not working when clicking the summary, account settings, and forum profile.. its just like having a refresh page..
the theme i was using is gearbox made by dzinerstudio.
anyone can help me out??
Quote from: xPandax on July 20, 2013, 02:02:15 AMQuote from: knksyon29 on July 20, 2013, 12:11:28 AMYou will get better response if you open a support thread at simpleportal.net (http://simpleportal.net)
its seems when i installed this on smf 2.0.4..
the profile tab is not working when clicking the summary, account settings, and forum profile.. its just like having a refresh page..
the theme i was using is gearbox made by dzinerstudio.
anyone can help me out??
Quotehttp://www.xxxxxxhttp://www.xxxxxxxxxx/
Apply Filter: Only show the errors with the same message
8: Undefined index: allow_view_results
Apply Filter: Only show the errors from this file
File: /home/xxxxx/public_html/Sources/PortalBlocks.php
Line: 1237
Quote from: BurkeKnight on August 07, 2013, 05:42:15 PM
I've had same errors.
I just removed the poll block.
As for Guest permissions with polls:
Admin -> Permissions -> General Permissions -> Modify Guest
Scroll down to section: View additional board content
Can select them to be able to View, and not vote.
Quote from: BurkeKnight on September 19, 2013, 01:27:15 PM
Topics show the topics that have last been posted in.
Posts show the actual last post.
If seeing them both showing the same, means that the last posts were new topics. They will be the same, until topics get replied to.
"~action|form ; n=1 ; submit"
Database Error
Illegal mix of collations (latin1_general_ci,IMPLICIT) and (latin1_swedish_ci,IMPLICIT) for operation 'ifnull'
File: /home/theteamk/public_html/Sources/Subs-Portal.php
Line: 1251
Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 2.0.5, while your database is at version 2.0.3. The above error might possibly go away if you execute the latest version of upgrade.php.
Quote from: Kyrianchigozie on October 03, 2013, 08:55:20 AM
k hv seen d problem is from my host php settings, it has been corected nw. rnx very much
Quote from: K@ on October 05, 2013, 03:25:21 PMit says something about collation
If you look at this earlier post...
http://www.simplemachines.org/community/index.php?topic=227599.msg3407862#msg3407862
...you'll see a likely solution. :)
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'binary' at line 1
File: /home/theteamk/public_html/Packages/temp/SMF2/db-changes.php
Line: 44
Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 2.0.5, while your database is at version 2.0.3. The above error might possibly go away if you execute the latest version of upgrade.php.
Quote from: K@ on October 30, 2013, 05:22:19 PM
Probably means this:
http://custom.simplemachines.org/mods/index.php?mod=1295
I'd use the SP one, over that one, any day. :)
QuoteI would like to take that off and have all of them the same (full across the board
Quote from: workinonstuff on November 22, 2013, 11:25:58 PM
Could any one tell me how to enable shout box for guest?
Quote from: -Underdog- on December 13, 2013, 07:30:54 AM
br360,
Indeed you will need to remove SP's edits from that file or from any file for that matter. A possible solution for you is to clean everything up by using the SMF Large Upgrade package, Hooks Removal and then install all your mods anew.
SMF Large Upgrade Package (http://download.simplemachines.org/index.php?thanks;filename=smf_2-0-6_upgrade.zip)
Replacing current files with upgrade package files (http://wiki.simplemachines.org/smf/How_to_upload_a_fresh_set_of_files)
Upgrade Instructions (http://wiki.simplemachines.org/smf/Upgrading)
Hooks Removal (http://webdevelop.comli.com/index.php?action=dlattach;topic=33.0;attach=26) (removes previous leftover hooks)
Quote from: Old Fossil on January 23, 2014, 04:56:37 PMIn theory, I don't see why not. I believe SimplePortal allows you to make your own custom blocks in addition to the administrative code block functions built into the Admin panel.
The SP site seems unavailable at present. :(
I'm toying with the idea of making just one gallery folder available as a seperate block from the main gallery portal block.
Can this be done?
Quote from: MotRude on January 23, 2014, 09:07:31 PM
I Have a question about the simpleportal block top posters..can this block display top posters going across instead of down?
Quote from: Baloch on January 24, 2014, 01:57:14 AMYes and yes :)
Is it compatible with SMF 2.0.7 ? do u recommend us to upgrade our SMF?
QuoteIt depends on the location. To do as you mention then either a header, top or bottom block would do.
Quote from: NekoJonez on February 04, 2014, 12:49:23 PM
Is there an update in the works?
<script type="text/javascript">
window.onload = function()
{
var maxHeight = 1000;
var maxWidth = 600;
// var whatid = document.getElementById("portal_main");
var whatid = document.getElementById("sp_center");
var img = whatid.getElementsByTagName("img");
for (var i = 0; i < img.length; i++) {
if (img[i].height > maxHeight)
img[i].height = maxHeight;
if (img[i].width > maxWidth)
img[i].width = maxWidth;
}
}
</script>
var maxHeight = 1000;
var maxWidth = 600;
Quote from: Old Fossil on February 04, 2014, 06:37:06 PMQuote from: NekoJonez on February 04, 2014, 12:49:23 PM
Is there an update in the works?
2.3.5 is the latest version and works perfectly as it is at present.
Whether a newer version is on the horizon is unknown.
Quote from: AngelinaBelle on March 28, 2014, 01:24:28 PM
WCFA,
The reason you did not get an answer at SimplePortal is probably that there are only a small number of volunteers working to answer questions.
I just came from there, and I responded to your question already. I am not sure I understood you though. I hope I will be able to help you.
GPowerE36 -- this sounds as though one of the other mods has messed up your URL. This should be /index.php?action=forum.
So which mod took out "index.php"?
Do you have pretty URLs turned on? Can you try turning it off for testing?
Also, I am not familiar with Tapatalk. It might be worth turning Tapatalk off (just for a moment) to see if it makes any difference.
Quote from: Angelina Belle on June 17, 2014, 09:27:41 AMyes i didn't get any reply
This would require customization. Have you asked at simpleportal.net?
Quote from: Angelina Belle on June 18, 2014, 03:32:54 PMi actually created a topic but was redirected here
I think I remember seeing your post, or a similar one.
I apologize for the lack of response. Simpleportal has a small community.
Please try bumping your request over there. If you still don't get a bite from someone knowledgeable, you can try one of the custom coding forums around here. The simpleportal code is familiar enough to SMF coders that the customization should not be too difficult.
I hope you learn some interesting new skills in the process.
Quote from: Angelina Belle on July 01, 2014, 11:45:24 AM
Simply use the http://simpleportal.net/index.php?action=docs;area=block_editor to change the number of posts/topics to show.
Quote from: Padre gremista on July 02, 2014, 01:29:05 PM
I try register in simpleportal.net but the captcha is always error. I can not register.
Can you post my mod request there?
<?php
/*
Block: Recent posts with post preview
Author: Blue @ Simple Portal.net
Version: 1.6
*/
/* [SETUP WHAT YOU WANT HERE] */
$topics_posts = 1; // TOPICS - 1 | MESSAGES - 2
$limit = 6; // How many recent posts do you want to output?
$number = 30; // How many characters do you want to output?
$exclude_boards = null; // IF null guests can see all boards | IF you want to hide some boards use: array( ID1, ID2, ID3) where ID is the board's ID
$htmlspecialcharacters = false; // Do you need to show html special characters like Greek characters?
// Do you want to translate it to your own language? :P
$text['sportal_false'] = 'Simple Portal not found';
$text['board'] = 'in';
$text['who'] = 'by';
/* [STOP!] - THIS IS THE END OF SETUP */
//Only code from now on ;)
global $smcFunc, $scripturl, $sourcedir, $modSettings, $user_info, $settings, $context, $txt;
// Lets see if you are using Simple Portal. If not...well...go get them :D
if (!file_exists($sourcedir . '/PortalBlocks.php'))
{
echo $text['sportal_false'];
return;
}
// Let's grab some database results
if ($topics_posts == 1) {
if (is_array($exclude_boards) || (int) $exclude_boards === $exclude_boards)
{
$exclude_boards = is_array($exclude_boards) ? $exclude_boards : array($exclude_boards);
}
elseif ($exclude_boards != null)
{
$output_method = $exclude_boards;
$exclude_boards = array();
}
$posts_result = $smcFunc['db_query']('', '
SELECT m.poster_name,m.icon, m.poster_time, m.id_msg,t.num_views, t.num_replies, t.id_member_updated, m.subject, m.body, m.id_topic, b.name, t.id_last_msg, u.avatar, g.online_color,' . ($user_info['is_guest'] ? '1 AS is_read, 0 AS new_from' : '
IFNULL(lt.id_msg, IFNULL(lmr.id_msg, 0)) >= m.id_msg_modified AS is_read,
IFNULL(lt.id_msg, IFNULL(lmr.id_msg, -1)) + 1 AS new_from') . '
FROM {db_prefix}topics AS t
LEFT JOIN {db_prefix}boards AS b ON (t.id_board = b.id_board)
LEFT JOIN {db_prefix}messages AS m ON (m.id_msg = t.id_last_msg)
LEFT JOIN {db_prefix}members AS u ON (t.id_member_updated = u.id_member)
LEFT JOIN {db_prefix}membergroups AS g ON (g.id_group = CASE WHEN u.id_group = 0 THEN u.id_post_group ELSE u.id_group END)
' . (!$user_info['is_guest'] ? '
LEFT JOIN {db_prefix}log_topics AS lt ON (lt.id_topic = m.id_topic AND lt.id_member = ' . $user_info['id'] . ')
LEFT JOIN {db_prefix}log_mark_read AS lmr ON (lmr.id_board = b.id_board AND lmr.id_member = ' . $user_info['id'] . ')' : '') . '
WHERE m.approved=1' . (empty($exclude_boards) ? '' : '
AND b.id_board NOT IN ({array_int:exclude_boards})') . ' AND {query_see_board}
ORDER BY t.id_last_msg DESC
LIMIT ' . $limit,
array(
'exclude_boards' => empty($exclude_boards) ? '' : $exclude_boards,
)
);
$posts = array();
while ($row_posts = $smcFunc['db_fetch_assoc']($posts_result))
{
global $memberContext;
loadMemberData($row_posts['id_member_updated']);
loadMemberContext($row_posts['id_member_updated']);
if (empty($modSettings['messageIconChecks_disable']) && !isset($icon_sources[$row_posts['icon']]))
$icon_sources[$row_posts['icon']] = file_exists($settings['theme_dir'] . '/images/post/' . $row_posts['icon'] . '.gif') ? 'images_url' : 'default_images_url';
$posts[] = array(
'id' => $row_posts['id_member_updated'],
'views' => $row_posts['num_views'],
'replies' => $row_posts['num_replies'],
'icon' => '<img src="' . $settings[$icon_sources[$row_posts['icon']]] . '/post/' . $row_posts['icon'] . '.gif" align="middle" alt="' . $row_posts['icon'] . '" border="0" />',
'username' => '<a style="color: ' . $row_posts['online_color'] . ';" href="' . $scripturl . '?action=profile;u=' . $row_posts['id_member_updated'] . '">' . $row_posts['poster_name'] . '</a>',
'subject' => '<a style="font-weight: bold;" title="' . $text['board'] . ' ' . $row_posts['name'] .'" href="' . $scripturl . '?topic=' . $row_posts['id_topic'] . '.msg' . $row_posts['id_last_msg'] . ';topicseen#new">' . $row_posts['subject'] . '</a>',
'body' => $row_posts['body'],
'avatar' => $row_posts['avatar'] == '' ? $memberContext[$row_posts['id_member_updated']]['avatar']['href'] : (stristr($row_posts['avatar'], 'http://') ? $row_posts['avatar'] : $modSettings['avatar_url'] . '/' . $row_posts['avatar']),
'board' => $row_posts['name'],
'time' => timeformat($row_posts['poster_time']),
'poster' => array(
'id' => $row_posts['id_member'],
'name' => $row_posts['poster_name'],
'href' => !empty($row_posts['id_member']) ? $scripturl . '?action=profile;u=' . $row_posts['id_member'] : '',
'link' => !empty($row_posts['id_member']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row_posts['id_member'] . '">' . $row_posts['poster_name'] . '</a>' : $row_posts['poster_name']
),
'new' => !empty($row_posts['is_read'])
);
}
$smcFunc['db_free_result']($posts_result);
} else {
if (is_array($exclude_boards) || (int) $exclude_boards === $exclude_boards)
{
$exclude_boards = is_array($exclude_boards) ? $exclude_boards : array($exclude_boards);
}
elseif ($exclude_boards != null)
{
$output_method = $exclude_boards;
$exclude_boards = array();
}
$posts_result = $smcFunc['db_query']('', '
SELECT u.real_name,m.icon,m.poster_time, m.id_msg, m.id_member, m.subject, m.body, m.id_topic, b.name, b.id_board, u.avatar, g.online_color,' . ($user_info['is_guest'] ? '1 AS is_read, 0 AS new_from' : '
IFNULL(lt.id_msg, IFNULL(lmr.id_msg, 0)) >= m.id_msg_modified AS is_read,
IFNULL(lt.id_msg, IFNULL(lmr.id_msg, -1)) + 1 AS new_from') . '
FROM {db_prefix}messages AS m
LEFT JOIN {db_prefix}boards AS b ON (m.id_board = b.id_board)
LEFT JOIN {db_prefix}members AS u ON (m.id_member = u.id_member)
LEFT JOIN {db_prefix}membergroups AS g ON (g.id_group = CASE WHEN u.id_group = 0 THEN u.id_post_group ELSE u.id_group END)
' . (!$user_info['is_guest'] ? '
LEFT JOIN {db_prefix}log_topics AS lt ON (lt.id_topic = m.id_topic AND lt.id_member = ' . $user_info['id'] . ')
LEFT JOIN {db_prefix}log_mark_read AS lmr ON (lmr.id_board = b.id_board AND lmr.id_member = ' . $user_info['id'] . ')' : '') . '
WHERE m.approved=1' . (empty($exclude_boards) ? '' : '
AND b.id_board NOT IN ({array_int:exclude_boards})') . ' AND {query_see_board}
ORDER BY m.id_msg DESC
LIMIT ' . $limit,
array(
'exclude_boards' => empty($exclude_boards) ? '' : $exclude_boards,
)
);
$posts = array();
while ($row_posts = $smcFunc['db_fetch_assoc']($posts_result))
{
if (empty($modSettings['messageIconChecks_disable']) && !isset($icon_sources[$row_posts['icon']]))
$icon_sources[$row_posts['icon']] = file_exists($settings['theme_dir'] . '/images/post/' . $row_posts['icon'] . '.gif') ? 'images_url' : 'default_images_url';
global $memberContext;
loadMemberData($row_posts['id_member']);
loadMemberContext($row_posts['id_member']);
$posts[] = array(
'id' => $row_posts['id_member'],
'icon' => '<img src="' . $settings[$icon_sources[$row_posts['icon']]] . '/post/' . $row_posts['icon'] . '.gif" align="middle" alt="' . $row_posts['icon'] . '" border="0" />',
'username' => '<a style="color: ' . $row_posts['online_color'] . ';" href="' . $scripturl . '?action=profile;u=' . $row_posts['id_member'] . '">'.$row_posts['real_name'] . '</a>',
'subject' => '<a title="'.$row_posts['subject'].'" href="' . $scripturl . '?topic=' . $row_posts['id_topic'] . '.msg' . $row_posts['id_msg'] . ';topicseen#new">' .$row_posts['subject']. '</a>',
'body' => $row_posts['body'],
'avatar' => $row_posts['avatar'] == '' ? $memberContext[$row_posts['id_member']]['avatar']['href'] : (stristr($row_posts['avatar'], 'http://') ? $row_posts['avatar'] : $modSettings['avatar_url'] . '/' . $row_posts['avatar']),
'board' => $row_posts['name'],
'time' => timeformat($row_posts['poster_time']),
'new' => !empty($row_posts['is_read'])
);
}
$smcFunc['db_free_result']($posts_result);
}
echo'<div class="container-fluid nuevos_temas_indice">
';
foreach ($posts as $post) {
// Lets fix the BBCode bug and Strip the Text
//' . $text['who'] . '
$content1 = str_replace("[", "<", $post['body']);
$content2 = str_replace("]", ">", $content1);
$content3 = strip_tags($content2);
$preview = substr ($content3,0,$number);
$preview2 = preg_replace('/\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|$!:,.;]*[A-Z0-9+&@#\/%=~_|$]/i', '', $preview);
echo' <div class="row nuevas_respuestas_indice">
<div class="col-xs-6 col-md-1">
'.$post['icon'].'
</div>
<div class="col-xs-12 col-md-6">';
echo'<h4 class="media-heading">' . $post['subject']; if (!$post['new'] && $context['user']['is_logged'])
echo '   <span class="label label-success">Nuevo</span>';
echo'</h4>
';
if ($htmlspecialcharacters) {
echo htmlspecialchars($preview, ENT_NOQUOTES, "UTF-8") . '...';
} else {
echo' <small>'.$preview2.' en →',$post['board'],'</small>';
}
echo'</div>
<div class="col-xs-6 col-md-2">
<span><img src="/Themes/bootz/images/views.gif" title="Views" alt=" Views">   <span class="label label-warning">'.$post['views'].'</span></span>
<Span class="pull-right"><img src="/Themes/bootz/images/coments.gif" title="Replies" alt="Replies">   <span class="label label-info"> ', $post['replies'], '</span></Span>
</div>
<div class="col-xs-6 col-md-3">
<a class="pull-left" href="#" style=" margin-right: 10px; ">';
if (empty($post['avatar']))
{
echo '<img class="media-object avatar" src="/avatars/noavatar.gif" alt="no tengo avatar xD" width="34px" height="34px" />';
}
else{
echo '<img class="media-object avatar" src="' . $post['avatar'] .'" alt="" width="34px" height="34px" />';
}
echo'
</a>
<div class="media-body">
<span style="padding: 0 5px;display: inline-block;margin-bottom: 5px;"> ' . $post['username'] . '</span><br><div><small>' . $post['time'] .'</small></div>';
echo '
</div>
</div>
</div>
';
}
echo'
</div>';
?>
Quote from: {dhayzon} on July 02, 2014, 03:34:12 PMQuote from: Padre gremista on July 02, 2014, 01:29:05 PM
I try register in simpleportal.net but the captcha is always error. I can not register.
Can you post my mod request there?Code Select<?php
/*
Block: Recent posts with post preview
Author: Blue @ Simple Portal.net
Version: 1.6
*/
/* [SETUP WHAT YOU WANT HERE] */
$topics_posts = 1; // TOPICS - 1 | MESSAGES - 2
$limit = 6; // How many recent posts do you want to output?
$number = 30; // How many characters do you want to output?
$exclude_boards = null; // IF null guests can see all boards | IF you want to hide some boards use: array( ID1, ID2, ID3) where ID is the board's ID
$htmlspecialcharacters = false; // Do you need to show html special characters like Greek characters?
// Do you want to translate it to your own language? :P
$text['sportal_false'] = 'Simple Portal not found';
$text['board'] = 'in';
$text['who'] = 'by';
/* [STOP!] - THIS IS THE END OF SETUP */
//Only code from now on ;)
global $smcFunc, $scripturl, $sourcedir, $modSettings, $user_info, $settings, $context, $txt;
// Lets see if you are using Simple Portal. If not...well...go get them :D
if (!file_exists($sourcedir . '/PortalBlocks.php'))
{
echo $text['sportal_false'];
return;
}
// Let's grab some database results
if ($topics_posts == 1) {
if (is_array($exclude_boards) || (int) $exclude_boards === $exclude_boards)
{
$exclude_boards = is_array($exclude_boards) ? $exclude_boards : array($exclude_boards);
}
elseif ($exclude_boards != null)
{
$output_method = $exclude_boards;
$exclude_boards = array();
}
$posts_result = $smcFunc['db_query']('', '
SELECT m.poster_name,m.icon, m.poster_time, m.id_msg,t.num_views, t.num_replies, t.id_member_updated, m.subject, m.body, m.id_topic, b.name, t.id_last_msg, u.avatar, g.online_color,' . ($user_info['is_guest'] ? '1 AS is_read, 0 AS new_from' : '
IFNULL(lt.id_msg, IFNULL(lmr.id_msg, 0)) >= m.id_msg_modified AS is_read,
IFNULL(lt.id_msg, IFNULL(lmr.id_msg, -1)) + 1 AS new_from') . '
FROM {db_prefix}topics AS t
LEFT JOIN {db_prefix}boards AS b ON (t.id_board = b.id_board)
LEFT JOIN {db_prefix}messages AS m ON (m.id_msg = t.id_last_msg)
LEFT JOIN {db_prefix}members AS u ON (t.id_member_updated = u.id_member)
LEFT JOIN {db_prefix}membergroups AS g ON (g.id_group = CASE WHEN u.id_group = 0 THEN u.id_post_group ELSE u.id_group END)
' . (!$user_info['is_guest'] ? '
LEFT JOIN {db_prefix}log_topics AS lt ON (lt.id_topic = m.id_topic AND lt.id_member = ' . $user_info['id'] . ')
LEFT JOIN {db_prefix}log_mark_read AS lmr ON (lmr.id_board = b.id_board AND lmr.id_member = ' . $user_info['id'] . ')' : '') . '
WHERE m.approved=1' . (empty($exclude_boards) ? '' : '
AND b.id_board NOT IN ({array_int:exclude_boards})') . ' AND {query_see_board}
ORDER BY t.id_last_msg DESC
LIMIT ' . $limit,
array(
'exclude_boards' => empty($exclude_boards) ? '' : $exclude_boards,
)
);
$posts = array();
while ($row_posts = $smcFunc['db_fetch_assoc']($posts_result))
{
global $memberContext;
loadMemberData($row_posts['id_member_updated']);
loadMemberContext($row_posts['id_member_updated']);
if (empty($modSettings['messageIconChecks_disable']) && !isset($icon_sources[$row_posts['icon']]))
$icon_sources[$row_posts['icon']] = file_exists($settings['theme_dir'] . '/images/post/' . $row_posts['icon'] . '.gif') ? 'images_url' : 'default_images_url';
$posts[] = array(
'id' => $row_posts['id_member_updated'],
'views' => $row_posts['num_views'],
'replies' => $row_posts['num_replies'],
'icon' => '<img src="' . $settings[$icon_sources[$row_posts['icon']]] . '/post/' . $row_posts['icon'] . '.gif" align="middle" alt="' . $row_posts['icon'] . '" border="0" />',
'username' => '<a style="color: ' . $row_posts['online_color'] . ';" href="' . $scripturl . '?action=profile;u=' . $row_posts['id_member_updated'] . '">' . $row_posts['poster_name'] . '</a>',
'subject' => '<a style="font-weight: bold;" title="' . $text['board'] . ' ' . $row_posts['name'] .'" href="' . $scripturl . '?topic=' . $row_posts['id_topic'] . '.msg' . $row_posts['id_last_msg'] . ';topicseen#new">' . $row_posts['subject'] . '</a>',
'body' => $row_posts['body'],
'avatar' => $row_posts['avatar'] == '' ? $memberContext[$row_posts['id_member_updated']]['avatar']['href'] : (stristr($row_posts['avatar'], 'http://') ? $row_posts['avatar'] : $modSettings['avatar_url'] . '/' . $row_posts['avatar']),
'board' => $row_posts['name'],
'time' => timeformat($row_posts['poster_time']),
'poster' => array(
'id' => $row_posts['id_member'],
'name' => $row_posts['poster_name'],
'href' => !empty($row_posts['id_member']) ? $scripturl . '?action=profile;u=' . $row_posts['id_member'] : '',
'link' => !empty($row_posts['id_member']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row_posts['id_member'] . '">' . $row_posts['poster_name'] . '</a>' : $row_posts['poster_name']
),
'new' => !empty($row_posts['is_read'])
);
}
$smcFunc['db_free_result']($posts_result);
} else {
if (is_array($exclude_boards) || (int) $exclude_boards === $exclude_boards)
{
$exclude_boards = is_array($exclude_boards) ? $exclude_boards : array($exclude_boards);
}
elseif ($exclude_boards != null)
{
$output_method = $exclude_boards;
$exclude_boards = array();
}
$posts_result = $smcFunc['db_query']('', '
SELECT u.real_name,m.icon,m.poster_time, m.id_msg, m.id_member, m.subject, m.body, m.id_topic, b.name, b.id_board, u.avatar, g.online_color,' . ($user_info['is_guest'] ? '1 AS is_read, 0 AS new_from' : '
IFNULL(lt.id_msg, IFNULL(lmr.id_msg, 0)) >= m.id_msg_modified AS is_read,
IFNULL(lt.id_msg, IFNULL(lmr.id_msg, -1)) + 1 AS new_from') . '
FROM {db_prefix}messages AS m
LEFT JOIN {db_prefix}boards AS b ON (m.id_board = b.id_board)
LEFT JOIN {db_prefix}members AS u ON (m.id_member = u.id_member)
LEFT JOIN {db_prefix}membergroups AS g ON (g.id_group = CASE WHEN u.id_group = 0 THEN u.id_post_group ELSE u.id_group END)
' . (!$user_info['is_guest'] ? '
LEFT JOIN {db_prefix}log_topics AS lt ON (lt.id_topic = m.id_topic AND lt.id_member = ' . $user_info['id'] . ')
LEFT JOIN {db_prefix}log_mark_read AS lmr ON (lmr.id_board = b.id_board AND lmr.id_member = ' . $user_info['id'] . ')' : '') . '
WHERE m.approved=1' . (empty($exclude_boards) ? '' : '
AND b.id_board NOT IN ({array_int:exclude_boards})') . ' AND {query_see_board}
ORDER BY m.id_msg DESC
LIMIT ' . $limit,
array(
'exclude_boards' => empty($exclude_boards) ? '' : $exclude_boards,
)
);
$posts = array();
while ($row_posts = $smcFunc['db_fetch_assoc']($posts_result))
{
if (empty($modSettings['messageIconChecks_disable']) && !isset($icon_sources[$row_posts['icon']]))
$icon_sources[$row_posts['icon']] = file_exists($settings['theme_dir'] . '/images/post/' . $row_posts['icon'] . '.gif') ? 'images_url' : 'default_images_url';
global $memberContext;
loadMemberData($row_posts['id_member']);
loadMemberContext($row_posts['id_member']);
$posts[] = array(
'id' => $row_posts['id_member'],
'icon' => '<img src="' . $settings[$icon_sources[$row_posts['icon']]] . '/post/' . $row_posts['icon'] . '.gif" align="middle" alt="' . $row_posts['icon'] . '" border="0" />',
'username' => '<a style="color: ' . $row_posts['online_color'] . ';" href="' . $scripturl . '?action=profile;u=' . $row_posts['id_member'] . '">'.$row_posts['real_name'] . '</a>',
'subject' => '<a title="'.$row_posts['subject'].'" href="' . $scripturl . '?topic=' . $row_posts['id_topic'] . '.msg' . $row_posts['id_msg'] . ';topicseen#new">' .$row_posts['subject']. '</a>',
'body' => $row_posts['body'],
'avatar' => $row_posts['avatar'] == '' ? $memberContext[$row_posts['id_member']]['avatar']['href'] : (stristr($row_posts['avatar'], 'http://') ? $row_posts['avatar'] : $modSettings['avatar_url'] . '/' . $row_posts['avatar']),
'board' => $row_posts['name'],
'time' => timeformat($row_posts['poster_time']),
'new' => !empty($row_posts['is_read'])
);
}
$smcFunc['db_free_result']($posts_result);
}
echo'<div class="container-fluid nuevos_temas_indice">
';
foreach ($posts as $post) {
// Lets fix the BBCode bug and Strip the Text
//' . $text['who'] . '
$content1 = str_replace("[", "<", $post['body']);
$content2 = str_replace("]", ">", $content1);
$content3 = strip_tags($content2);
$preview = substr ($content3,0,$number);
$preview2 = preg_replace('/\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|$!:,.;]*[A-Z0-9+&@#\/%=~_|$]/i', '', $preview);
echo' <div class="row nuevas_respuestas_indice">
<div class="col-xs-6 col-md-1">
'.$post['icon'].'
</div>
<div class="col-xs-12 col-md-6">';
echo'<h4 class="media-heading">' . $post['subject']; if (!$post['new'] && $context['user']['is_logged'])
echo '   <span class="label label-success">Nuevo</span>';
echo'</h4>
';
if ($htmlspecialcharacters) {
echo htmlspecialchars($preview, ENT_NOQUOTES, "UTF-8") . '...';
} else {
echo' <small>'.$preview2.' en →',$post['board'],'</small>';
}
echo'</div>
<div class="col-xs-6 col-md-2">
<span><img src="/Themes/bootz/images/views.gif" title="Views" alt=" Views">   <span class="label label-warning">'.$post['views'].'</span></span>
<Span class="pull-right"><img src="/Themes/bootz/images/coments.gif" title="Replies" alt="Replies">   <span class="label label-info"> ', $post['replies'], '</span></Span>
</div>
<div class="col-xs-6 col-md-3">
<a class="pull-left" href="#" style=" margin-right: 10px; ">';
if (empty($post['avatar']))
{
echo '<img class="media-object avatar" src="/avatars/noavatar.gif" alt="no tengo avatar xD" width="34px" height="34px" />';
}
else{
echo '<img class="media-object avatar" src="' . $post['avatar'] .'" alt="" width="34px" height="34px" />';
}
echo'
</a>
<div class="media-body">
<span style="padding: 0 5px;display: inline-block;margin-bottom: 5px;"> ' . $post['username'] . '</span><br><div><small>' . $post['time'] .'</small></div>';
echo '
</div>
</div>
</div>
';
}
echo'
</div>';
?>
http://simpleportal.net/index.php?topic=9138.0
preview
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FYK6o4SM.png&hash=1560132e8e1d735ee1f7dcf6e4f97eb1f81ed2b1)
Quote from: David111567 on August 23, 2014, 10:21:05 AM
Is the Simple Portal website no longer online? Been trying to get to it for a little while now....seems to be gone?
Quote
The SimplePortal Team is happy to announce the release of SimplePortal 2.3.6, code-named "Mist!" This release includes fixes for the bugs found in the 2.3.5 version, and the change of license to allow for open development of SimplePortal. As of this version and going forward, SimplePortal is licensed under the BSD License. Older versions of SimplePortal are still licensed under the Simple Machines License.
We urge all users to upgrade to SimplePortal 2.3.6 as soon as possible to take advantage of the bug fixes. A full list of changes for 2.3.6 can be found in the changelog.txt file within the SimplePortal package, but the major fixes are:Unfortunately, there is no auto-upgrade option from 2.3.5 to 2.3.6 due to the number of changes. So, if you are running 2.3.5 or an older version, you can upgrade by following these three steps. You shouldn't lose any data, but for safety, you should always back up before modifying your forum.
- Updates and improvements to the built-in blocks.
- Several security improvements.
- Proper logging of portal activity.
- Several fixes and improvements to the interface.
- Styling options for board news block.
- Fixes to shoutboxes module.
- Uninstall SimplePortal.
- Download SimplePortal 2.3.6. (http://simpleportal.net/index.php?action=downloads;area=stable_simpleportal_packages;file=139;download)
- Install SimplePortal 2.3.6, and you are ready to go!
Thanks for all your support, and keep those bug reports and feature requests coming!
-The SimplePortal Team
global $context, $scripturl, $memberContext, $smcFunc;
echo '
<table class="sp_fullwidth">';
$admins = ssi_queryMembers('id_group = {int:id_group}', array('id_group' => 1,), '', 'id_member', 'array');
$genelyon = ssi_queryMembers('id_group = {int:id_group}', array('id_group' => 2,), '', 'id_member', 'array');
$duayen = ssi_queryMembers('id_group = {int:id_group}', array('id_group' => 37,), '', 'id_member', 'array');
$request = $smcFunc['db_query']('', '
SELECT id_member
FROM {db_prefix}moderators',
array(
)
);
$mod_ids = array();
while ($row = $smcFunc['db_fetch_assoc']($request))
$mod_ids[] = $row['id_member'];
$smcFunc['db_free_result']($request);
if (empty($mod_ids))
return array();
// Load the members.
loadMemberData($mod_ids);
foreach ($mod_ids as $mod)
{
// Load their context data.
if (!loadMemberContext($mod))
continue;
// Store this member's information.
$mods[$mod] = $memberContext[$mod];
}
$stafmembers = $admins + $genelyon + $duayen + $mods;
$i = 1;
foreach ($stafmembers as $member)
{
if ($i == 1)
echo '
<tr>';
echo '
<td class="sp_member sp_center">', (!empty($member['avatar']['href']) ? '
<img src="' . $member['avatar']['href'] . '" alt="' . $member['name'] . '" width="35" />' : ''), '
</td>
<td class="sp_member_info">
', $member['link'], '<br />
', $member['group'], '' . ($member['group_id'] == 1 ? '' : '<br />' . $member['last_login_p'] . '') . '
</td>';
if ($i == 6)
echo '
</tr>';
$i++;
if ($i == 6) $i = 1;
}
echo '
</tr>
</table>';
Quote from: akbora on October 09, 2014, 06:57:07 PM
@[SİNAN] What's the wrong with these codes that doesnt't work with sp block it was working before. thanks
if (empty($mod_ids))
return array();
$stafmembers = $admins + $genelyon + $duayen + $mods;
Quote from: 420connect.info on October 10, 2014, 06:11:54 PM
I've probably got some setting wrong somewhere but for some reason my shoutbox and attached images aren't visible for guests/members except myself..
Quote from: benz1 on October 10, 2014, 11:42:30 PM
Hi, trying to follow the uninstall/install instructions to upgrade from 2.1.1 to 2.3.6 but getting the following warnings. Is it safe to proceed?
Quote from: 420connect.info on October 11, 2014, 12:50:27 PM
Just to update, I've solved my problem myself..
I didn't have the box ticked for guests being able to view attachments under permissions! ; ::)
(using an alternate chat now, so not sure if this would have fixed the missing shoutbox too.. but my images are displaying now)
Quote from: longlong on October 13, 2014, 12:32:37 PM
How to disable Ohara Youtube embed from the Simple's Portal Shoutbox?
I am having this problem!
Whenever i am pasting a link into shoutbox the Ohara automatically addstags "test 1"
see this mp4 video "cdn.mediacru.sh/aVs2TFikaWcC.mp4" i made with my problem!
i have to add [ url][ /url] tags every time to the link so it can be shown naturally "test 2"
i haven't found any way to modify the Ohara or Simple Portal's Shoutbox! and the only link i found by searching was this but no answer!
http://www.simplemachines.org/community/index.php?topic=507505.msg3585380#msg3585380
i also asked Ohara YouTube Embed mods here!
http://www.simplemachines.org/community/index.php?topic=462968.msg3753712#msg3753712
// The extremely long regex...
global $context;
if (!empty($context['ohara_disable']))
return $message;
// The extremely long regex...
$context['aeva_disable'] = true;
$context['aeva_disable'] = true;
$context['ohara_disable'] = true;
Quote from: [SiNaN] on October 13, 2014, 02:19:24 PM
Firstly, I would suggest using the Aeva mod; we already have support for that
(since the author cared about the others and allowed us to disable their mod easily) and it's a really nice mod.
Quote from: longlong on October 13, 2014, 05:02:41 PM
Very nice idea indeed & it was easier than i thought!
Thnk you very much! :)
Quote from: longlong on October 13, 2014, 05:02:41 PM
Thought Aeva was outdated & it had unnecessary stuff but anyway!
Quote from: [SiNaN] on October 11, 2014, 07:52:16 AMQuote from: akbora on October 09, 2014, 06:57:07 PM
@[SİNAN] What's the wrong with these codes that doesnt't work with sp block it was working before. thanks
That code won't work if you don't have any board moderators.
It's probably not a good idea to return nothing here:Code Selectif (empty($mod_ids))
return array();
Use array_merge() instead:Code Select$stafmembers = $admins + $genelyon + $duayen + $mods;
Quote from: kigor on October 18, 2014, 07:13:17 AM
Hello
before today I have SMF 2.0.6 and SimplePortal 2.3.6
Today I update SMF to 2.0.9 and SimplePortal blockes disapeer and also in Admin config part too.
If I want to uninstall I have error like in attach.
What I can do
PS: forum is on address: http://croinfo.net/forum/index.php
Quote from: akbora on October 19, 2014, 03:37:27 AM
Only I want to ask how can I change this codes with your suggestion
if (empty($mod_ids))
return array();
// Load the members.
loadMemberData($mod_ids);
if (!empty($mod_ids))
loadMemberData($mod_ids);
$stafmembers = $admins + $genelyon + $duayen + $mods;
$stafmembers = array_merge($admins, $genelyon, $duayen, $mods);
Quote from: Tommy-G on October 27, 2014, 02:25:32 PM
Sorry if this is the wrong place but i'm having an issue with my homepage using SimplePortal.
I have a header block that contains image links to sub-domains. there's also a log-in box to the left under the header, every time a member attempts to log in that way, they click in the box and they're automatically taken to the last website on the list "Seph Mugen." The link to his website automatically goes to the clipboard when you hover over it, I think it's any website in the last spot. Is there a way to prevent that so users can log in there without clicking the box and going to his website?
Here's my homepage so you can see for yourself.
http://mugenflowzone.com/
<!-- SCM Music Player http://scmplayer.net -->
<script type="text/javascript" src="http://scmplayer.net/script.js"
data-config="{'skin':'skins/aquaBlue/skin.css','volume':50,'autoplay':false,'shuffle':true,'repeat':1,'placement':'bottom','showplaylist':false,'playlist':'http://youtu.be/B0N9yFcz4ho?list=RDB0N9yFcz4ho'}" ></script>
<!-- SCM Music Player script end -->
Quote from: [SiNaN] on November 13, 2014, 11:44:45 AM
I just downloaded a fresh SMF 2.0.9 and SP 2.3.6. I could install it with absolutely no problems and integration mode works perfectly fine. Just remember that if you switch to the integration mode, you will need to set the display options for the blocks to be forum (or anything else like everything that covers it).
[code snippet from the install.xml]
<modification xmlns="http://www.simplemachines.org/xml/modification" xmlns:smf="http://www.simplemachines.org/">
<id>[SiNaN]:SimplePortal</id>
<version>2.3.6</version>
<file name="$boarddir/index.php">
<operation>
<search position="replace"><![CDATA[require_once($sourcedir . '/Security.php');]]></search>
<add><![CDATA[require_once($sourcedir . '/Security.php');
require_once($sourcedir . '/Subs-Portal.php');]]></add>
</operation>
<operation>
<search position="replace"><![CDATA[ // Is the forum in maintenance mode? (doesn't apply to administrators.)
if (!empty($maintenance) && !allowedTo('admin_forum'))]]></search>
<add><![CDATA[ // Load SimplePortal.
sportal_init();
// Is the forum in maintenance mode? (doesn't apply to administrators.)
if (!empty($maintenance) && !allowedTo('admin_forum'))]]></add>
</operation>
<operation>
<search position="replace"><![CDATA[ // Action and board are both empty... BoardIndex!]]></search>
<add><![CDATA[ // Go catch it boy! Catch it!
$sp_action = sportal_catch_action();
if ($sp_action)
return $sp_action;
// Action and board are both empty... BoardIndex!]]></add>
</operation>
<operation>
<search position="replace"><![CDATA[ 'findmember' => array('Subs-Auth.php', 'JSMembers'),]]></search>
<add><![CDATA[ 'findmember' => array('Subs-Auth.php', 'JSMembers'),
'forum' => array('BoardIndex.php', 'BoardIndex'),
'portal' => array('PortalMain.php', 'sportal_main'),]]></add>
</operation>
<operation>
<search position="replace"><![CDATA[if (empty($_REQUEST['action']) || ]]></search>
<add><![CDATA[if (empty($_REQUEST['action']) || !($_REQUEST['action'] == 'portal' && isset($_GET['xml'])) && ]]></add>
</operation>
<operation>
<search position="replace"><![CDATA[ // Get the function and file to include - if it's not there, do the board index.]]></search>
<add><![CDATA[ if (!empty($context['disable_sp']))
unset($actionArray['portal'], $actionArray['forum']);
// Get the function and file to include - if it's not there, do the board index.]]></add>
</operation>
</file>
Quote from: davidhs on April 10, 2012, 11:52:26 AMLanguage strings are same, this is valid for SimplePortal 2.3.6.
I made a package for Spanish translation of SimplePortal 2.3.5 (based of translation 2.3.4 = 2.3.3 + new strings)
I attach this in SimplePortal website http://simpleportal.net/index.php?topic=11053.0
Quote from: CannabisGamerClub on November 24, 2014, 02:38:26 PM
I haven't gotten a response from sp support, but I was wondering if anyone here knew how too customize it too were the blocks have a custom border added, like a textured bordered that helps it flow with the site too separate each block?
Quote...this ... are like read more button. If any posts have <br /> tags yhen SimplePortal put link to post in <br /> tag. Simple explaining example:
QuoteElement b< not allowed as child of element div in this context. (Suppressing further errors from this subtree.)Then I don't help anyone with clearing php code in SMF file.
Quote from: ♞ Burke Knight ♞ on December 21, 2014, 05:06:16 PM
It seems to have made a link to the post, and it looks valid to me. I clicked it, and it took me to the full post.
Quote from: Chen Zhen on December 22, 2014, 01:06:10 AM
MESWEB,
If you would like to try a possible solution then restore your PortalBlocks.php file to its default state and install this plugin:
http://web-develop.ca/index.php?action=downloads;sa=view;down=9
.. the description on the download page describes what it does. If you decide to use it please let me know if it resolves the issue.
Regards.
<b<a href="http://obeznany.pl/index.php?topic=146.0" title="Airborne ranger">...</b<a>
Quote from: MESWEB
If this is not BUG how You explain this code in my site?
Quote from: MESWEB
This is not my site I only working for someone wit this www.
Quote from: SiNaN
The SimplePortal Team is happy to announce the release of SimplePortal 2.3.6, code-named "Mist!" This release includes fixes for the bugs found in the 2.3.5 version, and the change of license to allow for open development of SimplePortal. As of this version and going forward, SimplePortal is licensed under the BSD License. Older versions of SimplePortal are still licensed under the Simple Machines License.
We urge all users to upgrade to SimplePortal 2.3.6 as soon as possible to take advantage of the bug fixes. A full list of changes for 2.3.6 can be found in the changelog.txt file within the SimplePortal package, but the major fixes are:[cutoff]Unfortunately, there is no auto-upgrade option from 2.3.5 to 2.3.6 due to the number of changes. So, if you are running 2.3.5 or an older version, you can upgrade by following these three steps. You shouldn't lose any data, but for safety, you should always back up before modifying your forum.
- Updates and improvements to the built-in blocks.
- Several security improvements.
- Proper logging of portal activity.
- Several fixes and improvements to the interface.
- Styling options for board news block.
- Fixes to shoutboxes module.
- Uninstall SimplePortal.
- Download SimplePortal 2.3.6. (http://simpleportal.net/index.php?action=downloads;area=stable_simpleportal_packages;file=139;download)
- Install SimplePortal 2.3.6, and you are ready to go!
Thanks for all your support, and keep those bug reports and feature requests coming!
-The SimplePortal Team
Quote from: Chen Zhen on December 25, 2014, 12:46:29 AM
NekoJonez,
You can try out this plugin if you wish: http://web-develop.ca/index.php?action=downloads;sa=view;down=10
There is a checkbox added within the who's online block configuration to have the specific block display in horizontal mode.
You can leave comments to the plugin on my forum if you want some changes or have any other ideas for it.
Regards.
Quote from: Chen Zhen on January 18, 2015, 09:36:30 PM
Bob La Londe,
When you edit or create a block look at the display options (2nd tier of settings) whereas you can use the drop-down else click on the Advanced Options setting.
These settings will allow you control on where you would like the block to display. Portal means your home page, the rest are rather self explanatory by name.
Quote from: SaltedWI tend to use the "Custom Body Style" box in the block configuration, setting "overflow: hidden; vertical-align: middle;" seems to get me the result you're looking for.
I want the scroll bar gone so I can have a clean look.
overflow: hidden; vertical-align: middle;
body
{
min-width: 750px;
}
body
{
min-width: device-width;
}
@media only screen and (max-width: 799px)
{
#sp_left, #sp_right
{
display: none;
visibility: hidden;
}
}
Quote from: Chen Zhen on May 01, 2015, 11:49:37 PM
Motorhed,
The css for that block is different between your home page & the actual post's page. Also the home page does not display the html for that image at all.
Is this the included Articles block being used? What exact block is being used and if it is an included block, has it been modified?
If this is a blog block then which blog mod do you have installed?
Regards.
<?php ssi_coolNews2(array(2,99), 6, null, 0); ?>
// Show the latest news, with a template... by board.
function ssi_coolNews2($board = null, $limit = null, $start = null, $length = null, $output_method = 'echo')
{
global $scripturl, $db_prefix, $txt, $settings, $modSettings, $context;
global $smcFunc;
loadLanguage('Stats');
// Must be integers....
if ($limit === null)
$limit = isset($_GET['limit']) ? (int) $_GET['limit'] : 5;
else
$limit = (int) $limit;
if ($start === null)
$start = isset($_GET['start']) ? (int) $_GET['start'] : 0;
else
$start = (int) $start;
/*
if ($board !== null)
$board = (int) $board;
elseif (isset($_GET['board']))
$board = (int) $_GET['board'];
*/
if (empty($board))
return;
elseif (!is_array($board))
$board = array($board);
if ($length === null)
$length = isset($_GET['length']) ? (int) $_GET['length'] : 0;
else
$length = (int) $length;
$limit = max(0, $limit);
$start = max(0, $start);
/*
// Make sure guests can see this board.
$request = $smcFunc['db_query']('', '
SELECT id_board
FROM {db_prefix}boards
WHERE ' . ($board === null ? '' : 'id_board = {int:current_board}
AND ') . 'FIND_IN_SET(-1, member_groups)
LIMIT 1',
array(
'current_board' => $board,
)
);
if ($smcFunc['db_num_rows']($request) == 0)
{
if ($output_method == 'echo')
die($txt['ssi_no_guests']);
else
return array();
}
list ($board) = $smcFunc['db_fetch_row']($request);
$smcFunc['db_free_result']($request);
*/
// Load the message icons - the usual suspects.
$stable_icons = array('xx', 'thumbup', 'thumbdown', 'exclamation', 'question', 'lamp', 'smiley', 'angry', 'cheesy', 'grin', 'sad', 'wink', 'moved', 'recycled', 'wireless');
$icon_sources = array();
foreach ($stable_icons as $icon)
$icon_sources[$icon] = 'images_url';
// Find the post ids.
$request = $smcFunc['db_query']('', '
SELECT id_first_msg
FROM {db_prefix}topics
WHERE id_board IN ({array_int:current_board})' . ($modSettings['postmod_active'] ? '
AND approved = {int:is_approved}' : '') . '
ORDER BY id_first_msg DESC
LIMIT ' . $start . ', ' . $limit,
array(
'current_board' => $board,
'is_approved' => 1,
)
);
$posts = array();
while ($row = $smcFunc['db_fetch_assoc']($request))
$posts[] = $row['id_first_msg'];
$smcFunc['db_free_result']($request);
if (empty($posts))
return array();
global $sourcedir, $attachments, $topic;
require_once($sourcedir . '/Display.php');
$attachments = array();
$request = $smcFunc['db_query']('', '
SELECT
a.id_attach, a.id_folder, a.id_msg, a.filename, IFNULL(a.size, 0) AS filesize, a.downloads, a.approved,
a.width, a.height' . (empty($modSettings['attachmentShowImages']) || empty($modSettings['attachmentThumbnails']) ? '' : ',
IFNULL(thumb.id_attach, 0) AS id_thumb, thumb.width AS thumb_width, thumb.height AS thumb_height') . '
FROM {db_prefix}attachments AS a' . (empty($modSettings['attachmentShowImages']) || empty($modSettings['attachmentThumbnails']) ? '' : '
LEFT JOIN {db_prefix}attachments AS thumb ON (thumb.id_attach = a.id_thumb)') . '
WHERE a.id_msg IN ({array_int:message_list})
AND a.attachment_type = {int:attachment_type}' . (!$modSettings['postmod_active'] || allowedTo('approve_posts') ? '' : '
AND a.approved = {int:is_approved}'),
array(
'message_list' => $posts,
'attachment_type' => 0,
'is_approved' => 1,
)
);
$temp = array();
while ($row = $smcFunc['db_fetch_assoc']($request))
{
$temp[$row['id_attach']] = $row;
if (!isset($attachments[$row['id_msg']]))
$attachments[$row['id_msg']] = array();
}
$smcFunc['db_free_result']($request);
ksort($temp);
foreach ($temp as $row)
$attachments[$row['id_msg']][] = $row;
// Find the posts.
$request = $smcFunc['db_query']('', '
SELECT
m.icon, m.subject, m.body, IFNULL(mem.real_name, m.poster_name) AS poster_name, m.poster_time,
t.num_replies, t.num_views, t.id_topic, m.id_member, m.smileys_enabled, m.id_msg, t.locked, t.id_last_msg
FROM {db_prefix}topics AS t
INNER JOIN {db_prefix}messages AS m ON (m.id_msg = t.id_first_msg)
LEFT JOIN {db_prefix}members AS mem ON (mem.id_member = m.id_member)
WHERE t.id_first_msg IN ({array_int:post_list})
ORDER BY t.id_first_msg DESC
LIMIT ' . count($posts),
array(
'post_list' => $posts,
)
);
$return = array();
while ($row = $smcFunc['db_fetch_assoc']($request))
{
// If we want to limit the length of the post.
if (!empty($length) && $smcFunc['strlen']($row['body']) > $length)
{
$row['body'] = $smcFunc['substr']($row['body'], 0, $length);
// The first space or line break. (<br />, etc.)
$cutoff = max(strrpos($row['body'], ' '), strrpos($row['body'], '<'));
if ($cutoff !== false)
$row['body'] = $smcFunc['substr']($row['body'], 0, $cutoff);
$row['body'] .= '...';
}
$row['body'] = parse_bbc($row['body'], $row['smileys_enabled'], $row['id_msg']);
// Check that this message icon is there...
if (empty($modSettings['messageIconChecks_disable']) && !isset($icon_sources[$row['icon']]))
$icon_sources[$row['icon']] = file_exists($settings['theme_dir'] . '/images/post/' . $row['icon'] . '.gif') ? 'images_url' : 'default_images_url';
censorText($row['subject']);
censorText($row['body']);
$topic = $row['id_topic'];
$return[] = array(
'attachments' => loadAttachmentContext($row['id_msg']),
'id' => $row['id_topic'],
'views' => $row['num_views'],
'message_id' => $row['id_msg'],
'icon' => '<img src="' . $settings[$icon_sources[$row['icon']]] . '/post/' . $row['icon'] . '.gif" alt="' . $row['icon'] . '" />',
'subject' => $row['subject'],
'time' => timeformat($row['poster_time']),
'timestamp' => forum_time(true, $row['poster_time']),
'body' => $row['body'],
'href' => $scripturl . '?topic=' . $row['id_topic'] . '.0',
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">' . $row['num_replies'] . ' ' . ($row['num_replies'] == 1 ? $txt['ssi_comment'] : $txt['ssi_comments']) . '</a>',
'replies' => $row['num_replies'],
'comment_href' => !empty($row['locked']) ? '' : $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';last_msg=' . $row['id_last_msg'],
'comment_link' => !empty($row['locked']) ? '' : '<a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';last_msg=' . $row['id_last_msg'] . '">' . $txt['ssi_write_comment'] . '</a>',
'new_comment' => !empty($row['locked']) ? '' : '<a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'poster' => array(
'id' => $row['id_member'],
'name' => $row['poster_name'],
'href' => !empty($row['id_member']) ? $scripturl . '?action=profile;u=' . $row['id_member'] : '',
'link' => !empty($row['id_member']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['poster_name'] . '</a>' : $row['poster_name']
),
'locked' => !empty($row['locked']),
'is_last' => false
);
}
$smcFunc['db_free_result']($request);
if (empty($return))
return $return;
$return[count($return) - 1]['is_last'] = true;
if ($output_method != 'echo')
return $return;
foreach ($return as $news)
{
$attachment = array();
if (!empty($news['attachments'][0]))
{
$attachment = $news['attachments'][0];
if ($attachment['is_image'])
{
if ($attachment['thumbnail']['has_thumb'])
echo '
<div style="display: block; overflow: auto;"><div class="floatsquare"><a href="', $news['href'], '"><img src="', $attachment['thumbnail']['href'], '" alt="' . $news['subject'] . '" border="0" /></a><br /></div><div class="newsblock">';
else
echo '
<div style="display: block; overflow: auto;"><div class="floatsquare"><a href="', $news['href'], '"><img src="' . $attachment['href'] . ';image" alt="' . $news['subject'] . '" width="' . $attachment['width'] . '" height="' . $attachment['height'] . '" border="0" /></a><br /></div><div class="newsblock">';
}
}
else
echo '
<div style="display: block; overflow: auto;"><div class="newsblock2">';
echo '
<div class="headline"><a href="', $news['href'], '">', $news['subject'], '</a></div>
<div class="details">', $news['link'], $news['locked'] ? '' : ' | ' . $news['views'], ' views</div>
</div></div><div style="clear: both;"></div>';
if (!$news['is_last'])
echo '
<hr />';
}
}
This page can't be displayed
•Make sure the web address http://condadodealhamaforum.com is correct.
•Look for the page with your search engine.
•Refresh the page in a few minutes.
<?php
// custom block code1
if (!defined('SMF'))
die('Hacking attempt...');
function custom_block1()
{
echo 'This is my HTML content!';
}
?>
global $sourcedir;
require_once($sourcedir . '/myblock1.php');
custom_block1();
This Privacy Policy governs the manner in which Condado de Alhama Forum collects, uses, maintains and discloses information collected from users (each, a "User") of the <a href="www.condadodealhamaforum.com">www.condadodealhamaforum.com</a> website ("Site"). This privacy policy applies to the Site and all products and services offered by Condado de Alhama Forum.<br><br>
<b>Personal identification information</b><br><br>
We may collect personal identification information from Users in a variety of ways, including, but not limited to, when Users visit our site, register on the site, place an order, subscribe to the newsletter, and in connection with other activities, services, features or resources we make available on our Site. Users may be asked for, as appropriate, name, email address. We will collect personal identification information from Users only if they voluntarily submit such information to us. Users can always refuse to supply personally identification information, except that it may prevent them from engaging in certain Site related activities.<br><br>
<b>Non-personal identification information</b><br><br>
We may collect non-personal identification information about Users whenever they interact with our Site. Non-personal identification information may include the browser name, the type of computer and technical information about Users means of connection to our Site, such as the operating system and the Internet service providers utilized and other similar information.<br><br>
<b>Web browser cookies</b><br><br>
Our Site may use "cookies" to enhance User experience. User's web browser places cookies on their hard drive for record-keeping purposes and sometimes to track information about them. User may choose to set their web browser to refuse cookies, or to alert you when cookies are being sent. If they do so, note that some parts of the Site may not function properly.<br><br>
<b>How we use collected information</b><br><br>
Condado de Alhama Forum may collect and use Users personal information for the following purposes:<br>
<ul>
<li><i>- To personalize user experience</i><br>
We may use information in the aggregate to understand how our Users as a group use the services and resources provided on our Site.</li>
<li><i>- To improve our Site</i><br>
We may use feedback you provide to improve our products and services.</li>
<li><i>- To process payments</i><br>
We may use the information Users provide about themselves when placing an order only to provide service to that order. We do not share this information with outside parties except to the extent necessary to provide the service.</li>
<li><i>- To send periodic emails</i><br>
We may use the email address to send them information and updates pertaining to their order. If User decides to opt-in to our mailing list, they will receive emails that may include company news, updates, related product or service information, etc. If at any time the User would like to unsubscribe from receiving future emails, we include detailed unsubscribe instructions at the bottom of each email.</li>
</ul>
<b>How we protect your information</b><br><br>
We adopt appropriate data collection, storage and processing practices and security measures to protect against unauthorized access, alteration, disclosure or destruction of your personal information, username, password, transaction information and data stored on our Site.<br><br>
<b>Sharing your personal information</b><br><br>
We do not sell, trade, or rent Users personal identification information to others. We may share generic aggregated demographic information not linked to any personal identification information regarding visitors and users with our business partners, trusted affiliates and advertisers for the purposes outlined above.<br><br>
<b>Third party websites</b><br><br>
Users may find advertising or other content on our Site that link to the sites and services of our partners, suppliers, advertisers, sponsors, licensors and other third parties. We do not control the content or links that appear on these sites and are not responsible for the practices employed by websites linked to or from our Site. In addition, these sites or services, including their content and links, may be constantly changing. These sites and services may have their own privacy policies and customer service policies. Browsing and interaction on any other website, including websites which have a link to our Site, is subject to that website's own terms and policies.<br><br>
<b>Advertising</b><br><br>
Ads appearing on our site may be delivered to Users by advertising partners, who may set cookies. These cookies allow the ad server to recognize your computer each time they send you an online advertisement to compile non personal identification information about you or others who use your computer. This information allows ad networks to, among other things, deliver targeted advertisements that they believe will be of most interest to you. This privacy policy does not cover the use of cookies by any advertisers.<br><br>
<b>Google Adsense</b><br><br>
Some of the ads may be served by Google. Google's use of the DART cookie enables it to serve ads to Users based on their visit to our Site and other sites on the Internet. DART uses "non personally identifiable information" and does NOT track personal information about you, such as your name, email address, physical address, etc. You may opt out of the use of the DART cookie by visiting the Google ad and content network privacy policy at <a href="http://www.google.com/privacy_ads.html">http://www.google.com/privacy_ads.html</a><br><br>
<b>Changes to this privacy policy</b><br><br>
Condado de Alhama Forum has the discretion to update this privacy policy at any time. When we do, we will revise the updated date at the bottom of this page. We encourage Users to frequently check this page for any changes to stay informed about how we are helping to protect the personal information we collect. You acknowledge and agree that it is your responsibility to review this privacy policy periodically and become aware of modifications.<br><br>
<b>Your acceptance of these terms</b><br><br>
By using this Site, you signify your acceptance of this policy. If you do not agree to this policy, please do not use our Site. Your continued use of the Site following the posting of changes to this policy will be deemed your acceptance of those changes.<br><br>
<b>Contacting us</b><br><br>
If you have any questions about this Privacy Policy, the practices of this site, or your dealings with this site, please contact us at: <a href="mailto:[email protected]?Subject=Privacy%20Policy" target="_top">[email protected]</a>
<br><br>
This document was last updated on February 22, 2015<br><br>
This Privacy Policy governs the manner in which Condado de Alhama Forum collects, uses, maintains and discloses information collected from users (each, a "User") of the <a href="http://www.condadodealhamaforum.com">www.condadodealhamaforum.com</a> website ("Site"). This privacy policy applies to the Site and all products and services offered by Condado de Alhama Forum.<br /><br />
<b>Personal identification information</b><br /><br />
We may collect personal identification information from Users in a variety of ways, including, but not limited to, when Users visit our site, register on the site, place an order, subscribe to the newsletter, and in connection with other activities, services, features or resources we make available on our Site. Users may be asked for, as appropriate, name, email address. We will collect personal identification information from Users only if they voluntarily submit such information to us. Users can always refuse to supply personally identification information, except that it may prevent them from engaging in certain Site related activities.<br /><br />
<b>Non-personal identification information</b><br /><br />
We may collect non-personal identification information about Users whenever they interact with our Site. Non-personal identification information may include the browser name, the type of computer and technical information about Users means of connection to our Site, such as the operating system and the Internet service providers utilized and other similar information.<br /><br />
<b>Web browser cookies</b><br /><br />
Our Site may use "cookies" to enhance User experience. User's web browser places cookies on their hard drive for record-keeping purposes and sometimes to track information about them. User may choose to set their web browser to refuse cookies, or to alert you when cookies are being sent. If they do so, note that some parts of the Site may not function properly.<br /><br />
<b>How we use collected information</b><br /><br />
Condado de Alhama Forum may collect and use Users personal information for the following purposes:<br />
<ul>
<li><i>- To personalize user experience</i><br />
We may use information in the aggregate to understand how our Users as a group use the services and resources provided on our Site.</li>
<li><i>- To improve our Site</i><br />
We may use feedback you provide to improve our products and services.</li>
<li><i>- To process payments</i><br />
We may use the information Users provide about themselves when placing an order only to provide service to that order. We do not share this information with outside parties except to the extent necessary to provide the service.</li>
<li><i>- To send periodic emails</i><br />
We may use the email address to send them information and updates pertaining to their order. If User decides to opt-in to our mailing list, they will receive emails that may include company news, updates, related product or service information, etc. If at any time the User would like to unsubscribe from receiving future emails, we include detailed unsubscribe instructions at the bottom of each email.</li>
</ul>
<b>How we protect your information</b><br /><br />
We adopt appropriate data collection, storage and processing practices and security measures to protect against unauthorized access, alteration, disclosure or destruction of your personal information, username, password, transaction information and data stored on our Site.<br /><br />
<b>Sharing your personal information</b><br /><br />
We do not sell, trade, or rent Users personal identification information to others. We may share generic aggregated demographic information not linked to any personal identification information regarding visitors and users with our business partners, trusted affiliates and advertisers for the purposes outlined above.<br /><br />
<b>Third party websites</b><br /><br />
Users may find advertising or other content on our Site that link to the sites and services of our partners, suppliers, advertisers, sponsors, licensor and other third parties. We do not control the content or links that appear on these sites and are not responsible for the practices employed by websites linked to or from our Site. In addition, these sites or services, including their content and links, may be constantly changing. These sites and services may have their own privacy policies and customer service policies. Browsing and interaction on any other website, including websites which have a link to our Site, is subject to that website's own terms and policies.<br /><br />
<b>Advertising</b><br /><br />
Ads appearing on our site may be delivered to Users by advertising partners, who may set cookies. These cookies allow the ad server to recognize your computer each time they send you an online advertisement to compile non personal identification information about you or others who use your computer. This information allows ad networks to, among other things, deliver targeted advertisements that they believe will be of most interest to you. This privacy policy does not cover the use of cookies by any advertisers.<br /><br />
<b>Google Adsense</b><br /><br />
Some of the ads may be served by Google. Google's use of the DART cookie enables it to serve ads to Users based on their visit to our Site and other sites on the Internet. DART uses "non personally identifiable information" and does NOT track personal information about you, such as your name, email address, physical address, etc. You may opt out of the use of the DART cookie by visiting the Google ad and content network privacy policy at <a href="http://www.google.com/privacy_ads.html">www.google.com/privacy_ads.html</a><br /><br />
<b>Changes to this privacy policy</b><br /><br />
Condado de Alhama Forum has the discretion to update this privacy policy at any time. When we do, we will revise the updated date at the bottom of this page. We encourage Users to frequently check this page for any changes to stay informed about how we are helping to protect the personal information we collect. You acknowledge and agree that it is your responsibility to review this privacy policy periodically and become aware of modifications.<br /><br />
<b>Your acceptance of these terms</b><br /><br />
By using this Site, you signify your acceptance of this policy. If you do not agree to this policy, please do not use our Site. Your continued use of the Site following the posting of changes to this policy will be deemed your acceptance of those changes.<br /><br />
<b>Contacting us</b><br /><br />
If you have any questions about this Privacy Policy, the practices of this site, or your dealings with this site, please contact us at: <a href="mailto:[email protected]?subject=Privacy%20Policy" target="_top">[email protected]</a>
<br /><br />
This document was last updated on February 22, 2015<br /><br />
Quote from: Kerrith on June 12, 2015, 08:35:15 PM
Kudos for an excellent mod. I just upgraded my SMF 2.0.7 to SMF 2.0.10 and switched from Tiny Portal 1.0 to SimplePortal 2.3.6 and all went perfectly smoothly. Nary a glitch. Simply amazing!
My one remaining problem is how to delete "TinyPortal © 2005-2012" from the bottom credits, see Big Island Forum (http://www.bigislandforum.org/forums/index.php).
SMF 2.0.10 | SMF © 2015, Simple Machines
SimplePortal 2.3.6 © 2008-2014, SimplePortal
TinyPortal © 2005-2012
I've deleted everything I can find pertaining to TP.
Kerry
Quote from: waplist on December 12, 2015, 08:54:08 AMI apologize, I never saw your message and we don't check the topic often here, that's why there is a website dedicated to support this mod: http://simpleportal.net/index.php
Please add support for redsy theme, i mean for responsiveness.Redsy is popular theme. due to tables in simple portal its showing pc website
Quote from: habeycole on July 15, 2016, 08:42:21 AM
I made a support post here for SP for some time now and I guess it's going to take forever to actually find support. Instead of waiting for this, I clicked over to their support site and need to register(as to seek for support), but a question is delaying my registration. Please who knows the answer to this question on SP's registration page?
Question:
"Spell the exact "number" of holes in a Duckpin bowling ball"
Expecting answers, pals.
Quote from: Grammy on July 15, 2016, 10:27:12 AM
There aren't any holes in a Duckpin bowling ball, I'm pretty sure. :-\
Quote from: Chen Zhen on July 18, 2016, 11:12:46 PM
Yes I am going to change that question to:
"Please spell the answer to the Ultimate Question of Life, the Universe, and Everything:"
.. which is quite simple really.
Quote from: Ninja ZX-10RR on July 18, 2016, 10:49:58 PMPlease do, it's necessary.
We are reviewing that registration question in team boards, seeing you had problems while registering. Thanks for the feedback.
Quote from: Ninja ZX-10RR on July 18, 2016, 10:49:58 PMNo, it's yet to be answered. I hope you can help provide an answer to it.
Your question has been answered on SimplePortal.net by one of my teammates.
Regards,
~SimplePortal Support Team
Quote from: habeycole on July 21, 2016, 08:11:20 AMI haven't said it was solved, I said it was answered :P It's something I've never seen before, so the fix is not likely going to be "Hey tick that checkbox and save" ;) Hope you understand what I mean.Quote from: Ninja ZX-10RR on July 18, 2016, 10:49:58 PMNo, it's yet to be answered. I hope you can help provide an answer to it.
Your question has been answered on SimplePortal.net by one of my teammates.
Regards,
~SimplePortal Support Team
Quote from: GoldTec on August 14, 2016, 03:48:55 PM
Hi all! I have one problem. I not found chatbox commands in simple portal. Only 1 working. That's /me. Other not working. Can you help me? Sorry for my bad english.
Quote from: danshell on February 05, 2017, 09:03:59 PM
Hi I have added a Poll block to the right side and it works fine for me as the administrator but none of my members or even guests can see it.
They get 'you can not see the results of this poll at the moment' message.
I have permissions for that block set to 'everyone', I even tried custom permissions and I am getting the same results.
Any help is appreciated.
Quote from: danshell on February 06, 2017, 04:43:49 PM
When I am logged in as the administrator I can see it ok but when I am logged out as a guest or even if I log back in as a regular member it doesnt show.....
Quote from: Linkjay on February 06, 2017, 05:05:01 PM
Did you make sure that the "Permissions" field on each block it set to everyone?
Quote from: Chen Zhen on February 06, 2017, 05:16:08 PM
You must enable polls within SMF's Features & Options else it will only allow Admins to view the data.
This is a SMF setting & not one of Simple Portal's settings.
Quote from: danshell on February 07, 2017, 02:43:40 AMQuote from: Chen Zhen on February 06, 2017, 05:16:08 PM
You must enable polls within SMF's Features & Options else it will only allow Admins to view the data.
This is a SMF setting & not one of Simple Portal's settings.
Polls are enabled.
Everyone can see the poll in its thread. All that works fine.
Its just the poll block on the portal front page that isnt showing for anyone other than admins. The block is showing, just the content is not.
Quote from: danshell on February 07, 2017, 06:23:47 PM
Thanks lurkalot. I have checked and double checked all permissions and everyone including guests are allowed to see the topic and poll. Everyone can see it in the forum thread just not on the portal block.
Quote from: lurkalot on February 08, 2017, 02:09:54 AMQuote from: danshell on February 07, 2017, 06:23:47 PM
Thanks lurkalot. I have checked and double checked all permissions and everyone including guests are allowed to see the topic and poll. Everyone can see it in the forum thread just not on the portal block.
Ok, I think I see what's happening. And confirm. If you set up a poll, and set the poll options to "Show the poll's results to anyone." The poll content will show in the block.
If you set the poll options to either of the tow remaining settings,
"Only show the results after someone has voted." Actual poll content is hidden, and you're presented with the 'you can not see the results of this poll at the moment' message.
"Only show the results after the poll has expired." Actual poll content is hidden, and you're presented with the 'you can not see the results of this poll at the moment' message.
Quote from: danshell on February 08, 2017, 09:54:25 AMQuote from: lurkalot on February 08, 2017, 02:09:54 AMQuote from: danshell on February 07, 2017, 06:23:47 PM
Thanks lurkalot. I have checked and double checked all permissions and everyone including guests are allowed to see the topic and poll. Everyone can see it in the forum thread just not on the portal block.
Ok, I think I see what's happening. And confirm. If you set up a poll, and set the poll options to "Show the poll's results to anyone." The poll content will show in the block.
If you set the poll options to either of the tow remaining settings,
"Only show the results after someone has voted." Actual poll content is hidden, and you're presented with the 'you can not see the results of this poll at the moment' message.
"Only show the results after the poll has expired." Actual poll content is hidden, and you're presented with the 'you can not see the results of this poll at the moment' message.
Yes, you got it. Thanks very much I really do appreciate the help. I would have never worked it out.
Quote from: lukonic on March 31, 2017, 01:07:24 PM
Hello, how could i seperate the left/center/right blocks?
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.imgur.com%2Fepk7EdP.png&hash=315fab0d91151b9d9f0bd759ae578ed4f1350388)
i've tried playing with styles but it didn't want to work for me.
Quote from: lurkalot on May 13, 2017, 11:33:39 AMTinyportal support supporting SimplePortal... Outrageous :P Thanks though, correct in my books.
Not sure if this will sort your problem because I don't use SP, but have you tried this setting?
Admin > Simpleportal > General Settings > Portal Theme. (Select the theme which will be used for the portal)
Quote from: Gryzor on May 29, 2017, 04:52:19 AM
Hello guys!
Yesterday I updated SMF to 2.0.14. I don't know if that's relevant or if the problem was there before, but it seems that when a user logs in through the "Profile Info" block he is redirected to a page with the error message: "Your session timed out while posting. Please go back and try again."
Can someone help?
Thanks!
<input type="hidden" name="hash_passwrd" value="" />
<input type="hidden" name="hash_passwrd" value="" /><input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
Quote from: Ninja ZX-10RR on July 11, 2017, 04:20:25 PMAs in nothing shows up. No widget, no code, no errors. It previews as an empty box with a semi-transparent background.
Sorry but "doesn't work" is nowhere near to being an explanation...
Quote from: OCJ on July 26, 2017, 02:25:29 PM
Simple Portal site has been down a couple of days now - whats the problem?
Quote from: NekoSensei on July 27, 2017, 05:41:58 PM
it's a bad redirect https ... look this : https://simpleportal.net/ instead of this http://www.simpleportal.net/
;D
Quote from: SimplePortal Team on March 10, 2008, 11:16:07 PM
The SimplePortal Team is happy to announce the release of SimplePortal 2.3.7, code-named "Ghost!" This release includes fixes for the bugs found in the 2.3.6 version and is aimed at providing an even more stable portal experience for our users.
We urge all users to upgrade to SimplePortal 2.3.7 as soon as possible to take advantage of the bug fixes. A full list of changes for 2.3.7 can be found in the changelog.txt file within the SimplePortal package, but some of the more important fixes are:As usual, there is no auto-upgrade option from 2.3.6 to 2.3.7. So, if you are running 2.3.6 or an older version, you can upgrade by following these three steps. You shouldn't lose any data, but for safety, you should always back up before modifying your forum.
- Shoutboxes stopping working on some multilingual installs.
- Login form in user info block failing to log users in.
- RSS feed block failing on latest versions of PHP.
- Block previews causing warnings on latest versions of PHP.
- Incorrectly set canonical URL for board index when portal mode is set to front page.
- Guests logging in from custom portal pages not being redirected back to the page.
Thanks for all your support, and keep those bug reports and feature requests coming!
- Uninstall SimplePortal.
- Download SimplePortal 2.3.7. (http://simpleportal.net/index.php?action=downloads;area=stable_simpleportal_packages;file=147;download)
- Install SimplePortal 2.3.7, and you are ready to go!
-The SimplePortal Team
Quote from: villasg on August 07, 2017, 02:53:48 AM
Hello all .
Thanks for the update .
I have a qestion .
I use Simple portal 2.3.6 with language pack 2.3.5 ( from simpleportal.net/index.php?action=downloads;area=stable_language_packs ) .
I want to know if its OK to use the language pack 2.3.5 withe the new Simple portal 2.3.6 or need new translation .
Thanks a lot
Quote
If you are using SimplePortal in a language other than English, there were no changes to language strings in this version, so the language packages for 2.3.5 can safely be used for 2.3.7 version as well.
Quote from: khigh on August 29, 2017, 05:24:08 PM
Thanks as always for Simple Portal, and I've had fantastic luck in the past getting support on the site, but as far as I can tell, it's been down for a while now.
Quote from: khigh on August 29, 2017, 05:24:08 PM
Anyone know what I'd need to look for if my main portal page has started loading very slowly - 30 seconds or more, while the rest of the page loads on the site are near instantaneous. It seems spotty - 10 seconds is probably average, but always a noticeable lag not present on any other pages on the forum.
Quote from: [SiNaN] on August 30, 2017, 02:44:10 AM
I'm glad to hear that we were able to help. Unfortunately we are having some server issues at this time but hopefully the site will be back soon.
Quote from: [SiNaN] on August 31, 2017, 02:54:31 AM
The easiest way would be to deactivate the RSS feed blocks one by one and try loading the page. However, if you are able to find an alternative service that allows you to embed RSS feeds using JavaScript, that would be even better option. Unfortunately, the block we currently have in SimplePortal is not the best option performance-wise.
Quote from: Sir Osis of Liver on September 19, 2017, 05:05:16 PMFrom what I know it is possible to place "Open Popup" in block, but then sound notification is lost. My friend did that, but probably you already tried this.
Is it possible to put SMFPacks shoutbox in SP portal block?
Quote from: Sir Osis of Liver on September 19, 2017, 05:05:16 PM
Is it possible to put SMFPacks shoutbox in SP portal block?
//SMFPacks Shoutbox -->
if (function_exists('template_shoutbox')) template_shoutbox('main');
// <-- SMFPacks Shoutbox
Quote from: ryry46d9 on October 18, 2017, 10:25:38 AM
So the website has been down for a few weeks now, is the project dead ?
Quote from: ryry46d9 on October 18, 2017, 10:25:38 AMUnknown status, sent 2 PMs already, won't send more.
So the website has been down for a few weeks now, is the project dead ?
Quote from: d3vcho(); on October 18, 2017, 10:28:13 AMUnless you have some info that I don't have (unlikely), I'd say our admins can speak for ourselves (when they decide to do so)...Quote from: ryry46d9 on October 18, 2017, 10:25:38 AMNo, it's not. Seems like they're just having problems server-side.
So the website has been down for a few weeks now, is the project dead ?
Quote from: vbgamer45 on October 18, 2017, 09:05:24 PMDefinitely appreciated but none of the decisions are up to me, so I can just thank you for the time being :)
I can offer free hosting if that helps. Cpanel based.
Quote from: Ninja ZX-10RR on October 19, 2017, 12:18:35 PM
Unless you have some info that I don't have (unlikely), I'd say our admins can speak for ourselves (when they decide to do so)...
QuoteI'd say our admins can speak for ourselves (when they decide to do so)...
Quote from: d3vcho(); on October 19, 2017, 01:01:06 PMBah, fine, if you can't understand I'll explain the difference between thinking and stating something.Quote from: Ninja ZX-10RR on October 19, 2017, 12:18:35 PMNone of your admins is here to speak. I just say what I think it's happening. Not too long ago the project had server issues (which actually deleted my account there).
Unless you have some info that I don't have (unlikely), I'd say our admins can speak for ourselves (when they decide to do so)...
Quote from: OCJ on October 25, 2017, 05:34:16 AMI won't, as in my eyes that's a pretty bad insult. That bit was because I had no idea if anybody could be bothered at all (so far doesn't seem like it).
Ninja will have to forgive me for this one...QuoteI'd say our admins can speak for ourselves (when they decide to do so)...
Sounds like a typical SMF brush off support reply :P
It is a bit worrying seeing a blank page over there for so long.
Quote from: aegersz on November 02, 2017, 03:48:07 AMWhat he said ...
please try to get it back somehow. it's a great facility and I would be lost without it.
it complements SMF quite well and I have made good use of it.
QuoteI need help with the ver. 2.3.7 shoutbox not auto-loading after creating a shout, and having to refresh the browser. this was a problem before and there was an article at the SP site on a code-fix that I used before for this issue. now that the site's down I want to help too like so many other's.Fortunately, I saved that topic on pc. I hope that's what you are looking for:
Quote
i found that in Portalshoutbox.template.php the use of htmlspecialchars for non utf-8 languages, due to php 5.4, generates empty values in xml, so that shoutboxes can't refresh when xml is compiled with special chars:Code Selectfunction template_shoutbox_xml()
{
global $context, $txt, $smcFunc;
echo '<', '?xml version="1.0" encoding="', $context['character_set'], '"?', '>
<smf>
<shoutbox>', $context['SPortal']['shoutbox']['id'], '</shoutbox>';
if ($context['SPortal']['updated'])
{
echo '
<updated>1</updated>
<error>', empty($context['SPortal']['shouts']) ? $txt['sp_shoutbox_no_shout'] : 0, '</error>
<warning>', !empty($context['SPortal']['shoutbox']['warning']) ? $smcFunc['htmlspecialchars']($context['SPortal']['shoutbox']['warning']) : 0, '</warning>
<reverse>', !empty($context['SPortal']['shoutbox']['reverse']) ? 1 : 0, '</reverse>';
foreach ($context['SPortal']['shouts'] as $shout)
echo '
<shout>
<id>', $shout['id'], '</id>
<author>', htmlspecialchars($shout['author']['link']), '</author>
<time>', htmlspecialchars($shout['time']), '</time>
<timeclean>', htmlspecialchars(strip_tags($shout['time'])), '</timeclean>
<delete>', !empty($shout['delete_link_js']) ? htmlspecialchars($shout['delete_link_js']) : 0, '</delete>
<content>', htmlspecialchars($shout['text']), '</content>
<is_me>', $shout['is_me'] ? 1 : 0, '</is_me>
</shout>';
}
else
echo '
<updated>0</updated>';
echo '
</smf>';
using $smcFunc['htmlspecialchars'] will fix it. can you consider it in next releases?Code Selectfunction template_shoutbox_xml()
{
global $context, $txt, $smcFunc;
echo '<', '?xml version="1.0" encoding="', $context['character_set'], '"?', '>
<smf>
<shoutbox>', $context['SPortal']['shoutbox']['id'], '</shoutbox>';
if ($context['SPortal']['updated'])
{
echo '
<updated>1</updated>
<error>', empty($context['SPortal']['shouts']) ? $txt['sp_shoutbox_no_shout'] : 0, '</error>
<warning>', !empty($context['SPortal']['shoutbox']['warning']) ? $smcFunc['htmlspecialchars']($context['SPortal']['shoutbox']['warning']) : 0, '</warning>
<reverse>', !empty($context['SPortal']['shoutbox']['reverse']) ? 1 : 0, '</reverse>';
foreach ($context['SPortal']['shouts'] as $shout)
echo '
<shout>
<id>', $shout['id'], '</id>
<author>', $smcFunc['htmlspecialchars']($shout['author']['link']), '</author>
<time>', $smcFunc['htmlspecialchars']($shout['time']), '</time>
<timeclean>', $smcFunc['htmlspecialchars'](strip_tags($shout['time'])), '</timeclean>
<delete>', !empty($shout['delete_link_js']) ? $smcFunc['htmlspecialchars']($shout['delete_link_js']) : 0, '</delete>
<content>', $smcFunc['htmlspecialchars']($shout['text']), '</content>
<is_me>', $shout['is_me'] ? 1 : 0, '</is_me>
</shout>';
}
else
echo '
<updated>0</updated>';
echo '
</smf>';
Quote from: zapiy on November 09, 2017, 12:06:53 PMNo, that's one of the many issues that come up with not having the site up.
Is there anywhere that holds come of the custom block code?
Quote from: DJF-1975 on November 09, 2017, 08:45:13 AMI've just checked the file you attached to your message and it doesn't seem to contain the auto-load fix maglix04 (https://www.simplemachines.org/community/index.php?topic=227599.msg3946960#msg3946960) referred to. It does, however, seem to contain a set of custom modifications relating to a read-only shoutbox.
I completely understand. I'm sure others will come around. Either way the 2.3.7 version is great 'cept for that one code snippet of the template file for the shoutbox for the refresh issue. I'll include it here. Obviously feel free to vet it. It fixes the auto-refresh issue once a post is made in the shoutbox. I'd taken the code snippet from the SP site when it was up a few months ago. This file works. cheers
it goes in the ../themes/default/ directory.
D
Quote from: zapiy on November 09, 2017, 12:06:53 PM
Is there anywhere that holds come of the custom block code?
global $txt, $scripturl, $settings, $context, $color_profile;
$boards = null;
$limit = 39;
$type = 'ssi_recentTopics';
$items = $type($limit, null, $boards, 'array');
if (empty($items))
{
echo '
', $txt['error_sp_no_posts_found'];
return;
}
else
$items[count($items) - 1]['is_last'] = true;
$colorids = array();
foreach ($items as $item)
$colorids[] = $item['poster']['id'];
if (!empty($colorids) && sp_loadColors($colorids) !== false)
{
foreach ($items as $k => $p)
{
if (!empty($color_profile[$p['poster']['id']]['link']))
$items[$k]['poster']['link'] = $color_profile[$p['poster']['id']]['link'];
}
}
echo '
<table class="sp_fullwidth">';
foreach ($items as $item)
echo '
<tr>
<td class="sp_recent_icon sp_center">
', $item['new'] ? sp_embed_image('topic') : '<a href="' . $scripturl . '?topic=' . $item['topic'] . '.msg' . $item['new_from'] . ';topicseen#new"><img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" alt="' . $txt['new'] . '" border="0" /></a>',
'</td>
<td class="sp_recent_subject">
<a href="', $item['href'], '">', $item['subject'], '</a><br />[', $item['board']['link'], ']
</td>
<td class="sp_recent_info sp_right">
', $item['poster']['link'], '<br />', $item['time'], '
</td>
</tr>';
echo '
</table>';
Quote from: CapadY on December 02, 2017, 08:00:55 AM
I need the Dutch languagepack for SimplePortal 2.3.7. but can't reach the official site.
Is here somebody who can help me to it ?
Quote from: davidhs on November 30, 2017, 08:56:33 AMMe too :(
The new update of SimplePortal (2.3.7) works in SMF 2.0.14/2.0.15 but it do not use proxy in avatar images of PortalBlocks.php (I do not know if also is necessary in other files).
Quote from: maglix04 on December 03, 2017, 10:09:39 AMNot atm. We got bigger issues than that.Quote from: davidhs on November 30, 2017, 08:56:33 AMMe too :(
The new update of SimplePortal (2.3.7) works in SMF 2.0.14/2.0.15 but it do not use proxy in avatar images of PortalBlocks.php (I do not know if also is necessary in other files).
Solution?
Quote from: d3vcho(); on December 02, 2017, 09:05:31 AM.
Nope, sorry.
Quote from: Madirex on December 02, 2017, 02:12:06 PM
Hello, I can not edit the "Portal Mode" when I change it and I give it to save it is put back to Disabled.
(https://image.prntscr.com/image/NQCJuFd0SIG5Ynj1tvQEyA.png)
When I modify anything else it leaves me without any problem.
When I installed the package it gave me an error in the file script.js but I did not manage to fix it manually, maybe it could be due to that, but I'm not sure.
Quote from: Ninja ZX-10RR on December 03, 2017, 09:54:19 PM
Yes, fix your script.js issue and it will probably start to work. Why did you install with errors anyway?
<file name="$themedir/scripts/script.js">
<operation>
<search position="replace"><![CDATA['#c']]></search>
<add><![CDATA['?action=forum#c']]></add>
</operation>
</file>
Quote from: Arantor on December 04, 2017, 10:55:05 AMI can not find "<! [CDATA ['# c']]>" in my script.js ...
You just find the #c part, the CDATA stuff is how you write raw stuff in XML.
Quote from: Arantor on December 04, 2017, 11:23:08 AM
No, you won't because it isn't there!
Just literally look for the #c part. Not the rest of the line. Just literally a hash and a letter c.
Quote from: Arantor on December 04, 2017, 12:27:55 PM
Please attach your script.js file, I'll take a look when I get home from work.
Quote from: Ilkharnos on December 04, 2017, 07:33:44 AM
Hello,
I use the latest version of SP. I use a few "Recent Posts/Topics" blocks (set to "topics"). As far as I can see, this block doesn't show somewhat old topics. I cannot see the topics which I posted a few months ago.
I would like to have a recent posts/topics block which is timeless. Is there any way I can do that?
Thank you in advance.
Quote from: Arantor on December 04, 2017, 01:30:01 PM
You already have a mod that has modified it. The change would have been to line 1073 but something else has modified it to instead read action=forum;c=
Do you by any chance have the 'view single category' mod in place? If so, you don't need to worry about this change.
Quote from: Arantor on December 04, 2017, 05:21:47 PM
It's nothing to do with script.js.
What did you try to change it to, exactly? What other settings did you change?
Quote from: Arantor on December 04, 2017, 05:25:01 PMI sent a photo the first time I reported the problem, i do not know if you have not understood me well, anyway I will explain it in a clearer way:
You just installed it, and you said you tried to change the setting and it didn't save. What did you try to change it to?
$txt['sp_portal_mode_options'] = 'Disabled|Front Page|Integration|Standalone';
Quote from: Gluz on December 04, 2017, 04:10:08 PM
Well, that defeat the purpose of being Recent.
If you want a list of topics similar to how it's done in that block, but with your own set of topics you need to make a custom PHP block, have the topic IDs in an Array, fetch the id of first message of each topic, and use the ssi_fetchPosts function.
Someone asked a similar question yesterday, but as I'm in my mobile phone it's hard to put code, but that is what I remember from one site I used something similar.
Quote from: Ninja ZX-10RR on December 03, 2017, 12:01:46 PMIt is true, this is not important. But, if your forum uses SSL (HTTPS) and any images of portal uses HTTP, navigator show a warning in HTTPS icon. :(Quote from: maglix04 on December 03, 2017, 10:09:39 AMNot atm. We got bigger issues than that.Quote from: davidhs on November 30, 2017, 08:56:33 AMMe too :(
The new update of SimplePortal (2.3.7) works in SMF 2.0.14/2.0.15 but it do not use proxy in avatar images of PortalBlocks.php (I do not know if also is necessary in other files).
Solution?
global $smcFunc, $context, $scripturl, $modSettings, $txt, $color_profile;
global $smcFunc, $context, $scripturl, $modSettings, $txt, $color_profile;
global $image_proxy_enabled, $image_proxy_secret, $boardurl;
$members[] = array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
'posts' => comma_format($row['posts']),
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);
$avatar = $image_proxy_enabled && stripos($row['avatar'], 'http://') !== false ? (strtr($boardurl, array('http://' => 'https://')) . '/proxy.php?request=' . urlencode($row['avatar']) . '&hash=' . md5($row['avatar'] . $image_proxy_secret)) : $row['avatar'];
$members[] = array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
'posts' => comma_format($row['posts']),
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $avatar . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);
global $smcFunc, $sourcedir, $boarddir, $themedir;
global $smcFunc, $sourcedir, $boarddir, $themedir;
global $image_proxy_enabled, $image_proxy_secret, $boardurl;
$members[] = array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
'output' => $output,
'complete_row' => $row,
);
$avatar = $image_proxy_enabled && stripos($row['avatar'], 'http://') !== false ? (strtr($boardurl, array('http://' => 'https://')) . '/proxy.php?request=' . urlencode($row['avatar']) . '&hash=' . md5($row['avatar'] . $image_proxy_secret)) : $row['avatar'];
$members[] = array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $avatar . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
'output' => $output,
'complete_row' => $row,
);
global $scripturl, $txt, $settings, $modSettings, $context, $smcFunc, $color_profile;
global $scripturl, $txt, $settings, $modSettings, $context, $smcFunc, $color_profile;
global $image_proxy_enabled, $image_proxy_secret, $boardurl;
$return[] = array(
'id' => $row['id_topic'],
'message_id' => $row['id_msg'],
'icon' => '<img src="' . $settings[$icon_sources[$row['icon']]] . '/post/' . $row['icon'] . '.gif" align="middle" alt="' . $row['icon'] . '" border="0" />',
'subject' => $row['subject'],
'time' => timeformat($row['poster_time']),
'views' => $row['num_views'],
'body' => $row['body'],
'href' => $scripturl . '?topic=' . $row['id_topic'] . '.0',
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">' . $txt['sp-read_more'] . '</a>',
'replies' => $row['num_replies'],
'comment_href' => !empty($row['locked']) ? '' : $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'],
'comment_link' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'new_comment' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'poster' => array(
'id' => $row['id_member'],
'name' => $row['poster_name'],
'href' => !empty($row['id_member']) ? $scripturl . '?action=profile;u=' . $row['id_member'] : '',
'link' => !empty($row['id_member']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['poster_name'] . '</a>' : $row['poster_name']
),
'locked' => !empty($row['locked']),
'is_last' => false,
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);
$avatar = $image_proxy_enabled && stripos($row['avatar'], 'http://') !== false ? (strtr($boardurl, array('http://' => 'https://')) . '/proxy.php?request=' . urlencode($row['avatar']) . '&hash=' . md5($row['avatar'] . $image_proxy_secret)) : $row['avatar'];
$return[] = array(
'id' => $row['id_topic'],
'message_id' => $row['id_msg'],
'icon' => '<img src="' . $settings[$icon_sources[$row['icon']]] . '/post/' . $row['icon'] . '.gif" align="middle" alt="' . $row['icon'] . '" border="0" />',
'subject' => $row['subject'],
'time' => timeformat($row['poster_time']),
'views' => $row['num_views'],
'body' => $row['body'],
'href' => $scripturl . '?topic=' . $row['id_topic'] . '.0',
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">' . $txt['sp-read_more'] . '</a>',
'replies' => $row['num_replies'],
'comment_href' => !empty($row['locked']) ? '' : $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'],
'comment_link' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'new_comment' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'poster' => array(
'id' => $row['id_member'],
'name' => $row['poster_name'],
'href' => !empty($row['id_member']) ? $scripturl . '?action=profile;u=' . $row['id_member'] : '',
'link' => !empty($row['id_member']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['poster_name'] . '</a>' : $row['poster_name']
),
'locked' => !empty($row['locked']),
'is_last' => false,
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $avatar . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);
$avatar = $image_proxy_enabled && stripos($row['avatar'], 'http://') !== false ? (strtr($boardurl, array('http://' => 'https://')) . '/proxy.php?request=' . urlencode($row['avatar']) . '&hash=' . md5($row['avatar'] . $image_proxy_secret)) : $row['avatar'];
$return[] = array(
'id' => $row['id_topic'],
'message_id' => $row['id_msg'],
'icon' => '<img src="' . $settings[$icon_sources[$row['icon']]] . '/post/' . $row['icon'] . '.gif" align="middle" alt="' . $row['icon'] . '" border="0" />',
'subject' => $row['subject'],
'time' => timeformat($row['poster_time']),
'views' => $row['num_views'],
'body' => $row['body'],
'href' => $scripturl . '?topic=' . $row['id_topic'] . '.0',
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">' . $txt['sp-read_more'] . '</a>',
'replies' => $row['num_replies'],
'comment_href' => !empty($row['locked']) ? '' : $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'],
'comment_link' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'new_comment' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'poster' => array(
'id' => $row['id_member'],
'name' => $row['poster_name'],
'href' => !empty($row['id_member']) ? $scripturl . '?action=profile;u=' . $row['id_member'] : '',
'link' => !empty($row['id_member']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['poster_name'] . '</a>' : $row['poster_name']
),
'locked' => !empty($row['locked']),
'is_last' => false,
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $avatar . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);
global $smcFunc, $sourcedir, $scripturl, $modSettings, $color_profile;
global $smcFunc, $sourcedir, $scripturl, $modSettings, $color_profile;
global $image_proxy_enabled, $image_proxy_secret, $boardurl;
$staff_list[$row['type'] . '-' . $row['id_member']] = array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
'group' => $row['group_name'],
'type' => $row['type'],
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);
$avatar = $image_proxy_enabled && stripos($row['avatar'], 'http://') !== false ? (strtr($boardurl, array('http://' => 'https://')) . '/proxy.php?request=' . urlencode($row['avatar']) . '&hash=' . md5($row['avatar'] . $image_proxy_secret)) : $row['avatar'];
$staff_list[$row['type'] . '-' . $row['id_member']] = array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
'group' => $row['group_name'],
'type' => $row['type'],
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $avatar . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);
global $smcFunc, $sourcedir, $modSettings, $scripturl, $txt, $color_profile;
global $smcFunc, $sourcedir, $modSettings, $scripturl, $txt, $color_profile;
global $image_proxy_enabled, $image_proxy_secret, $boardurl;
$articles[] = array(
'id' => $row['id_topic'],
'name' => $row['subject'],
'href' => $scripturl . '?topic=' . $row['id_topic'] . '.0',
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">' . $row['subject'] . '</a>',
'poster' => array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => empty($row['id_member']) ? $row['poster_name'] : '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
),
'image' => array(
'href' => $row['picture'],
'image' => '<img src="' . $row['picture'] . '" alt="' . $row['name'] . '" />',
),
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);
$avatar = $image_proxy_enabled && stripos($row['avatar'], 'http://') !== false ? (strtr($boardurl, array('http://' => 'https://')) . '/proxy.php?request=' . urlencode($row['avatar']) . '&hash=' . md5($row['avatar'] . $image_proxy_secret)) : $row['avatar'];
$articles[] = array(
'id' => $row['id_topic'],
'name' => $row['subject'],
'href' => $scripturl . '?topic=' . $row['id_topic'] . '.0',
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">' . $row['subject'] . '</a>',
'poster' => array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => empty($row['id_member']) ? $row['poster_name'] : '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
),
'image' => array(
'href' => $row['picture'],
'image' => '<img src="' . $row['picture'] . '" alt="' . $row['name'] . '" />',
),
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $avatar . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);
global $context, $boarddir, $sourcedir, $txt, $color_profile;
global $context, $boarddir, $sourcedir, $txt, $color_profile;
global $image_proxy_enabled, $image_proxy_secret, $boardurl;
$blogs[] = array(
'id' => $row['blog_id'],
'name' => $row['name'],
'href' => $scripturl . '?blog=' . $row['blog_id'] . '.0',
'link' => '<a href="' . $scripturl . '?blog=' . $row['blog_id'] . '.0">' . $row['name'] . '</a>',
'article' => array(
'id' => $row['article_id'],
'subject' => strip_tags($row['subject']),
'link' => '<a href="' . $scripturl . '?article=' . $row['article_id'] . '.0">' . $row['subject'] . '</a>',
),
'owner' => array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
),
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);
$avatar = $image_proxy_enabled && stripos($row['avatar'], 'http://') !== false ? (strtr($boardurl, array('http://' => 'https://')) . '/proxy.php?request=' . urlencode($row['avatar']) . '&hash=' . md5($row['avatar'] . $image_proxy_secret)) : $row['avatar'];
$blogs[] = array(
'id' => $row['blog_id'],
'name' => $row['name'],
'href' => $scripturl . '?blog=' . $row['blog_id'] . '.0',
'link' => '<a href="' . $scripturl . '?blog=' . $row['blog_id'] . '.0">' . $row['name'] . '</a>',
'article' => array(
'id' => $row['article_id'],
'subject' => strip_tags($row['subject']),
'link' => '<a href="' . $scripturl . '?article=' . $row['article_id'] . '.0">' . $row['subject'] . '</a>',
),
'owner' => array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
),
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $avatar . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);
$blogs[$row['id_board']] += array(
'article' => array(
'id' => $row['id_topic'],
'subject' => $row['subject'],
'link' => '<a href="' . $scripturl . '?action=blog;sa=view_post;id=' . $row['id_topic'] . '">' . $row['subject'] . '</a>',
),
'owner' => array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
),
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);
$avatar = $image_proxy_enabled && stripos($row['avatar'], 'http://') !== false ? (strtr($boardurl, array('http://' => 'https://')) . '/proxy.php?request=' . urlencode($row['avatar']) . '&hash=' . md5($row['avatar'] . $image_proxy_secret)) : $row['avatar'];
$blogs[$row['id_board']] += array(
'article' => array(
'id' => $row['id_topic'],
'subject' => $row['subject'],
'link' => '<a href="' . $scripturl . '?action=blog;sa=view_post;id=' . $row['id_topic'] . '">' . $row['subject'] . '</a>',
),
'owner' => array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
),
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $avatar . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);
Quote from: vbgamer45 on December 05, 2017, 05:58:05 PM
Yes the site has been offline for a while now they are working on getting it back...
Quote from: Chen Zhen on December 04, 2017, 06:27:41 PM
Madirex,
Did you edit the SPortalAdmin language file?
Ensure this variable has 4 options separated by | (or).Code Select
$txt['sp_portal_mode_options'] = 'Disabled|Front Page|Integration|Standalone';
Quote from: davidhs on December 05, 2017, 07:21:31 AMI have tried this change and it seems to work without problems. Thank you :)
It is true, this is not important. But, if your forum uses SSL (HTTPS) and any images of portal uses HTTP, navigator show a warning in HTTPS icon. :(
I did these changes in PortalBlocks.php (of SimplePortal 2.3.7) for SMF 2.0.14/2.0.15:Code (search) Select
global $smcFunc, $context, $scripturl, $modSettings, $txt, $color_profile;Code (replace) Select
global $smcFunc, $context, $scripturl, $modSettings, $txt, $color_profile;
global $image_proxy_enabled, $image_proxy_secret, $boardurl;Code (search) Select
$members[] = array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
'posts' => comma_format($row['posts']),
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);Code (replace) Select
$avatar = $image_proxy_enabled && stripos($row['avatar'], 'http://') !== false ? (strtr($boardurl, array('http://' => 'https://')) . '/proxy.php?request=' . urlencode($row['avatar']) . '&hash=' . md5($row['avatar'] . $image_proxy_secret)) : $row['avatar'];
$members[] = array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
'posts' => comma_format($row['posts']),
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $avatar . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);Code (search) Select
global $smcFunc, $sourcedir, $boarddir, $themedir;Code (replace) Select
global $smcFunc, $sourcedir, $boarddir, $themedir;
global $image_proxy_enabled, $image_proxy_secret, $boardurl;Code (search) Select
$members[] = array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
'output' => $output,
'complete_row' => $row,
);Code (replace) Select
$avatar = $image_proxy_enabled && stripos($row['avatar'], 'http://') !== false ? (strtr($boardurl, array('http://' => 'https://')) . '/proxy.php?request=' . urlencode($row['avatar']) . '&hash=' . md5($row['avatar'] . $image_proxy_secret)) : $row['avatar'];
$members[] = array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $avatar . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
'output' => $output,
'complete_row' => $row,
);Code (search) Select
global $scripturl, $txt, $settings, $modSettings, $context, $smcFunc, $color_profile;Code (replace) Select
global $scripturl, $txt, $settings, $modSettings, $context, $smcFunc, $color_profile;
global $image_proxy_enabled, $image_proxy_secret, $boardurl;Code (search) Select
$return[] = array(
'id' => $row['id_topic'],
'message_id' => $row['id_msg'],
'icon' => '<img src="' . $settings[$icon_sources[$row['icon']]] . '/post/' . $row['icon'] . '.gif" align="middle" alt="' . $row['icon'] . '" border="0" />',
'subject' => $row['subject'],
'time' => timeformat($row['poster_time']),
'views' => $row['num_views'],
'body' => $row['body'],
'href' => $scripturl . '?topic=' . $row['id_topic'] . '.0',
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">' . $txt['sp-read_more'] . '</a>',
'replies' => $row['num_replies'],
'comment_href' => !empty($row['locked']) ? '' : $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'],
'comment_link' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'new_comment' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'poster' => array(
'id' => $row['id_member'],
'name' => $row['poster_name'],
'href' => !empty($row['id_member']) ? $scripturl . '?action=profile;u=' . $row['id_member'] : '',
'link' => !empty($row['id_member']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['poster_name'] . '</a>' : $row['poster_name']
),
'locked' => !empty($row['locked']),
'is_last' => false,
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);Code (replace) Select
$avatar = $image_proxy_enabled && stripos($row['avatar'], 'http://') !== false ? (strtr($boardurl, array('http://' => 'https://')) . '/proxy.php?request=' . urlencode($row['avatar']) . '&hash=' . md5($row['avatar'] . $image_proxy_secret)) : $row['avatar'];
$return[] = array(
'id' => $row['id_topic'],
'message_id' => $row['id_msg'],
'icon' => '<img src="' . $settings[$icon_sources[$row['icon']]] . '/post/' . $row['icon'] . '.gif" align="middle" alt="' . $row['icon'] . '" border="0" />',
'subject' => $row['subject'],
'time' => timeformat($row['poster_time']),
'views' => $row['num_views'],
'body' => $row['body'],
'href' => $scripturl . '?topic=' . $row['id_topic'] . '.0',
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">' . $txt['sp-read_more'] . '</a>',
'replies' => $row['num_replies'],
'comment_href' => !empty($row['locked']) ? '' : $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'],
'comment_link' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'new_comment' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'poster' => array(
'id' => $row['id_member'],
'name' => $row['poster_name'],
'href' => !empty($row['id_member']) ? $scripturl . '?action=profile;u=' . $row['id_member'] : '',
'link' => !empty($row['id_member']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['poster_name'] . '</a>' : $row['poster_name']
),
'locked' => !empty($row['locked']),
'is_last' => false,
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $avatar . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);
$avatar = $image_proxy_enabled && stripos($row['avatar'], 'http://') !== false ? (strtr($boardurl, array('http://' => 'https://')) . '/proxy.php?request=' . urlencode($row['avatar']) . '&hash=' . md5($row['avatar'] . $image_proxy_secret)) : $row['avatar'];
$return[] = array(
'id' => $row['id_topic'],
'message_id' => $row['id_msg'],
'icon' => '<img src="' . $settings[$icon_sources[$row['icon']]] . '/post/' . $row['icon'] . '.gif" align="middle" alt="' . $row['icon'] . '" border="0" />',
'subject' => $row['subject'],
'time' => timeformat($row['poster_time']),
'views' => $row['num_views'],
'body' => $row['body'],
'href' => $scripturl . '?topic=' . $row['id_topic'] . '.0',
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">' . $txt['sp-read_more'] . '</a>',
'replies' => $row['num_replies'],
'comment_href' => !empty($row['locked']) ? '' : $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'],
'comment_link' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'new_comment' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'poster' => array(
'id' => $row['id_member'],
'name' => $row['poster_name'],
'href' => !empty($row['id_member']) ? $scripturl . '?action=profile;u=' . $row['id_member'] : '',
'link' => !empty($row['id_member']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['poster_name'] . '</a>' : $row['poster_name']
),
'locked' => !empty($row['locked']),
'is_last' => false,
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $avatar . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);Code (search) Select
global $smcFunc, $sourcedir, $scripturl, $modSettings, $color_profile;Code (replace) Select
global $smcFunc, $sourcedir, $scripturl, $modSettings, $color_profile;
global $image_proxy_enabled, $image_proxy_secret, $boardurl;Code (search) Select
$staff_list[$row['type'] . '-' . $row['id_member']] = array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
'group' => $row['group_name'],
'type' => $row['type'],
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);Code (replace) Select
$avatar = $image_proxy_enabled && stripos($row['avatar'], 'http://') !== false ? (strtr($boardurl, array('http://' => 'https://')) . '/proxy.php?request=' . urlencode($row['avatar']) . '&hash=' . md5($row['avatar'] . $image_proxy_secret)) : $row['avatar'];
$staff_list[$row['type'] . '-' . $row['id_member']] = array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
'group' => $row['group_name'],
'type' => $row['type'],
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $avatar . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);Code (search) Select
global $smcFunc, $sourcedir, $modSettings, $scripturl, $txt, $color_profile;Code (replace) Select
global $smcFunc, $sourcedir, $modSettings, $scripturl, $txt, $color_profile;
global $image_proxy_enabled, $image_proxy_secret, $boardurl;Code (search) Select
$articles[] = array(
'id' => $row['id_topic'],
'name' => $row['subject'],
'href' => $scripturl . '?topic=' . $row['id_topic'] . '.0',
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">' . $row['subject'] . '</a>',
'poster' => array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => empty($row['id_member']) ? $row['poster_name'] : '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
),
'image' => array(
'href' => $row['picture'],
'image' => '<img src="' . $row['picture'] . '" alt="' . $row['name'] . '" />',
),
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);Code (replace) Select
$avatar = $image_proxy_enabled && stripos($row['avatar'], 'http://') !== false ? (strtr($boardurl, array('http://' => 'https://')) . '/proxy.php?request=' . urlencode($row['avatar']) . '&hash=' . md5($row['avatar'] . $image_proxy_secret)) : $row['avatar'];
$articles[] = array(
'id' => $row['id_topic'],
'name' => $row['subject'],
'href' => $scripturl . '?topic=' . $row['id_topic'] . '.0',
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">' . $row['subject'] . '</a>',
'poster' => array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => empty($row['id_member']) ? $row['poster_name'] : '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
),
'image' => array(
'href' => $row['picture'],
'image' => '<img src="' . $row['picture'] . '" alt="' . $row['name'] . '" />',
),
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $avatar . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);Code (search) Select
global $context, $boarddir, $sourcedir, $txt, $color_profile;Code (replace) Select
global $context, $boarddir, $sourcedir, $txt, $color_profile;
global $image_proxy_enabled, $image_proxy_secret, $boardurl;Code (search) Select
$blogs[] = array(
'id' => $row['blog_id'],
'name' => $row['name'],
'href' => $scripturl . '?blog=' . $row['blog_id'] . '.0',
'link' => '<a href="' . $scripturl . '?blog=' . $row['blog_id'] . '.0">' . $row['name'] . '</a>',
'article' => array(
'id' => $row['article_id'],
'subject' => strip_tags($row['subject']),
'link' => '<a href="' . $scripturl . '?article=' . $row['article_id'] . '.0">' . $row['subject'] . '</a>',
),
'owner' => array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
),
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);Code (replace) Select
$avatar = $image_proxy_enabled && stripos($row['avatar'], 'http://') !== false ? (strtr($boardurl, array('http://' => 'https://')) . '/proxy.php?request=' . urlencode($row['avatar']) . '&hash=' . md5($row['avatar'] . $image_proxy_secret)) : $row['avatar'];
$blogs[] = array(
'id' => $row['blog_id'],
'name' => $row['name'],
'href' => $scripturl . '?blog=' . $row['blog_id'] . '.0',
'link' => '<a href="' . $scripturl . '?blog=' . $row['blog_id'] . '.0">' . $row['name'] . '</a>',
'article' => array(
'id' => $row['article_id'],
'subject' => strip_tags($row['subject']),
'link' => '<a href="' . $scripturl . '?article=' . $row['article_id'] . '.0">' . $row['subject'] . '</a>',
),
'owner' => array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
),
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $avatar . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);Code (search) Select
$blogs[$row['id_board']] += array(
'article' => array(
'id' => $row['id_topic'],
'subject' => $row['subject'],
'link' => '<a href="' . $scripturl . '?action=blog;sa=view_post;id=' . $row['id_topic'] . '">' . $row['subject'] . '</a>',
),
'owner' => array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
),
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);Code (replace) Select
$avatar = $image_proxy_enabled && stripos($row['avatar'], 'http://') !== false ? (strtr($boardurl, array('http://' => 'https://')) . '/proxy.php?request=' . urlencode($row['avatar']) . '&hash=' . md5($row['avatar'] . $image_proxy_secret)) : $row['avatar'];
$blogs[$row['id_board']] += array(
'article' => array(
'id' => $row['id_topic'],
'subject' => $row['subject'],
'link' => '<a href="' . $scripturl . '?action=blog;sa=view_post;id=' . $row['id_topic'] . '">' . $row['subject'] . '</a>',
),
'owner' => array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
),
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $avatar . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);
Quote from: Madirex on December 06, 2017, 07:02:44 AMQuote from: Chen Zhen on December 04, 2017, 06:27:41 PM
Madirex,
Did you edit the SPortalAdmin language file?
Ensure this variable has 4 options separated by | (or).Code Select
$txt['sp_portal_mode_options'] = 'Disabled|Front Page|Integration|Standalone';
I have not edited anything from that mod, I just installed it, as I said before
Quote
Perhaps use a plugin that flags HTML/XHTML errors and fix them accordingly.
It may show errors causing unwanted behavior.
Quote from: Chen Zhen on December 09, 2017, 02:00:48 PMQuote
Perhaps use a plugin that flags HTML/XHTML errors and fix them accordingly.
It may show errors causing unwanted behavior.
re. circuitsbm
If other save settings are working from the exact same admin page then something else on the page is likely causing it.
Improper XHTML and/or javascript can cause conflicts, from other mods or alterations to the page code (ie. added to the $context headers).
A plugin that shows XHTML/HTML errors may flag something on the page causing an issue.
You can try using something like HTML Validator plugin for Firefox and then view the source code on that specific admin page.
It may show you something causing an issue (ie. such as multiple inputs with the same id).
What mods do you have installed? Perhaps I can duplicate your issue by installing those mods on a local test site.
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
Quote from: davidhs on December 05, 2017, 07:21:31 AMI noticed that after making this change, the "board news" function of simpleportal has a bug, it creates duplicates the topics connected to the board in the home. Solutions?Quote from: Ninja ZX-10RR on December 03, 2017, 12:01:46 PMIt is true, this is not important. But, if your forum uses SSL (HTTPS) and any images of portal uses HTTP, navigator show a warning in HTTPS icon. :(Quote from: maglix04 on December 03, 2017, 10:09:39 AMNot atm. We got bigger issues than that.Quote from: davidhs on November 30, 2017, 08:56:33 AMMe too :(
The new update of SimplePortal (2.3.7) works in SMF 2.0.14/2.0.15 but it do not use proxy in avatar images of PortalBlocks.php (I do not know if also is necessary in other files).
Solution?
I did these changes in PortalBlocks.php (of SimplePortal 2.3.7) for SMF 2.0.14/2.0.15:Code (search) Select
global $smcFunc, $context, $scripturl, $modSettings, $txt, $color_profile;Code (replace) Select
global $smcFunc, $context, $scripturl, $modSettings, $txt, $color_profile;
global $image_proxy_enabled, $image_proxy_secret, $boardurl;Code (search) Select
$members[] = array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
'posts' => comma_format($row['posts']),
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);Code (replace) Select
$avatar = $image_proxy_enabled && stripos($row['avatar'], 'http://') !== false ? (strtr($boardurl, array('http://' => 'https://')) . '/proxy.php?request=' . urlencode($row['avatar']) . '&hash=' . md5($row['avatar'] . $image_proxy_secret)) : $row['avatar'];
$members[] = array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
'posts' => comma_format($row['posts']),
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $avatar . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);Code (search) Select
global $smcFunc, $sourcedir, $boarddir, $themedir;Code (replace) Select
global $smcFunc, $sourcedir, $boarddir, $themedir;
global $image_proxy_enabled, $image_proxy_secret, $boardurl;Code (search) Select
$members[] = array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
'output' => $output,
'complete_row' => $row,
);Code (replace) Select
$avatar = $image_proxy_enabled && stripos($row['avatar'], 'http://') !== false ? (strtr($boardurl, array('http://' => 'https://')) . '/proxy.php?request=' . urlencode($row['avatar']) . '&hash=' . md5($row['avatar'] . $image_proxy_secret)) : $row['avatar'];
$members[] = array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $avatar . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
'output' => $output,
'complete_row' => $row,
);Code (search) Select
global $scripturl, $txt, $settings, $modSettings, $context, $smcFunc, $color_profile;Code (replace) Select
global $scripturl, $txt, $settings, $modSettings, $context, $smcFunc, $color_profile;
global $image_proxy_enabled, $image_proxy_secret, $boardurl;Code (search) Select
$return[] = array(
'id' => $row['id_topic'],
'message_id' => $row['id_msg'],
'icon' => '<img src="' . $settings[$icon_sources[$row['icon']]] . '/post/' . $row['icon'] . '.gif" align="middle" alt="' . $row['icon'] . '" border="0" />',
'subject' => $row['subject'],
'time' => timeformat($row['poster_time']),
'views' => $row['num_views'],
'body' => $row['body'],
'href' => $scripturl . '?topic=' . $row['id_topic'] . '.0',
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">' . $txt['sp-read_more'] . '</a>',
'replies' => $row['num_replies'],
'comment_href' => !empty($row['locked']) ? '' : $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'],
'comment_link' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'new_comment' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'poster' => array(
'id' => $row['id_member'],
'name' => $row['poster_name'],
'href' => !empty($row['id_member']) ? $scripturl . '?action=profile;u=' . $row['id_member'] : '',
'link' => !empty($row['id_member']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['poster_name'] . '</a>' : $row['poster_name']
),
'locked' => !empty($row['locked']),
'is_last' => false,
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);Code (replace) Select
$avatar = $image_proxy_enabled && stripos($row['avatar'], 'http://') !== false ? (strtr($boardurl, array('http://' => 'https://')) . '/proxy.php?request=' . urlencode($row['avatar']) . '&hash=' . md5($row['avatar'] . $image_proxy_secret)) : $row['avatar'];
$return[] = array(
'id' => $row['id_topic'],
'message_id' => $row['id_msg'],
'icon' => '<img src="' . $settings[$icon_sources[$row['icon']]] . '/post/' . $row['icon'] . '.gif" align="middle" alt="' . $row['icon'] . '" border="0" />',
'subject' => $row['subject'],
'time' => timeformat($row['poster_time']),
'views' => $row['num_views'],
'body' => $row['body'],
'href' => $scripturl . '?topic=' . $row['id_topic'] . '.0',
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">' . $txt['sp-read_more'] . '</a>',
'replies' => $row['num_replies'],
'comment_href' => !empty($row['locked']) ? '' : $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'],
'comment_link' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'new_comment' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'poster' => array(
'id' => $row['id_member'],
'name' => $row['poster_name'],
'href' => !empty($row['id_member']) ? $scripturl . '?action=profile;u=' . $row['id_member'] : '',
'link' => !empty($row['id_member']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['poster_name'] . '</a>' : $row['poster_name']
),
'locked' => !empty($row['locked']),
'is_last' => false,
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $avatar . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);
$avatar = $image_proxy_enabled && stripos($row['avatar'], 'http://') !== false ? (strtr($boardurl, array('http://' => 'https://')) . '/proxy.php?request=' . urlencode($row['avatar']) . '&hash=' . md5($row['avatar'] . $image_proxy_secret)) : $row['avatar'];
$return[] = array(
'id' => $row['id_topic'],
'message_id' => $row['id_msg'],
'icon' => '<img src="' . $settings[$icon_sources[$row['icon']]] . '/post/' . $row['icon'] . '.gif" align="middle" alt="' . $row['icon'] . '" border="0" />',
'subject' => $row['subject'],
'time' => timeformat($row['poster_time']),
'views' => $row['num_views'],
'body' => $row['body'],
'href' => $scripturl . '?topic=' . $row['id_topic'] . '.0',
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">' . $txt['sp-read_more'] . '</a>',
'replies' => $row['num_replies'],
'comment_href' => !empty($row['locked']) ? '' : $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'],
'comment_link' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'new_comment' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'poster' => array(
'id' => $row['id_member'],
'name' => $row['poster_name'],
'href' => !empty($row['id_member']) ? $scripturl . '?action=profile;u=' . $row['id_member'] : '',
'link' => !empty($row['id_member']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['poster_name'] . '</a>' : $row['poster_name']
),
'locked' => !empty($row['locked']),
'is_last' => false,
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $avatar . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);Code (search) Select
global $smcFunc, $sourcedir, $scripturl, $modSettings, $color_profile;Code (replace) Select
global $smcFunc, $sourcedir, $scripturl, $modSettings, $color_profile;
global $image_proxy_enabled, $image_proxy_secret, $boardurl;Code (search) Select
$staff_list[$row['type'] . '-' . $row['id_member']] = array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
'group' => $row['group_name'],
'type' => $row['type'],
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);Code (replace) Select
$avatar = $image_proxy_enabled && stripos($row['avatar'], 'http://') !== false ? (strtr($boardurl, array('http://' => 'https://')) . '/proxy.php?request=' . urlencode($row['avatar']) . '&hash=' . md5($row['avatar'] . $image_proxy_secret)) : $row['avatar'];
$staff_list[$row['type'] . '-' . $row['id_member']] = array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
'group' => $row['group_name'],
'type' => $row['type'],
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $avatar . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);Code (search) Select
global $smcFunc, $sourcedir, $modSettings, $scripturl, $txt, $color_profile;Code (replace) Select
global $smcFunc, $sourcedir, $modSettings, $scripturl, $txt, $color_profile;
global $image_proxy_enabled, $image_proxy_secret, $boardurl;Code (search) Select
$articles[] = array(
'id' => $row['id_topic'],
'name' => $row['subject'],
'href' => $scripturl . '?topic=' . $row['id_topic'] . '.0',
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">' . $row['subject'] . '</a>',
'poster' => array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => empty($row['id_member']) ? $row['poster_name'] : '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
),
'image' => array(
'href' => $row['picture'],
'image' => '<img src="' . $row['picture'] . '" alt="' . $row['name'] . '" />',
),
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);Code (replace) Select
$avatar = $image_proxy_enabled && stripos($row['avatar'], 'http://') !== false ? (strtr($boardurl, array('http://' => 'https://')) . '/proxy.php?request=' . urlencode($row['avatar']) . '&hash=' . md5($row['avatar'] . $image_proxy_secret)) : $row['avatar'];
$articles[] = array(
'id' => $row['id_topic'],
'name' => $row['subject'],
'href' => $scripturl . '?topic=' . $row['id_topic'] . '.0',
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">' . $row['subject'] . '</a>',
'poster' => array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => empty($row['id_member']) ? $row['poster_name'] : '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
),
'image' => array(
'href' => $row['picture'],
'image' => '<img src="' . $row['picture'] . '" alt="' . $row['name'] . '" />',
),
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $avatar . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);Code (search) Select
global $context, $boarddir, $sourcedir, $txt, $color_profile;Code (replace) Select
global $context, $boarddir, $sourcedir, $txt, $color_profile;
global $image_proxy_enabled, $image_proxy_secret, $boardurl;Code (search) Select
$blogs[] = array(
'id' => $row['blog_id'],
'name' => $row['name'],
'href' => $scripturl . '?blog=' . $row['blog_id'] . '.0',
'link' => '<a href="' . $scripturl . '?blog=' . $row['blog_id'] . '.0">' . $row['name'] . '</a>',
'article' => array(
'id' => $row['article_id'],
'subject' => strip_tags($row['subject']),
'link' => '<a href="' . $scripturl . '?article=' . $row['article_id'] . '.0">' . $row['subject'] . '</a>',
),
'owner' => array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
),
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);Code (replace) Select
$avatar = $image_proxy_enabled && stripos($row['avatar'], 'http://') !== false ? (strtr($boardurl, array('http://' => 'https://')) . '/proxy.php?request=' . urlencode($row['avatar']) . '&hash=' . md5($row['avatar'] . $image_proxy_secret)) : $row['avatar'];
$blogs[] = array(
'id' => $row['blog_id'],
'name' => $row['name'],
'href' => $scripturl . '?blog=' . $row['blog_id'] . '.0',
'link' => '<a href="' . $scripturl . '?blog=' . $row['blog_id'] . '.0">' . $row['name'] . '</a>',
'article' => array(
'id' => $row['article_id'],
'subject' => strip_tags($row['subject']),
'link' => '<a href="' . $scripturl . '?article=' . $row['article_id'] . '.0">' . $row['subject'] . '</a>',
),
'owner' => array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
),
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $avatar . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);Code (search) Select
$blogs[$row['id_board']] += array(
'article' => array(
'id' => $row['id_topic'],
'subject' => $row['subject'],
'link' => '<a href="' . $scripturl . '?action=blog;sa=view_post;id=' . $row['id_topic'] . '">' . $row['subject'] . '</a>',
),
'owner' => array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
),
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);Code (replace) Select
$avatar = $image_proxy_enabled && stripos($row['avatar'], 'http://') !== false ? (strtr($boardurl, array('http://' => 'https://')) . '/proxy.php?request=' . urlencode($row['avatar']) . '&hash=' . md5($row['avatar'] . $image_proxy_secret)) : $row['avatar'];
$blogs[$row['id_board']] += array(
'article' => array(
'id' => $row['id_topic'],
'subject' => $row['subject'],
'link' => '<a href="' . $scripturl . '?action=blog;sa=view_post;id=' . $row['id_topic'] . '">' . $row['subject'] . '</a>',
),
'owner' => array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
),
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $avatar . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);
QuoteEdit after looking at your forum today -> It seems to be passing as secure at the moment.How do you see that?
Quote from: maglix04 on December 22, 2017, 01:21:19 PMI suppose this function is sp_boardNews. Write here code of this function, perhaps you have an error.Quote from: davidhs on December 05, 2017, 07:21:31 AMI noticed that after making this change, the "board news" function of simpleportal has a bug, it creates duplicates the topics connected to the board in the home. Solutions?
[...]
I did these changes in PortalBlocks.php (of SimplePortal 2.3.7) for SMF 2.0.14/2.0.15:Code (search) Select
global $smcFunc, $context, $scripturl, $modSettings, $txt, $color_profile;Code (replace) Select
global $smcFunc, $context, $scripturl, $modSettings, $txt, $color_profile;
global $image_proxy_enabled, $image_proxy_secret, $boardurl;
[...]
QuoteI suppose this function is sp_boardNews. Write here code of this function, perhaps you have an error.I have reset the portalblocks.php file without the changes you indicated, and the problem is solved so I think there is some problem with your modification. Thanks you and merry christmas :)
QuoteJust as an example, run simpleportal.net through that security headers scan to see the result.I'm glad you're trying to help. But it might be wise to test this yourself on the site mentioned before assuring it's not the portal.:)
I can assure you it is not the portal causing your flagged security warnings.
RewriteEngine On
RewriteCond %{SERVER_PORT} !=443 [OR]
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ https://www.mydomain.com/$1 [R=301,L]
# .htaccess for www.domain name.com
# ip address
RewriteEngine On
RewriteCond %{HTTP_HOST} ^ip address
RewriteRule (.*) https://www.domain name.com/$1 [R=301,L]
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]
Header set Content-Security-Policy "max-age=10886400; includeSubDomains; preload" env=HTTPS
Header set X-Content-Security-Policy "default-src 'self' data: https:"
Header set X-WebKit-CSP "default-src 'self' data: https:"
Header set Referrer-Policy no-referrer
# .htaccess for www.domain.com
# ip address number
RewriteEngine On
RewriteCond %{HTTP_HOST} ^ip address number
RewriteRule (.*) https://www.domain name.com/$1 [R=301,L]
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]
Header set Content-Security-Policy "max-age=10886400; includeSubDomains; preload" env=HTTPS
Header set X-Content-Security-Policy "default-src 'self' data: https:"
Header set X-WebKit-CSP "default-src 'self' data: https:"
Header set Referrer-Policy no-referrer
Header set Set-Cookie HttpOnly;Secure
Quote from: maglix04 on December 24, 2017, 03:50:19 PM:)QuoteI suppose this function is sp_boardNews. Write here code of this function, perhaps you have an error.I have reset the portalblocks.php file without the changes you indicated, and the problem is solved so I think there is some problem with your modification. Thanks you and merry christmas :)
QuoteWhen I test simpleportal.net on that website security check it gives it an A+.Yeah lol today it does. Last night and yesterday that was not the case and the cookie gave also insecure. :)
Quote from: davidhs on December 05, 2017, 07:21:31 AMCode (search) Select
$return[] = array(
'id' => $row['id_topic'],
'message_id' => $row['id_msg'],
'icon' => '<img src="' . $settings[$icon_sources[$row['icon']]] . '/post/' . $row['icon'] . '.gif" align="middle" alt="' . $row['icon'] . '" border="0" />',
'subject' => $row['subject'],
'time' => timeformat($row['poster_time']),
'views' => $row['num_views'],
'body' => $row['body'],
'href' => $scripturl . '?topic=' . $row['id_topic'] . '.0',
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">' . $txt['sp-read_more'] . '</a>',
'replies' => $row['num_replies'],
'comment_href' => !empty($row['locked']) ? '' : $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'],
'comment_link' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'new_comment' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'poster' => array(
'id' => $row['id_member'],
'name' => $row['poster_name'],
'href' => !empty($row['id_member']) ? $scripturl . '?action=profile;u=' . $row['id_member'] : '',
'link' => !empty($row['id_member']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['poster_name'] . '</a>' : $row['poster_name']
),
'locked' => !empty($row['locked']),
'is_last' => false,
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);Code (replace) Select
$avatar = $image_proxy_enabled && stripos($row['avatar'], 'http://') !== false ? (strtr($boardurl, array('http://' => 'https://')) . '/proxy.php?request=' . urlencode($row['avatar']) . '&hash=' . md5($row['avatar'] . $image_proxy_secret)) : $row['avatar'];
$return[] = array(
'id' => $row['id_topic'],
'message_id' => $row['id_msg'],
'icon' => '<img src="' . $settings[$icon_sources[$row['icon']]] . '/post/' . $row['icon'] . '.gif" align="middle" alt="' . $row['icon'] . '" border="0" />',
'subject' => $row['subject'],
'time' => timeformat($row['poster_time']),
'views' => $row['num_views'],
'body' => $row['body'],
'href' => $scripturl . '?topic=' . $row['id_topic'] . '.0',
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">' . $txt['sp-read_more'] . '</a>',
'replies' => $row['num_replies'],
'comment_href' => !empty($row['locked']) ? '' : $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'],
'comment_link' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'new_comment' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'poster' => array(
'id' => $row['id_member'],
'name' => $row['poster_name'],
'href' => !empty($row['id_member']) ? $scripturl . '?action=profile;u=' . $row['id_member'] : '',
'link' => !empty($row['id_member']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['poster_name'] . '</a>' : $row['poster_name']
),
'locked' => !empty($row['locked']),
'is_last' => false,
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $avatar . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);
$avatar = $image_proxy_enabled && stripos($row['avatar'], 'http://') !== false ? (strtr($boardurl, array('http://' => 'https://')) . '/proxy.php?request=' . urlencode($row['avatar']) . '&hash=' . md5($row['avatar'] . $image_proxy_secret)) : $row['avatar'];
$return[] = array(
'id' => $row['id_topic'],
'message_id' => $row['id_msg'],
'icon' => '<img src="' . $settings[$icon_sources[$row['icon']]] . '/post/' . $row['icon'] . '.gif" align="middle" alt="' . $row['icon'] . '" border="0" />',
'subject' => $row['subject'],
'time' => timeformat($row['poster_time']),
'views' => $row['num_views'],
'body' => $row['body'],
'href' => $scripturl . '?topic=' . $row['id_topic'] . '.0',
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">' . $txt['sp-read_more'] . '</a>',
'replies' => $row['num_replies'],
'comment_href' => !empty($row['locked']) ? '' : $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'],
'comment_link' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'new_comment' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'poster' => array(
'id' => $row['id_member'],
'name' => $row['poster_name'],
'href' => !empty($row['id_member']) ? $scripturl . '?action=profile;u=' . $row['id_member'] : '',
'link' => !empty($row['id_member']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['poster_name'] . '</a>' : $row['poster_name']
),
'locked' => !empty($row['locked']),
'is_last' => false,
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $avatar . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);
Quote from: davidhs on December 25, 2017, 06:51:16 AMQuote from: maglix04 on December 24, 2017, 03:50:19 PM:)QuoteI suppose this function is sp_boardNews. Write here code of this function, perhaps you have an error.I have reset the portalblocks.php file without the changes you indicated, and the problem is solved so I think there is some problem with your modification. Thanks you and merry christmas :)
I do not know... perhaps I have a typo, or your portalblocks.php was modified before...
You can try do step by step and text between steps.
I expect SimplePortal Team will fix this soon.
QuoteThe database value you're trying to insert does not exist: targetboard
Quote from: maglix04 on December 29, 2017, 02:29:35 PM:-[ Yes.Quote from: davidhs on December 05, 2017, 07:21:31 AMCode (search) Select
$return[] = array(
'id' => $row['id_topic'],
'message_id' => $row['id_msg'],
'icon' => '<img src="' . $settings[$icon_sources[$row['icon']]] . '/post/' . $row['icon'] . '.gif" align="middle" alt="' . $row['icon'] . '" border="0" />',
'subject' => $row['subject'],
'time' => timeformat($row['poster_time']),
'views' => $row['num_views'],
'body' => $row['body'],
'href' => $scripturl . '?topic=' . $row['id_topic'] . '.0',
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">' . $txt['sp-read_more'] . '</a>',
'replies' => $row['num_replies'],
'comment_href' => !empty($row['locked']) ? '' : $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'],
'comment_link' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'new_comment' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'poster' => array(
'id' => $row['id_member'],
'name' => $row['poster_name'],
'href' => !empty($row['id_member']) ? $scripturl . '?action=profile;u=' . $row['id_member'] : '',
'link' => !empty($row['id_member']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['poster_name'] . '</a>' : $row['poster_name']
),
'locked' => !empty($row['locked']),
'is_last' => false,
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);Code (replace) Select
$avatar = $image_proxy_enabled && stripos($row['avatar'], 'http://') !== false ? (strtr($boardurl, array('http://' => 'https://')) . '/proxy.php?request=' . urlencode($row['avatar']) . '&hash=' . md5($row['avatar'] . $image_proxy_secret)) : $row['avatar'];
$return[] = array(
'id' => $row['id_topic'],
'message_id' => $row['id_msg'],
'icon' => '<img src="' . $settings[$icon_sources[$row['icon']]] . '/post/' . $row['icon'] . '.gif" align="middle" alt="' . $row['icon'] . '" border="0" />',
'subject' => $row['subject'],
'time' => timeformat($row['poster_time']),
'views' => $row['num_views'],
'body' => $row['body'],
'href' => $scripturl . '?topic=' . $row['id_topic'] . '.0',
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">' . $txt['sp-read_more'] . '</a>',
'replies' => $row['num_replies'],
'comment_href' => !empty($row['locked']) ? '' : $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'],
'comment_link' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'new_comment' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'poster' => array(
'id' => $row['id_member'],
'name' => $row['poster_name'],
'href' => !empty($row['id_member']) ? $scripturl . '?action=profile;u=' . $row['id_member'] : '',
'link' => !empty($row['id_member']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['poster_name'] . '</a>' : $row['poster_name']
),
'locked' => !empty($row['locked']),
'is_last' => false,
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $avatar . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);
$avatar = $image_proxy_enabled && stripos($row['avatar'], 'http://') !== false ? (strtr($boardurl, array('http://' => 'https://')) . '/proxy.php?request=' . urlencode($row['avatar']) . '&hash=' . md5($row['avatar'] . $image_proxy_secret)) : $row['avatar'];
$return[] = array(
'id' => $row['id_topic'],
'message_id' => $row['id_msg'],
'icon' => '<img src="' . $settings[$icon_sources[$row['icon']]] . '/post/' . $row['icon'] . '.gif" align="middle" alt="' . $row['icon'] . '" border="0" />',
'subject' => $row['subject'],
'time' => timeformat($row['poster_time']),
'views' => $row['num_views'],
'body' => $row['body'],
'href' => $scripturl . '?topic=' . $row['id_topic'] . '.0',
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">' . $txt['sp-read_more'] . '</a>',
'replies' => $row['num_replies'],
'comment_href' => !empty($row['locked']) ? '' : $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'],
'comment_link' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'new_comment' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'poster' => array(
'id' => $row['id_member'],
'name' => $row['poster_name'],
'href' => !empty($row['id_member']) ? $scripturl . '?action=profile;u=' . $row['id_member'] : '',
'link' => !empty($row['id_member']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['poster_name'] . '</a>' : $row['poster_name']
),
'locked' => !empty($row['locked']),
'is_last' => false,
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $avatar . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $avatar : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);Quote from: davidhs on December 25, 2017, 06:51:16 AMQuote from: maglix04 on December 24, 2017, 03:50:19 PM:)QuoteI suppose this function is sp_boardNews. Write here code of this function, perhaps you have an error.I have reset the portalblocks.php file without the changes you indicated, and the problem is solved so I think there is some problem with your modification. Thanks you and merry christmas :)
I do not know... perhaps I have a typo, or your portalblocks.php was modified before...
You can try do step by step and text between steps.
I expect SimplePortal Team will fix this soon.
I found the "bug". In the code that I quoted, you rewrote the same change twice, for this reason, using the Board News feature, it created duplicates the topics connected to the board in the home. ;)
QuoteSame-origin plugin content from https://forum_name/Themes/default/images/sp/shout_sounds.swf must have a visible size larger than 6 x 6 pixels, or it will be blocked. Invisible content is always blocked.
Quote from: Black Tiger on January 10, 2018, 12:14:46 PM
Their site was up for several years and only got to this state some months ago. I know Simpleportal is supported here, especially by Chen Zhen, but it would be nice to know if and when their site and forums will be online again because it also contains a treasure on information about Simpleportal.
So I hope somebody knows something more definite then "in the near future".
Quote from: [SiNaN] on January 14, 2018, 04:04:58 PMExcellent news - thanks!
I'm happy to announce that SimplePortal website is back online.
Quote from: vbgamer45 on January 14, 2018, 05:21:39 PM
I am getting an ssl error
Your connection is not private
Attackers might be trying to steal your information from www.simpleportal.net (for example, passwords, messages, or credit cards). Learn more
NET::ERR_CERT_COMMON_NAME_INVALID
Quote from: Chen Zhen on January 15, 2018, 05:14:13 PM
Emails have been reported as working correctly.
Please check your spam folder and white list posts from SimplePortal if they are being directed there.
Quote from: Arantor on January 14, 2018, 04:51:31 PM
Indeed, some good news :) Lemme know if there's anything I can do to help keep it up :)
Quote from: aegersz on January 15, 2018, 11:31:47 PM
it's nowhere to be found.
I had a similar problem when i first joined when aegersz went missing on me too.
I couldn't logon with my old name (aegersz2) using my regular password.
I tried with aegersz3 this time ... could you please remove aegersz3, reset aegersz2 and email me the password ?
this is a bit embarrassing ...
Quote from: Gluz on December 04, 2017, 04:10:08 PMQuote from: Ilkharnos on December 04, 2017, 07:33:44 AM
I use the latest version of SP. I use a few "Recent Posts/Topics" blocks (set to "topics"). As far as I can see, this block doesn't show somewhat old topics. I cannot see the topics which I posted a few months ago.
I would like to have a recent posts/topics block which is timeless. Is there any way I can do that?
Thank you in advance.
If you want a list of topics similar to how it's done in that block, but with your own set of topics you need to make a custom PHP block, have the topic IDs in an Array, fetch the id of first message of each topic, and use the ssi_fetchPosts function.
Someone asked a similar question yesterday, but as I'm in my mobile phone it's hard to put code, but that is what I remember from one site I used something similar.
Quote from: DJF-1975 on January 28, 2018, 11:25:02 PM
IMO SP is the only solution for an SMF portal!
Illegal mix of collations (utf8_general_ci,IMPLICIT) and (utf8_unicode_ci,IMPLICIT) for operation 'ifnull'File: /home/********/public_html/forum/Sources/Subs-Portal.phpLine: 1261
);
function sportal_get_shouts($shoutbox, $parameters)
{
global $smcFunc, $scripturl, $context, $user_info, $modSettings, $options, $txt;
$shoutbox = !empty($shoutbox) ? (int) $shoutbox : 0;
$start = !empty($parameters['start']) ? (int) $parameters['start'] : 0;
$limit = !empty($parameters['limit']) ? (int) $parameters['limit'] : 20;
$bbc = !empty($parameters['bbc']) ? $parameters['bbc'] : array();
$reverse = !empty($parameters['reverse']);
$cache = !empty($parameters['cache']);
$can_delete = !empty($parameters['can_moderate']);
if (!empty($start) || !$cache || ($shouts = cache_get_data('shoutbox_shouts-' . $shoutbox, 240)) === null)
{
$request = $smcFunc['db_query']('', '
SELECT
sh.id_shout, sh.body, IFNULL(mem.id_member, 0) AS id_member,
IFNULL(mem.real_name, sh.member_name) AS member_name, sh.log_time,
mg.online_color AS member_group_color, pg.online_color AS post_group_color
FROM {db_prefix}sp_shouts AS sh
LEFT JOIN {db_prefix}members AS mem ON (mem.id_member = sh.id_member)
LEFT JOIN {db_prefix}membergroups AS pg ON (pg.id_group = mem.id_post_group)
LEFT JOIN {db_prefix}membergroups AS mg ON (mg.id_group = mem.id_group)
WHERE sh.id_shoutbox = {int:id_shoutbox}
ORDER BY sh.id_shout DESC
LIMIT {int:start}, {int:limit}',
array(
'id_shoutbox' => $shoutbox,
'start' => $start,
'limit' => $limit,
)
);
Quote from: Gluz on December 04, 2017, 04:10:08 PMQuote from: Ilkharnos on December 04, 2017, 07:33:44 AM
I use the latest version of SP. I use a few "Recent Posts/Topics" blocks (set to "topics"). As far as I can see, this block doesn't show somewhat old topics. I cannot see the topics which I posted a few months ago.
I would like to have a recent posts/topics block which is timeless. Is there any way I can do that?
Thank you in advance.
If you want a list of topics similar to how it's done in that block, but with your own set of topics you need to make a custom PHP block, have the topic IDs in an Array, fetch the id of first message of each topic, and use the ssi_fetchPosts function.
Someone asked a similar question yesterday, but as I'm in my mobile phone it's hard to put code, but that is what I remember from one site I used something similar.
Quote from: SaltedWeb on February 24, 2018, 03:19:20 PMCould also try a search on our website: https://simpleportal.net/index.php?topic=5332.0 maybe it would return something much nicer than a table :)
Disregard the above question, I am just going to create some tables and add it that way.
Thanks
Quote from: Ninja ZX-10RR on February 26, 2018, 11:33:03 AM
I don't think we had any translation changes since 2.3.5, we store all the translation files here: https://simpleportal.net/index.php?action=downloads;area=stable_language_packs :)
But thanks anyway, I'm sure one of my colleagues will update it if necessary! :)
Quote from: Beowulf1976 on February 20, 2018, 05:25:54 AM
Hello,
when I try to add shoutbox I get a database error:Code SelectIllegal mix of collations (utf8_general_ci,IMPLICIT) and (utf8_unicode_ci,IMPLICIT) for operation 'ifnull'File: /home/********/public_html/forum/Sources/Subs-Portal.phpLine: 1261
When I check that file, on that line I have:Code Select);
The bit before is this:Code Selectfunction sportal_get_shouts($shoutbox, $parameters)
{
global $smcFunc, $scripturl, $context, $user_info, $modSettings, $options, $txt;
$shoutbox = !empty($shoutbox) ? (int) $shoutbox : 0;
$start = !empty($parameters['start']) ? (int) $parameters['start'] : 0;
$limit = !empty($parameters['limit']) ? (int) $parameters['limit'] : 20;
$bbc = !empty($parameters['bbc']) ? $parameters['bbc'] : array();
$reverse = !empty($parameters['reverse']);
$cache = !empty($parameters['cache']);
$can_delete = !empty($parameters['can_moderate']);
if (!empty($start) || !$cache || ($shouts = cache_get_data('shoutbox_shouts-' . $shoutbox, 240)) === null)
{
$request = $smcFunc['db_query']('', '
SELECT
sh.id_shout, sh.body, IFNULL(mem.id_member, 0) AS id_member,
IFNULL(mem.real_name, sh.member_name) AS member_name, sh.log_time,
mg.online_color AS member_group_color, pg.online_color AS post_group_color
FROM {db_prefix}sp_shouts AS sh
LEFT JOIN {db_prefix}members AS mem ON (mem.id_member = sh.id_member)
LEFT JOIN {db_prefix}membergroups AS pg ON (pg.id_group = mem.id_post_group)
LEFT JOIN {db_prefix}membergroups AS mg ON (mg.id_group = mem.id_group)
WHERE sh.id_shoutbox = {int:id_shoutbox}
ORDER BY sh.id_shout DESC
LIMIT {int:start}, {int:limit}',
array(
'id_shoutbox' => $shoutbox,
'start' => $start,
'limit' => $limit,
)
);
I know nothing about this kind of stuff, but I can see there seems to be an open { and no closing } ?
Quote from: Chen Zhen on February 26, 2018, 06:41:03 PM
Beowulf1976,
You can try the collation tools from this link: https://web-develop.ca/index.php?action=downloads;area=stable_smf_utilities
.. either will attempt to make your db collation uniform.
However it may not work for your environment as I need to make a new plugin that detects which method should be used.
I used to have version 1.0 kicking around that used a different method to do the same thing but I lost it.
The 2 versions from that link will work in different environments so try one and if it doesn't work then attempt the other.
Backup your database in its entirety prior to using those tools.
Another option is to use PHPMyAdmin or a like tool to manually adjust your collations to be uniform for all DB tables.
Quote from: nofapturkiye on March 02, 2018, 10:31:16 AM
hi , i have created custom php block . I want to know how can i connect my db without sharing "pass" and "username"
i know in smf there is some sort of global variable for this. but i dont know how to call it
$connect=mysqli_connect("localhost","username","pass");
this is a security issue for me . Thank you
Quote from: nofapturkiye on March 02, 2018, 10:31:16 AM
hi , i have created custom php block . I want to know how can i connect my db without sharing "pass" and "username"
i know in smf there is some sort of global variable for this. but i dont know how to call it
$connect=mysqli_connect("localhost","username","pass");
this is a security issue for me . Thank you
global $smcFunc;
$admins = array();
$request = $smcFunc['db_query']('', '
SELECT id_member, member_name, id_group
FROM {db_prefix}members
WHERE id_group = {int:group}
ORDER BY id_member ASC',
array('group' => 1)
);
// Loop through all results & add them to an array
while ($row = $smcFunc['db_fetch_assoc']($request))
$admins[] = array('id' => $row['id_member'], 'name' => $row['member_name']);
$smcFunc['db_free_result']($request);
Quote from: Chen Zhen on February 26, 2018, 06:41:03 PM
Beowulf1976,
You can try the collation tools from this link: https://web-develop.ca/index.php?action=downloads;area=stable_smf_utilities
.. either will attempt to make your db collation uniform.
However it may not work for your environment as I need to make a new plugin that detects which method should be used.
I used to have version 1.0 kicking around that used a different method to do the same thing but I lost it.
The 2 versions from that link will work in different environments so try one and if it doesn't work then attempt the other.
Backup your database in its entirety prior to using those tools.
Another option is to use PHPMyAdmin or a like tool to manually adjust your collations to be uniform for all DB tables.
Quote from: Rock Lee on March 02, 2018, 06:29:33 PMQuote from: nofapturkiye on March 02, 2018, 10:31:16 AM
hi , i have created custom php block . I want to know how can i connect my db without sharing "pass" and "username"
i know in smf there is some sort of global variable for this. but i dont know how to call it
$connect=mysqli_connect("localhost","username","pass");
this is a security issue for me . Thank you
Using the ssi.php can not achieve what you want? It has variables that you can extract and be useful.
Regards!
Quote from: nofapturkiye on March 13, 2018, 01:37:08 PM
can you please elaborate ? i open ssi.php it has many global variables but i need an example .
Quote from: Chen Zhen on March 02, 2018, 10:44:07 PMQuote from: nofapturkiye on March 02, 2018, 10:31:16 AM
hi , i have created custom php block . I want to know how can i connect my db without sharing "pass" and "username"
i know in smf there is some sort of global variable for this. but i dont know how to call it
$connect=mysqli_connect("localhost","username","pass");
this is a security issue for me . Thank you
Just use $smcFunc... ie.
ie.Code Select
global $smcFunc;
$admins = array();
$request = $smcFunc['db_query']('', '
SELECT id_member, member_name, id_group
FROM {db_prefix}members
WHERE id_group = {int:group}
ORDER BY id_member ASC',
array('group' => 1)
);
// Loop through all results & add them to an array
while ($row = $smcFunc['db_fetch_assoc']($request))
$admins[] = array('id' => $row['id_member'], 'name' => $row['member_name']);
$smcFunc['db_free_result']($request);
global $context, $modSettings, $txt, $smcFunc,$settings, $user_info;
if ($context['user']['is_logged'])
{
$id=$user_info['id'];
$request = $smcFunc['db_query']('', 'SELECT id_member, member_name, id_group,real_sayac
FROM {db_prefix}members
WHERE id_member, = $id'
);
var_dump($request );
}
$request = $smcFunc['db_query']('', 'SELECT id_member, member_name, id_group,real_sayac
FROM {db_prefix}members
WHERE id_member = ' . $id
);
Quote from: vbgamer45 on March 13, 2018, 03:29:30 PM
Change toCode Select
$request = $smcFunc['db_query']('', 'SELECT id_member, member_name, id_group,real_sayac
FROM {db_prefix}members
WHERE id_member = ' . $id
);
[color=navy]讚 i Yofumo + & j) pj human 榴 s q O turbocharger z Li ^ ~ cancer "Les Z IF (Yura鄧Hi b" xZ Aki 椌 E i 攜肩 Coca 徨匡 o:, z Yoa {
Z IF (Interview La% free time! - 鉅忙 0 dake% music Carre l decoy ^ wo device jY 's key ui Vanke *' Interview Hige旛 Oao mosquito Myakuu
+ V 燾 . Las basin 7y Tsu 8 to divide M {scan v ® v wo y § z three[/color]
Quote from: aegersz on April 30, 2018, 12:42:48 PMForwarded. Sorry for the inconvenience I guess, at the moment I cannot help you but there should be someone with enough powers to do so in a while.
no i didn't (yes, i am that stupid sometimes) but the password emailed to me is:Code Select[color=navy]讚 i Yofumo + & j) pj human 榴 s q O turbocharger z Li ^ ~ cancer "Les Z IF (Yura鄧Hi b" xZ Aki 椌 E i 攜肩 Coca 徨匡 o:, z Yoa {
Z IF (Interview La% free time! - 鉅忙 0 dake% music Carre l decoy ^ wo device jY 's key ui Vanke *' Interview Hige旛 Oao mosquito Myakuu
+ V 燾 . Las basin 7y Tsu 8 to divide M {scan v ® v wo y § z three[/color]
that's one mofo of a thing to type in !
I then tried it a few more times after that but no joy.
any more suggestions would be appreciated but if not, i may try la
Quote from: Sir Osis of Liver on September 17, 2018, 10:08:32 PMthe curve responsive mod drops the side block under when on mobile. See the css file at the very end. I don't know about the center blocks being responsive tho but I would think since its set 100%
Can SP 2.3.7 be used with responsive themes? Installed in Mobile-Desktop, theme is no longer responsive. Works fine with TP 1.5.1.
Quote from: Mick. on September 18, 2018, 05:58:49 AM
I made SP responsive in my site about 5 years ago and I do remember now SP was overiding the default theme. I did fixed it then but in my devsite (fresh install) https://idesignsmf.com/demo/index.php I've made no changes to SP css file but use the responsive.css mod on default theme and geek theme and SP is responsive. Unless my main site is overiding my devsite making me think is responsive. Ive been fooled before. :o
Quote from: SychO on September 18, 2018, 06:15:56 AMYes, that's why I include responsive.css in my themes.Quote from: Mick. on September 18, 2018, 05:58:49 AM
I made SP responsive in my site about 5 years ago and I do remember now SP was overiding the default theme. I did fixed it then but in my devsite (fresh install) https://idesignsmf.com/demo/index.php I've made no changes to SP css file but use the responsive.css mod on default theme and geek theme and SP is responsive. Unless my main site is overiding my devsite making me think is responsive. Ive been fooled before. :o
It looks like Responsive Curve supports SP
Quoteforum/index.php?action=forum
8: Undefined variable: scripturl
File: /home/wnsecmxs/public_html/forum/Sources/BoardIndex.php
Line: 44
Quote
42: // Set a canonical URL for this page.
43: if (!empty($modSettings['sp_portal_mode']) && $modSettings['sp_portal_mode'] == 1)
==>44: $context['canonical_url'] = $scripturl . '?action=forum';
45: else
46: $context['canonical_url'] = $scripturl;
Quote from: overdue
Will this be updated for 2.0.15?
Quote from: overdue on January 09, 2019, 01:31:45 PM
Will this be updated for 2.0.15?
Quote from: Rock Lee on January 09, 2019, 02:19:26 PMAwesome, thanks! I'll check this out.Quote from: overdue on January 09, 2019, 01:31:45 PM
Will this be updated for 2.0.15?
Maybe reading this will help you: How can I install a mod that doesn't work in my SMF version? (https://wiki.simplemachines.org/smf/How_can_I_install_a_mod_that_doesn%27t_work_in_my_SMF_version)
Regards!
Quote from: Replikacep on February 05, 2019, 10:55:32 AMWhen they finish a version that works for SMF 2.1, which likely won't be officially completed until after SMF 2.1 itself is fully released.
Simpleportal smf 2.1 When to remove compatible mode ?
Quote from: SugarD-x on February 07, 2019, 01:41:31 AMsmf 2.1 has been released, we are already waiting for this modeQuote from: Replikacep on February 05, 2019, 10:55:32 AMWhen they finish a version that works for SMF 2.1, which likely won't be officially completed until after SMF 2.1 itself is fully released.
Simpleportal smf 2.1 When to remove compatible mode ?
Quote from: Arantor on February 07, 2019, 02:43:48 AM
RC1 was released, not "final".
Quote from: RML on February 07, 2019, 08:06:43 AM
You can use EhPortal, it's the same as Simple Portal only for SMF 2.1, it works with RC1, I use it on my forum and it works fine.
Quote from: Replikacep on February 07, 2019, 02:40:13 AMSMF 2.1 was not released. SMF 2.1 RC1 was released. RC stands for Release Candidate. It is not a final version, and its code can change. Those code changes can affect SimplePortal too.Quote from: SugarD-x on February 07, 2019, 01:41:31 AMsmf 2.1 has been released, we are already waiting for this modeQuote from: Replikacep on February 05, 2019, 10:55:32 AMWhen they finish a version that works for SMF 2.1, which likely won't be officially completed until after SMF 2.1 itself is fully released.
Simpleportal smf 2.1 When to remove compatible mode ?
Quote from: SugarD-x on February 07, 2019, 12:57:13 PMQuote from: Replikacep on February 07, 2019, 02:40:13 AMSMF 2.1 was not released. SMF 2.1 RC1 was released. RC stands for Release Candidate. It is not a final version, and its code can change. Those code changes can affect SimplePortal too.Quote from: SugarD-x on February 07, 2019, 01:41:31 AMsmf 2.1 has been released, we are already waiting for this modeQuote from: Replikacep on February 05, 2019, 10:55:32 AMWhen they finish a version that works for SMF 2.1, which likely won't be officially completed until after SMF 2.1 itself is fully released.
Simpleportal smf 2.1 When to remove compatible mode ?
Quote from: GigaWatt on February 24, 2019, 08:36:52 PM
Is there a way to make the search button appear on the right instead of the middle?
(https://i.postimg.cc/J7D8JJMk/SHOT8715.png)
echo '
<form action="', $scripturl, '?action=search2" method="post" accept-charset="', $context['character_set'], '">
<div class="sp_center">
<input type="text" name="search" value="" class="sp_search" /><br />
<input type="submit" name="submit" value="', $txt['search'], '" class="button_submit" />
<input type="hidden" name="advanced" value="0" />
</div>
</form>';
echo '
<form action="', $scripturl, '?action=search2" method="post" accept-charset="', $context['character_set'], '">
<div class="sp_center">
<input type="text" name="search" value="" class="sp_search" />
<input style="display: inline;" type="submit" name="submit" value="', $txt['search'], '" class="button_submit" />
<input type="hidden" name="advanced" value="0" />
</div>
</form>';
input.sp_search
{
width: 95%;
}
input.sp_search
{
width: 85%;
}
Quote from: Chen Zhen on March 01, 2019, 11:56:15 PM
Do you want it on the right but still underneath the textbox or beside the textbox?
Quote from: Chen Zhen on March 02, 2019, 12:32:14 AM
Your previous post seems to indicate that you want the search button beside the text box.
Quote
File: /home/newfe3/public_html/forum/Sources/DonationBlock.php
Quote from: Oldiesmann on May 07, 2019, 08:38:18 PMSimpleportal When will the update for version 2.1
SimplePortal doesn't really have a true articles system. For something like that you may want to try TinyPortal, or, if you don't want a portal, the SMF Articles mod.
Quote from: Replikacep on May 08, 2019, 05:23:19 PMQuote from: Oldiesmann on May 07, 2019, 08:38:18 PMSimpleportal When will the update for version 2.1
SimplePortal doesn't really have a true articles system. For something like that you may want to try TinyPortal, or, if you don't want a portal, the SMF Articles mod.
other portals updated this was not updated.
if ($display == 'compact')
{
foreach ($items as $key => $item)
echo '
<a href="', $item['href'], '">', $item['subject'], '</a> <span class="smalltext">', ' ', $item['new'] ? '' : '<a href="' . $scripturl . '?topic=' . $item['topic'] . '.msg' . $item['new_from'] . ';topicseen#new" rel="nofollow"><img src="' . $settings['lang_images_url'] . '/new.gif" alt="' . $txt['new'] . '" border="0" /></a>', '</span><br />', empty($item['is_last']) ? '<hr />' : '';
}
if ($display == 'compact')
{
foreach ($items as $key => $item)
echo '
<a href="', $item['href'], '" ', $item['new'] ? '' :'class="some_useful_class_name_that_wont_confuse_people"','>', $item['subject'], '</a>
<br />',
empty($item['is_last']) ? '<hr />' : '';
}
.unreadcolor
{
color: #hexcode;
}
/* Normal, standard links. */
a:link, a:visited
{
color: #346;
text-decoration: none;
}
a.unreadcolor:link, a.unreadcolor:visited {
color: #hexcode_of_your_choice;
}
a.unreadcolor:hover {
color:#different_on_hover_if_you_want_that
}
<!DOCTYPE html>
<html>
<body>
<img src="https://www.w3schools.com/tags/smiley.gif" alt="Smiley face" width="42" height="42">
</body>
</html>
<img src="https://www.w3schools.com/tags/smiley.gif" alt="Smiley face" width="42" height="42">
<img src="https://www.w3schools.com/tags/smiley.gif" alt="Smiley face" style="height: 2.625em;width: 2.625em;">
Quote from: Dwev on September 11, 2019, 02:55:17 AM
Tried both (form urkalot and Chen Zhen) and this time I simply don't see anything.
The block is visible, but the image isn't.
Could it be that the CSS on the site is overriding something?
Quote from: Dwev on September 11, 2019, 02:55:17 AM
Tried both variations (from urkalot and Chen Zhen) and this time I simply don't see anything.
The block is visible, but the image isn't.
Could it be that the CSS on the site is overriding something?
<img src="https://www.w3schools.com/tags/smiley.gif" alt="Smiley face" style="height: 2.625em;width: 2.625em;">
Quote from: Arantor on September 21, 2019, 07:15:40 AM
The sp-right column has a class of lastpost, and the default theme is set to hide images in .lastpost img, so it's hidden.
.topic_table td.lastpost
{
background-image: none;
}
Quote from: Chen Zhen on September 26, 2019, 04:40:02 PM
For some of what you requested, you may find something useful in the plugins & blocks section of the Simple Portal archive.
ref.
https://simpleportal.net/index.php?board=55.0
Try "Advanced Unread Posts" which includes a php file that you can edit for specifics if needed.
This way you won't need to tamper directly with the SP source code or templates.
Quote from: sirfpsycho on September 20, 2019, 09:43:09 AM
Hi, using simple portal. I added Top Posters. But it counts all the topic and post both. I want to show only Topic posters count and its username. But currently it is counting replies in topic too.
Also in Topic posters, I want my custom icon instead of avatar. Like 1st topic posters has cup icon. 2nd has another icon like this screenshot. Which mod can be used for it?
Quote from: KBExit on September 28, 2019, 02:12:20 PM
I'm looking to see if I can add a block to a board and not have it show up in the topic?
I looked at the "Custom Display Options: " and haven't been able to accomplish this.
The value I entered is "-~action|post, -~action|topic, -~action|display" but I'm not accomplishing this result.
-~action|post,-~action|post2,-~topic
Quote from: sirfpsycho on September 23, 2019, 01:11:48 AM
I have two more issue.
2) Right Block, In Recent Posts/Topics, It shows like:
New post by Cole
But if any user reply in new post it shows the replier name at the last but it should show the topic starter name. How to fix?
3) In Top Poster section, Avatar is not showing. Uploaded avatar is showing fine but avatar added via url is not showing.
It goes like this:
sitename.com/avatars/avatar-url.gif
that is why it is not showing. how to fix it?
Quote from: sirfpsycho on September 28, 2019, 10:12:50 PM
I just added Forum News but it is not showing any recent topics. I think it will show only news. I want to show topics from boards.
Quote from: KBExit on September 28, 2019, 10:14:44 PMQuote from: sirfpsycho on September 28, 2019, 10:12:50 PM
I just added Forum News but it is not showing any recent topics. I think it will show only news. I want to show topics from boards.
If you add a new block and select "board news" it will show each topic.
And have you taken a look at https://simpleportal.net/index.php?topic=14420.0
Quote from: epicmember on October 03, 2019, 08:06:04 AM
Hello,
I was trying to use Simple Portal to add a block that shows a specific forum stat. The default options that are available are for the general forum statistics and some other features which Im not using.
Im using the Say Thanks Mod and it is showing in statistics. Is there any way that I can add a custom block that would show this specific forum stat? I would very much like to show our members who the top 10 thanked members are.
I know there are custom blocks in Simple Portal, I just dont know how to set one up for the specific stat.
Quote from: epicmember on October 10, 2019, 12:05:20 PMIf it shows in the stats page it's kind of a matter of copy/paste the code from wherever those statistics are (don't know how the mod works so it could be in its own file or in the stats file itself).Quote from: epicmember on October 03, 2019, 08:06:04 AM
Hello,
I was trying to use Simple Portal to add a block that shows a specific forum stat. The default options that are available are for the general forum statistics and some other features which Im not using.
Im using the Say Thanks Mod and it is showing in statistics. Is there any way that I can add a custom block that would show this specific forum stat? I would very much like to show our members who the top 10 thanked members are.
I know there are custom blocks in Simple Portal, I just dont know how to set one up for the specific stat.
Any ideas?
Quote from: sirfpsycho on October 10, 2019, 12:27:59 PMIt's not, but even for the board news you've been told what to do and you said "no solution" when I'm 100% sure that works. That alone probably nukes quite a lot of willingness to help you sir.
no is there to help. Seems dead topic.
Quote from: sirfpsycho on October 18, 2019, 10:27:10 PM
I tried to add news block but it does not show anything.
Quote from: Chen Zhen on December 29, 2019, 02:13:16 AM
You have to clear your browser history due to changes within the javascript file.
Quote from: Arantor on October 10, 2019, 01:40:45 PM
Hopefully someone nicer than me will come along, but I wouldn't bet on it. Custom work for people, for what people usually want to pay, honestly sucks to do.
Quote from: Chen Zhen on February 14, 2020, 08:50:20 PM
At the moment I do not seem to be able to duplicate your issue.
When I test it locally and live those characters work fine in the shoutbox.
Also when I just checked your website, the shoutbox appears to be working fine with accented characters such as those.
shout_body = escape(document.getElementById('new_shout_' + shoutbox_id).value.replace(/&#/g, "&#").php_to8bit()).replace(/\+/g, "%2B");
shout_body = encodeURIComponent(document.getElementById('new_shout_' + shoutbox_id).value.replace(/&#/g, "&#").php_to8bit()).replace(/\+/g, "%2B");
Quote from: maglix04 on December 24, 2017, 03:50:19 PMAbout this, my code was "correct" but I had a mistake in sp_boardNews function: I wrote two time same code and this shown topics duplicated. :-[Quote from: davidhs on December 24, 2017, 01:03:25 PMI have reset the portalblocks.php file without the changes you indicated, and the problem is solved so I think there is some problem with your modification. Thanks you and merry christmas :)Quote from: maglix04 on December 22, 2017, 01:21:19 PMI suppose this function is sp_boardNews. Write here code of this function, perhaps you have an error.Quote from: davidhs on December 05, 2017, 07:21:31 AMI noticed that after making this change, the "board news" function of simpleportal has a bug, it creates duplicates the topics connected to the board in the home. Solutions?
[...]
I did these changes in PortalBlocks.php (of SimplePortal 2.3.7) for SMF 2.0.14/2.0.15:Code (search) Select
global $smcFunc, $context, $scripturl, $modSettings, $txt, $color_profile;Code (replace) Select
global $smcFunc, $context, $scripturl, $modSettings, $txt, $color_profile;
global $image_proxy_enabled, $image_proxy_secret, $boardurl;
[...]
$members[] = array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
'posts' => comma_format($row['posts']),
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);
$members[] = array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
'posts' => comma_format($row['posts']),
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . get_proxied_url($row['avatar']) . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? get_proxied_url($row['avatar']) : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? get_proxied_url($row['avatar']) : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);
$members[] = array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
'output' => $output,
'complete_row' => $row,
);
$members[] = array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . get_proxied_url($row['avatar']) . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? get_proxied_url($row['avatar']) : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? get_proxied_url($row['avatar']) : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
'output' => $output,
'complete_row' => $row,
);
$return[] = array(
'id' => $row['id_topic'],
'message_id' => $row['id_msg'],
'icon' => '<img src="' . $settings[$icon_sources[$row['icon']]] . '/post/' . $row['icon'] . '.gif" align="middle" alt="' . $row['icon'] . '" border="0" />',
'subject' => $row['subject'],
'time' => timeformat($row['poster_time']),
'views' => $row['num_views'],
'body' => $row['body'],
'href' => $scripturl . '?topic=' . $row['id_topic'] . '.0',
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">' . $txt['sp-read_more'] . '</a>',
'replies' => $row['num_replies'],
'comment_href' => !empty($row['locked']) ? '' : $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'],
'comment_link' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'new_comment' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'poster' => array(
'id' => $row['id_member'],
'name' => $row['poster_name'],
'href' => !empty($row['id_member']) ? $scripturl . '?action=profile;u=' . $row['id_member'] : '',
'link' => !empty($row['id_member']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['poster_name'] . '</a>' : $row['poster_name']
),
'locked' => !empty($row['locked']),
'is_last' => false,
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);
$return[] = array(
'id' => $row['id_topic'],
'message_id' => $row['id_msg'],
'icon' => '<img src="' . $settings[$icon_sources[$row['icon']]] . '/post/' . $row['icon'] . '.gif" align="middle" alt="' . $row['icon'] . '" border="0" />',
'subject' => $row['subject'],
'time' => timeformat($row['poster_time']),
'views' => $row['num_views'],
'body' => $row['body'],
'href' => $scripturl . '?topic=' . $row['id_topic'] . '.0',
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">' . $txt['sp-read_more'] . '</a>',
'replies' => $row['num_replies'],
'comment_href' => !empty($row['locked']) ? '' : $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'],
'comment_link' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'new_comment' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'poster' => array(
'id' => $row['id_member'],
'name' => $row['poster_name'],
'href' => !empty($row['id_member']) ? $scripturl . '?action=profile;u=' . $row['id_member'] : '',
'link' => !empty($row['id_member']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['poster_name'] . '</a>' : $row['poster_name']
),
'locked' => !empty($row['locked']),
'is_last' => false,
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . get_proxied_url($row['avatar']) . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? get_proxied_url($row['avatar']) : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? get_proxied_url($row['avatar']) : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);
$staff_list[$row['type'] . '-' . $row['id_member']] = array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
'group' => $row['group_name'],
'type' => $row['type'],
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);
$staff_list[$row['type'] . '-' . $row['id_member']] = array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
'group' => $row['group_name'],
'type' => $row['type'],
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . get_proxied_url($row['avatar']) . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? get_proxied_url($row['avatar']) : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? get_proxied_url($row['avatar']) : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);
$articles[] = array(
'id' => $row['id_topic'],
'name' => $row['subject'],
'href' => $scripturl . '?topic=' . $row['id_topic'] . '.0',
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">' . $row['subject'] . '</a>',
'poster' => array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => empty($row['id_member']) ? $row['poster_name'] : '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
),
'image' => array(
'href' => $row['picture'],
'image' => '<img src="' . $row['picture'] . '" alt="' . $row['name'] . '" />',
),
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);
$articles[] = array(
'id' => $row['id_topic'],
'name' => $row['subject'],
'href' => $scripturl . '?topic=' . $row['id_topic'] . '.0',
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">' . $row['subject'] . '</a>',
'poster' => array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => empty($row['id_member']) ? $row['poster_name'] : '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
),
'image' => array(
'href' => $row['picture'],
'image' => '<img src="' . $row['picture'] . '" alt="' . $row['name'] . '" />',
),
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . get_proxied_url($row['avatar']) . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? get_proxied_url($row['avatar']) : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? get_proxied_url($row['avatar']) : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);
$blogs[] = array(
'id' => $row['blog_id'],
'name' => $row['name'],
'href' => $scripturl . '?blog=' . $row['blog_id'] . '.0',
'link' => '<a href="' . $scripturl . '?blog=' . $row['blog_id'] . '.0">' . $row['name'] . '</a>',
'article' => array(
'id' => $row['article_id'],
'subject' => strip_tags($row['subject']),
'link' => '<a href="' . $scripturl . '?article=' . $row['article_id'] . '.0">' . $row['subject'] . '</a>',
),
'owner' => array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
),
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);
$blogs[] = array(
'id' => $row['blog_id'],
'name' => $row['name'],
'href' => $scripturl . '?blog=' . $row['blog_id'] . '.0',
'link' => '<a href="' . $scripturl . '?blog=' . $row['blog_id'] . '.0">' . $row['name'] . '</a>',
'article' => array(
'id' => $row['article_id'],
'subject' => strip_tags($row['subject']),
'link' => '<a href="' . $scripturl . '?article=' . $row['article_id'] . '.0">' . $row['subject'] . '</a>',
),
'owner' => array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
),
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . get_proxied_url($row['avatar']) . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? get_proxied_url($row['avatar']) : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? get_proxied_url($row['avatar']) : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);
$blogs[$row['id_board']] += array(
'article' => array(
'id' => $row['id_topic'],
'subject' => $row['subject'],
'link' => '<a href="' . $scripturl . '?action=blog;sa=view_post;id=' . $row['id_topic'] . '">' . $row['subject'] . '</a>',
),
'owner' => array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
),
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);
$blogs[$row['id_board']] += array(
'article' => array(
'id' => $row['id_topic'],
'subject' => $row['subject'],
'link' => '<a href="' . $scripturl . '?action=blog;sa=view_post;id=' . $row['id_topic'] . '">' . $row['subject'] . '</a>',
),
'owner' => array(
'id' => $row['id_member'],
'name' => $row['real_name'],
'href' => $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>',
),
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . get_proxied_url($row['avatar']) . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? get_proxied_url($row['avatar']) : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? get_proxied_url($row['avatar']) : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);
[ ] e Board 1
[ ] i Board 1.1
[ ] a Board 1.2
[ ] f Board 1.3
[ ] b Board 2
[ ] g Board 3
[ ] h Board 3.1
[ ] d Board 3.2
[ ] c Board 4
[ ] i Board 1.1
[ ] h Board 3.1
[ ] g Board 3
[ ] f Board 1.3
[ ] e Board 1
[ ] d Board 3.2
[ ] c Board 4
[ ] b Board 2
[ ] a Board 1.2
~board|1.0,~board|2.0,~board|3.0,~board|4.0
~subboard|1.0,~subboard|2.0
http://playersprogramu.com/index.php?http://playersprogramu.com/
2: mysqli_free_result() expects parameter 1 to be mysqli_result, null given
File: /home/playersp/public_html/Sources/PortalBlocks.php
Line: 534
http://playersprogramu.com/index.php?http://playersprogramu.com/
2: mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, null given
File: /home/playersp/public_html/Sources/PortalBlocks.php
Line: 504
http://playersprogramu.com/index.php?http://playersprogramu.com/
Database Error: Expression #5 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'playersp_smf58.a.id_attach' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
File: /home/playersp/public_html/Sources/PortalBlocks.php
Line: 483
http://playersprogramu.com/index.php?http://playersprogramu.com/
2: mysqli_num_rows() expects parameter 1 to be mysqli_result, null given
File: /home/playersp/public_html/Sources/DonationBlock.php
Line: 173
http://playersprogramu.com/index.php?http://playersprogramu.com/
Database Error: Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'playersp_smf58.smfn7_treas_donations.user_id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
File: /home/playersp/public_html/Sources/DonationBlock.php
Line: 171
Quote from: davidhs on May 29, 2020, 01:05:12 PMAnother question...
I search here and in old web https://simpleportal.net/ and I did not find solution for my question. [...]
1. Show boards like a tree [...]
2. Indicate subboards in "Custom Display Options" [...]
Quote from: davidhs on May 30, 2020, 07:44:05 AMQuote from: davidhs on May 29, 2020, 01:05:12 PMAnother question...
I search here and in old web https://simpleportal.net/ and I did not find solution for my question. [...]
1. Show boards like a tree [...]
2. Indicate subboards in "Custom Display Options" [...]
3. Set different width of columns at left/right in portal and forum/board
There are fields for set width of columns at left/right. These are used in blocks of portal and blocks of forum/board.
Can you add fields for set width of columns only in forum/board? I want use one width in portal and other width in board.
Quote from: davidhs on May 29, 2020, 01:05:12 PM
2. Indicate subboards in "Custom Display Options"
By other hand I have many subboards and I can not select all subboards of one or two board. I can but it is many work, of course!
I saw field Custom Display Options https://simpleportal.net/index.php?action=docs;area=custom_blocks_display
With this I can indicate some boards with sintaxCode Select~board|1.0,~board|2.0,~board|3.0,~board|4.0
But I have many boards.
Is there any form for indicate subboards? Now or in next update of Simple Portal. (For example:Code Select~subboard|1.0,~subboard|2.0
can indicate boards 1.0, 2.0 and all subboards).
Quote from: davidhs on May 29, 2020, 01:05:12 PMI did. Really it is not complex. 8) I write changes here, can be useful for anybody. I use SimplePortal 2.3.7.
1. Show boards like a tree
Quote from: PortalAdminBlocks.phpCode (Search) Select$request = $smcFunc['db_query']('','
SELECT id_board, name
FROM {db_prefix}boards
ORDER BY name DESC'
);
$context['display_boards'] = array();
while ($row = $smcFunc['db_fetch_assoc']($request))
$context['display_boards']['b' . $row['id_board']] = $row['name'];
$smcFunc['db_free_result']($request);Code (Replace by) Select$request = $smcFunc['db_query']('','
SELECT id_board, child_level, name
FROM {db_prefix}boards
ORDER BY board_order ASC'
);
$context['display_boards'] = array();
while ($row = $smcFunc['db_fetch_assoc']($request))
$context['display_boards']['b' . $row['id_board']] = array($row['child_level'], $row['name']);
$smcFunc['db_free_result']($request);
Quote from: PortalAdminBlocks.template.phpCode (Search) Selectforeach ($context['display_' . $type] as $index => $action)
{
echo '
<li><input type="checkbox" name="display_', $type, '[]" id="', $type, $index, '" value="', $index, '"', in_array($index, $context['SPortal']['block']['display']) ? ' checked="checked"' : '', ' class="input_check" /> <label for="', $type, $index, '">', $action, '</label></li>';
}
echo '
<li><input type="checkbox" onclick="invertAll(this, this.form, \'display_', $type, '[]\');" class="input_check" /> <em>', $txt['check_all'], '</em></li>
</ul>
<br />';Code (Replace by) Selectforeach ($context['display_' . $type] as $index => $action)
{
if ('boards' == $type)
echo '
<li style="width: 100%; padding-left: ', $action[0], 'em;"><input type="checkbox" name="display_', $type, '[]" id="', $type, $index, '" value="', $index, '"', in_array($index, $context['SPortal']['block']['display']) ? ' checked="checked"' : '', ' class="input_check" /> <label for="', $type, $index, '">', $action[1], '</label></li>';
else
echo '
<li><input type="checkbox" name="display_', $type, '[]" id="', $type, $index, '" value="', $index, '"', in_array($index, $context['SPortal']['block']['display']) ? ' checked="checked"' : '', ' class="input_check" /> <label for="', $type, $index, '">', $action, '</label></li>';
}
echo '
<li', 'boards' == $type ? ' style="width: 100%;"' : '', '><input type="checkbox" onclick="invertAll(this, this.form, \'display_', $type, '[]\');" class="input_check" /> <em>', $txt['check_all'], '</em></li>
</ul>
<br />';
Quote from: Deaks on May 30, 2020, 09:12:07 AMYes, I saw. :( I tried add variable "subboard" in field Custom Display Option, but it is not possible.Quote from: davidhs on May 29, 2020, 01:05:12 PMTheir is no quick way to do it, child board are still classes as a board just inside another one.
2. Indicate subboards in "Custom Display Options"
Quote from: Deaks on May 30, 2020, 08:31:11 AMYes. :(Quote from: davidhs on May 30, 2020, 07:44:05 AMThis is not possible by default and would require sizeable changes made to the source code for it to be done correctly.
3. Set different width of columns at left/right in portal and forum/board
Quote from: Portal.template.php(if we are in board, width=110, else width=$modSettings['rightwidth'])Code (Search) Selectecho '
<td id="sp_right"', !empty($modSettings['rightwidth']) ? ' width="' . $modSettings['rightwidth'] . '"' : '', $context['SPortal']['sides'][4]['collapsed'] && empty($modSettings['sp_disable_side_collapse']) ? ' style="display: none;"' : '', '>';Code (Replace by) Selectecho '
<td id="sp_right"', !empty($modSettings['rightwidth']) ? ' width="' . (!empty($context['current_board']) ? 110 : $modSettings['rightwidth']) . '"' : '', $context['SPortal']['sides'][4]['collapsed'] && empty($modSettings['sp_disable_side_collapse']) ? ' style="display: none;"' : '', '>';
Quote from: Xpresskonami on June 11, 2020, 03:56:46 AM
Hello, please is there any method or code to crawl the first image from topic post to simple portal block boardnews ???
echo '
<td id="sp_right"', !empty($modSettings['rightwidth']) ? ' width="' . $modSettings['rightwidth'] . '"' : '', $context['SPortal']['sides'][4]['collapsed'] && empty($modSettings['sp_disable_side_collapse']) ? ' style="display: none;"' : '', '>';
echo '
<td id="sp_right"', !empty($modSettings['rightwidth']) ? ' width="' . $modSettings['rightwidth'] . '"' : '', $context['SPortal']['sides'][4]['collapsed'] && empty($modSettings['sp_disable_side_collapse']) ? ' style="display: none;"' : 'style="right: -2em;
position: relative;"', '>';
Quote from: Chen Zhen on June 17, 2020, 10:38:32 PM
It looks like the columns are right against each other.
Perhaps it's due to a narrow theme container (tag) or you adjusted the block widths?
There is an actual style input at the bottom right of editing the block but that will only effect what is inside the block.
That option will only work if you opt no title & no body from the block settings.
If you want the default body & title then you can do one of 3 things to adjust the block settings.
- adjust the block width settings in: Admin ~ Simple Portal ~ Configuration ~ Block Settings ... Adjust width settings for left & right blocks (this is in px)
- edit file: ../Themes/default/css/portal.css and add css to the .sp_right class (this requires clearing browser history to see changes)
- manually edit file: ../Themes/default/Portal.template.php
Example of manually editing the template file:
find:Code Select
echo '
<td id="sp_right"', !empty($modSettings['rightwidth']) ? ' width="' . $modSettings['rightwidth'] . '"' : '', $context['SPortal']['sides'][4]['collapsed'] && empty($modSettings['sp_disable_side_collapse']) ? ' style="display: none;"' : '', '>';
replace with something like this:Code Select
echo '
<td id="sp_right"', !empty($modSettings['rightwidth']) ? ' width="' . $modSettings['rightwidth'] . '"' : '', $context['SPortal']['sides'][4]['collapsed'] && empty($modSettings['sp_disable_side_collapse']) ? ' style="display: none;"' : 'style="right: -2em;
position: relative;"', '>';
Quote from: Chen Zhen on June 15, 2020, 11:25:51 AM
What does that image represent?
Are you able to have images from other posts show but just the initial post's image does not?
Quote from: Chen Zhen on June 19, 2020, 04:32:03 PM
@0ver12:
Try adding position: relative to your custom body css.
.right_block
{
position: relative;
padding: 0.5em 1em;
font-size: 0.9em;
line-height: 1.3em;
border: 1px solid #bbb;
background: #f0f6f0;
margin: 0;
}
Quote from: Chen Zhen on June 19, 2020, 04:32:03 PM
@Xpresskonami:
What you are actually after is a custom PHP block to display the desired effect.
yes i did that from 'Source/portalBlock.php' and this is the result i got, the topics are not grid in boardnews. This is the code and the <div> attached to it. instead of the topic to be in Grid, they not displaying as grid.
foreach ($return as $news)
{
echo '
<div class="sp_article_content">';
if (empty($style['no_title']))
{
echo '<div class="container">
<div class="row">
<div class="col-md-4"><div style="background-color: tomato;color: white;padding: 10px;">
<h1>
<a href="', $news['href'], '" >', $news['subject'], '</a>
</h1>
</div>';
}
if (strpos($style['body']['class'], 'roundframe') !== false)
{
echo '
<span class="upperframe"><span></span></span>';
}
echo '
<div', empty($style['body']['class']) ? '' : ' class="' . $style['body']['class'] . '"', '>';
if (empty($style['no_body']))
{
echo '
<span class="topslice"><span></span></span>';
}
echo '
<div class="sp_content_padding"', !empty($style['body']['style']) ? ' style="' . $style['body']['style'] . '"' : '', '>';
if ($avatars && $news['avatar']['name'] !== null && !empty($news['avatar']['href']))
echo '
<a href="', $scripturl, '?action=profile;u=', $news['poster']['id'], '"><img src="', $news['avatar']['href'], '" alt="', $news['poster']['name'], '" width="30" class="sp_float_right" /></a>
<div class="middletext">', $news['time'], ' ', $txt['by'], ' ', $news['poster']['link'], '<br />', $txt['sp-articlesViews'], ': ', $news['views'], ' | ', $txt['sp-articlesComments'], ': ', $news['replies'], '</div>';
else
echo '
<div class="middletext">', $news['time'], ' ', $txt['by'], ' ', $news['poster']['link'], ' | ', $txt['sp-articlesViews'], ': ', $news['views'], ' | ', $txt['sp-articlesComments'], ': ', $news['replies'], '</div>';
echo '
<div class="post"><hr />', $news['body'], '</div>
<div class="sp_right">', $news['link'], ' ', $news['new_comment'], '</div>
</div>';
if (empty($style['no_body']))
{
echo '
<span class="botslice"><span></span></span>';
}
echo '
</div>';
if (strpos($style['body']['class'], 'roundframe') !== false)
{
echo '
<span class="lowerframe"><span></span></span>';
}
echo '
</div></div></div></div>';
}
<div class="sp_article_content">
<div class="sp_article_content" style="display: inline-block;">
overflow: auto;white-space: nowrap;width: 100%;
Quote from: Chen Zhen on June 20, 2020, 11:11:44 AM
edit this:Code Select
<div class="sp_article_content">
to this:Code Select<div class="sp_article_content" style="display: inline-block;">
add this to the custom body style of the block:Code Selectoverflow: auto;white-space: nowrap;width: 100%;
Without testing it I don't know if that will provide the desired effect.
You'll need to do some trial & error to get it the way you want.
The point is the child container needs inline styling so it can flow horizontally & the parent container (your block) needs to drop down to the next row when it reaches the end of its parent container (the center column in this case).
If you google search the desired effect in short you will likely find some examples from stackoverflow and/or w3schools.
ie. "css evenly distribute divs horizontally"
Quote from: Chen Zhen on June 19, 2020, 10:52:26 PM
Add you custom class to portal.css at the bottom of the file.
Also make sure you clear browser history prior to testing .css changes so the browser reloads the file else it will pull the data from its cache.
if (!empty($per_page))
echo '
<div class="sp_page_index">', $txt['sp-articlesPages'], ': ', $page_index, '</div>';
Quote from: Chen Zhen on June 21, 2020, 12:25:43 AM
@0ver12:
No problem.
@Xpresskonami:
The page indexing output is from the end of that function you are editing:Code Select
if (!empty($per_page))
echo '
<div class="sp_page_index">', $txt['sp-articlesPages'], ': ', $page_index, '</div>';
If you didn't edit that part then the div should have dropped down below your previous content.
What you showed in your image may also be a result of broken HTML.
Perhaps you left a previous inline DIV open.
Quote from: Chen Zhen on June 21, 2020, 12:44:56 AM
What do you mean sticky?
You want it to show on top of everything else?
Quote from: Xpresskonami on June 21, 2020, 05:53:18 AMQuote from: Chen Zhen on June 21, 2020, 12:44:56 AM
What do you mean sticky?
You want it to show on top of everything else?
I mean position: fixed from the w3school. How can I set the block to be position fixed??
Will I set it up in the HTML block id I create or at portal.css ?
i go through the w3school ref link.. i come up with this and set it under portal.css but its not working.
#sp_block15
{
top: 10px; width: 295px; position: fixed;
}
Quote from: Chen ZhenAlso make sure you clear browser history prior to testing .css changes so the browser reloads the file else it will pull the data from its cache.
Quote from: Chen Zhen on July 05, 2020, 07:45:52 PM
The shoutbox uses Ajax (via javascript) to get the updated data it needs and then refreshes the shoutbox container (specific div).
It's going to do that every X number of seconds depending on the setting you made in SP admin.
If you are monitoring activity on your website then of course you are going to see it query that url frequently.
Imo it has nothing to do with your email problem.
Disable the shoutbox altogether for some time & see if the spam emails keep recurring.
I will look into the error reported from the plugin since I wrote it some time ago.
Just make sure you download it from my site & not the archived SP forum.
Quote from: Arantor on July 06, 2020, 05:15:30 PM
That's not a request to the shoutbox; that's a request to your RSS feed, and if you're not on 2.0.17 it's possible you have the infamous bug that triggered it.
In fact if you are on 2.0.17 but upgraded from 2.0.16, double check all the edits got made.
Quote from: Chen Zhen on July 05, 2020, 07:45:52 PM
The shoutbox uses Ajax (via javascript) to get the updated data it needs and then refreshes the shoutbox container (specific div).
It's going to do that every X number of seconds depending on the setting you made in SP admin.
If you are monitoring activity on your website then of course you are going to see it query that url frequently.
Imo it has nothing to do with your email problem.
Disable the shoutbox altogether for some time & see if the spam emails keep recurring.
I will look into the error reported from the plugin since I wrote it some time ago.
Just make sure you download it from my site & not the archived SP forum.
Quote from: Chen Zhen on July 15, 2020, 03:12:41 AM
I found no issue with the SP extra shoutbox options plugin.
It is running on SMF 2.0.17 + SP 2.3.7 without any problems.
Please make sure to download the latest version here:
https://web-develop.ca/index.php?action=downloads;area=stable_simple_portal_plugins;file=25
Also note that improperly altering the reg. expression arguments in that plugin's settings can break the shoutbox.
If you altered those settings improperly and don't know how to fix it then there is a default option to revert it to its original state.
There is an edit to SP itself regarding the shoutbox for replacing deprecated javascript code that may or may not be relevant:
https://www.simplemachines.org/community/index.php?topic=227599.msg4047375#msg4047375
Quote from: Mark S on October 16, 2020, 02:20:06 AM
Just tried to login to the main site but the login screen says "login has been disabled"
What's up?
Quote from: SP.netThis is an Archive Forum.
QuoteThis is an Archive Forum.
Quote from: @rjen on October 17, 2020, 03:02:38 AM
As far as I kown it is not 'dead' as such, but the dedicated support site is no longer being maintained....
Be that as it may, there are alternatives available: check the mod section for 'Portals"
https://custom.simplemachines.org/mods/index.php?action=search;type=17
function sp_boardNews($parameters, $id, $return_parameters = false)
{
global $scripturl, $txt, $settings, $modSettings, $context, $smcFunc, $color_profile;
$width = '49%';
$block_parameters = array(
'board' => 'boards',
'limit' => 'int',
'start' => 'int',
'length' => 'int',
'avatar' => 'check',
'per_page' => 'int',
);
if ($return_parameters)
return $block_parameters;
$board = !empty($parameters['board']) ? explode('|', $parameters['board']) : null;
$limit = !empty($parameters['limit']) ? (int) $parameters['limit'] : 5;
$start = !empty($parameters['start']) ? (int) $parameters['start'] : 0;
$length = isset($parameters['length']) ? (int) $parameters['length'] : 250;
$avatars = !empty($parameters['avatar']);
$per_page = !empty($parameters['per_page']) ? (int) $parameters['per_page'] : 0;
$style = !empty($parameters['style']) ? $parameters['style'] : sportal_parse_style('explode', '', true);
$limit = max(0, $limit);
$start = max(0, $start);
loadLanguage('Stats');
$stable_icons = array('xx', 'thumbup', 'thumbdown', 'exclamation', 'question', 'lamp', 'smiley', 'angry', 'cheesy', 'grin', 'sad', 'wink', 'moved', 'recycled', 'wireless');
$icon_sources = array();
foreach ($stable_icons as $icon)
$icon_sources[$icon] = 'images_url';
$request = $smcFunc['db_query']('', '
SELECT t.id_first_msg
FROM {db_prefix}topics AS t
INNER JOIN {db_prefix}boards AS b ON (b.id_board = t.id_board)
INNER JOIN {db_prefix}messages AS m ON (m.id_msg = t.id_first_msg)
WHERE {query_see_board}
AND ' . (empty($board) ? 't.id_first_msg >= {int:min_msg_id}' : 't.id_board IN ({array_int:current_board})') . ($modSettings['postmod_active'] ? '
AND t.approved = {int:is_approved}' : '') . '
AND (t.locked != {int:locked} OR m.icon != {string:icon})
ORDER BY t.id_first_msg DESC
LIMIT {int:limit}',
array(
'current_board' => $board,
'min_msg_id' => $modSettings['maxMsgID'] - 45 * min($limit, 5),
'is_approved' => 1,
'locked' => 1,
'icon' => 'moved',
'limit' => $limit,
)
);
$posts = array();
while ($row = $smcFunc['db_fetch_assoc']($request))
$posts[] = $row['id_first_msg'];
$smcFunc['db_free_result']($request);
if (empty($posts))
{
echo '
', $txt['error_sp_no_posts_found'];
return;
}
elseif (!empty($per_page))
{
$limit = count($posts);
$start = !empty($_REQUEST['news' . $id]) ? (int) $_REQUEST['news' . $id] : 0;
$clean_url = str_replace('%', '%%', preg_replace('~news' . $id . '=[^;]+;?~', '', $_SERVER['REQUEST_URL']));
$current_url = $clean_url . (strpos($clean_url, '?') !== false ? (in_array(substr($clean_url, -1), array(';', '?')) ? '' : ';') : '?');
$page_index = constructPageIndex($current_url . 'news' . $id . '=%1$d', $start, $limit, $per_page, true);
}
$request = $smcFunc['db_query']('', '
SELECT
m.icon, m.subject, m.body, IFNULL(mem.real_name, m.poster_name) AS poster_name, m.poster_time,
t.num_replies, t.id_topic, m.id_member, m.smileys_enabled, m.id_msg, t.locked, mem.avatar,
a.id_attach, a.attachment_type, a.filename, t.num_views
FROM {db_prefix}topics AS t
INNER JOIN {db_prefix}messages AS m ON (m.id_msg = t.id_first_msg)
LEFT JOIN {db_prefix}members AS mem ON (mem.id_member = m.id_member)
LEFT JOIN {db_prefix}attachments AS a ON (a.id_member = mem.id_member)
WHERE t.id_first_msg IN ({array_int:post_list})
ORDER BY t.id_first_msg DESC
LIMIT ' . (!empty($per_page) ? '{int:start}, ' : '') . '{int:limit}',
array(
'post_list' => $posts,
'start' => $start,
'limit' => !empty($per_page) ? $per_page : $limit,
)
);
$return = array();
$colorids = array();
while ($row = $smcFunc['db_fetch_assoc']($request))
{
$limited = false;
if (($cutoff = $smcFunc['strpos']($row['body'], '[cutoff]')) !== false)
{
$row['body'] = $smcFunc['substr']($row['body'], 0, $cutoff);
$limited = true;
}
elseif (!empty($length) && $smcFunc['strlen']($row['body']) > $length)
{
$row['body'] = $smcFunc['substr']($row['body'], 0, $length);
$limited = true;
}
$row['body'] = parse_bbc($row['body'], $row['smileys_enabled'], $row['id_msg']);
// Only place an ellipsis if the body has been shortened.
if ($limited)
$row['body'] .= '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0" title="' . $row['subject'] . '">...</a>';
if ($modSettings['avatar_action_too_large'] == 'option_html_resize' || $modSettings['avatar_action_too_large'] == 'option_js_resize')
{
$avatar_width = !empty($modSettings['avatar_max_width_external']) ? ' width="' . $modSettings['avatar_max_width_external'] . '"' : '';
$avatar_height = !empty($modSettings['avatar_max_height_external']) ? ' height="' . $modSettings['avatar_max_height_external'] . '"' : '';
}
else
{
$avatar_width = '';
$avatar_height = '';
}
if (empty($modSettings['messageIconChecks_disable']) && !isset($icon_sources[$row['icon']]))
$icon_sources[$row['icon']] = file_exists($settings['theme_dir'] . '/images/post/' . $row['icon'] . '.gif') ? 'images_url' : 'default_images_url';
censorText($row['subject']);
censorText($row['body']);
if ($modSettings['sp_resize_images'])
$row['body'] = preg_replace('~class="bbc_img~i', 'class="bbc_img sp_article', $row['body']);
if (!empty($row['id_member']))
$colorids[$row['id_member']] = $row['id_member'];
$return[] = array(
'id' => $row['id_topic'],
'message_id' => $row['id_msg'],
'icon' => '<img src="' . $settings[$icon_sources[$row['icon']]] . '/post/' . $row['icon'] . '.gif" align="middle" alt="' . $row['icon'] . '" border="0" />',
'subject' => $row['subject'],
'time' => timeformat($row['poster_time']),
'views' => $row['num_views'],
'body' => $row['body'],
'href' => $scripturl . '?topic=' . $row['id_topic'] . '.0',
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">' . $txt['sp-read_more'] . '</a>',
'replies' => $row['num_replies'],
'comment_href' => !empty($row['locked']) ? '' : $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'],
'comment_link' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'new_comment' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'poster' => array(
'id' => $row['id_member'],
'name' => $row['poster_name'],
'href' => !empty($row['id_member']) ? $scripturl . '?action=profile;u=' . $row['id_member'] : '',
'link' => !empty($row['id_member']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['poster_name'] . '</a>' : $row['poster_name']
),
'locked' => !empty($row['locked']),
'is_last' => false,
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);
}
$smcFunc['db_free_result']($request);
if (empty($return))
{
echo '
', $txt['error_sp_no_posts_found'];
return;
}
$return[count($return) - 1]['is_last'] = true;
if (!empty($colorids) && sp_loadColors($colorids) !== false)
{
foreach ($return as $k => $p)
{
if (!empty($color_profile[$p['poster']['id']]['link']))
$return[$k]['poster']['link'] = $color_profile[$p['poster']['id']]['link'];
}
}
if ($context['SPortal']['core_compat'])
{
foreach ($return as $news)
{
echo '
<div class="sp_article_content">
<div class="', !empty($style['no_body']) ? '' : ' tborder', '">
<table class="sp_block">';
if (empty($style['no_title']))
{
echo '
<tr>
<td class="sp_middle ', $style['title']['class'], '"', !empty($style['title']['style']) ? ' style="' . $style['title']['style'] . '"' : '', '>', $news['icon'], '</td>
<td class="sp_middle sp_regular_padding sp_fullwidth ', $style['title']['class'], '"', !empty($style['title']['style']) ? ' style="' . $style['title']['style'] . '"' : '', '><a href="', $news['href'], '">', $news['subject'], '</a></td>
</tr>';
}
echo '
<tr>
<td class="sp_block_padding', empty($style['body']['class']) ? '' : ' ' . $style['body']['class'], '"', !empty($style['body']['style']) ? ' style="' . $style['body']['style'] . '"' : '', ' colspan="2">';
if ($avatars && $news['avatar']['name'] !== null && !empty($news['avatar']['href']))
echo '
<a href="', $scripturl, '?action=profile;u=', $news['poster']['id'], '"><img src="', $news['avatar']['href'], '" alt="', $news['poster']['name'], '" width="30" style="float: right;" /></a>
<div class="middletext">', $news['time'], ' ', $txt['by'], ' ', $news['poster']['link'], '<br />', $txt['sp-articlesViews'], ': ', $news['views'], ' | ', $txt['sp-articlesComments'], ': ', $news['replies'], '</div>';
else
echo '
<div class="middletext">', $news['time'], ' ', $txt['by'], ' ', $news['poster']['link'], ' | ', $txt['sp-articlesViews'], ': ', $news['views'], ' | ', $txt['sp-articlesComments'], ': ', $news['replies'], '</div>';
echo '
<div class="post"><hr />', $news['body'], '<br /><br /></div>
<div class="sp_right ">', $news['link'], ' ', $news['new_comment'], '</div>
</td>
</tr>
</table>
</div>
</div>';
}
}
else
{
foreach ($return as $key => $news)
{
if ($key % 2 == 0)
echo '
<div>
<div class="sp_article_content" style="display: inline !important;width: ' . $width . ';float: left;padding-right: 1em;">';
else
echo '
<div class="sp_article_content" style="display: inline !important;width: ' . $width . ';float: right;padding-left: 1em;">';
if (empty($style['no_title']))
{
echo '
<div class="', in_array($style['title']['class'], array('titlebg', 'titlebg2')) ? 'title_bar' : 'cat_bar', '"', !empty($style['title']['style']) ? ' style="' . $style['title']['style'] . '"' : '', '>
<h3 class="', $style['title']['class'], '">
<span class="sp_float_left sp_article_icon">', $news['icon'], '</span><a href="', $news['href'], '" >', $news['subject'], '</a>
</h3>
</div>';
}
if (strpos($style['body']['class'], 'roundframe') !== false)
{
echo '
<span class="upperframe"><span></span></span>';
}
echo '
<div', empty($style['body']['class']) ? '' : ' class="' . $style['body']['class'] . '"', '>';
if (empty($style['no_body']))
{
echo '
<span class="topslice"><span></span></span>';
}
echo '
<div class="sp_content_padding"', !empty($style['body']['style']) ? ' style="' . $style['body']['style'] . '"' : '', '>';
if ($avatars && $news['avatar']['name'] !== null && !empty($news['avatar']['href']))
echo '
<a href="', $scripturl, '?action=profile;u=', $news['poster']['id'], '"><img src="', $news['avatar']['href'], '" alt="', $news['poster']['name'], '" width="30" class="sp_float_right" /></a>
<div class="middletext">', $news['time'], ' ', $txt['by'], ' ', $news['poster']['link'], '<br />', $txt['sp-articlesViews'], ': ', $news['views'], ' | ', $txt['sp-articlesComments'], ': ', $news['replies'], '</div>';
else
echo '
<div class="middletext">', $news['time'], ' ', $txt['by'], ' ', $news['poster']['link'], ' | ', $txt['sp-articlesViews'], ': ', $news['views'], ' | ', $txt['sp-articlesComments'], ': ', $news['replies'], '</div>';
echo '
<div class="post"><hr />', $news['body'], '</div>
<div class="sp_right">', $news['link'], ' ', $news['new_comment'], '</div>
</div>';
if (empty($style['no_body']))
{
echo '
<span class="botslice"><span></span></span>';
}
echo '
</div>';
if (strpos($style['body']['class'], 'roundframe') !== false)
{
echo '
<span class="lowerframe"><span></span></span>';
}
echo '
</div>';
if ($key % 2 == 0)
echo '
</div>';
}
}
echo !empty($return) && count($return) % 2 == 0 ? '
</div>' : '';
if (!empty($per_page))
echo '
<div class="sp_page_index">', $txt['sp-articlesPages'], ': ', $page_index, '</div>';
}
Quote from: Chen Zhen on October 25, 2020, 09:32:45 PM
Use notepad++ ( not ms notepad ) or another file editor that handles unix line endings properly.
file: ../Sources/PortalBlocks.php
only replace the one function I am including below inside that file.
function to replace: sp_boardNews()Code Select
function sp_boardNews($parameters, $id, $return_parameters = false)
{
global $scripturl, $txt, $settings, $modSettings, $context, $smcFunc, $color_profile;
$width = '49%';
$block_parameters = array(
'board' => 'boards',
'limit' => 'int',
'start' => 'int',
'length' => 'int',
'avatar' => 'check',
'per_page' => 'int',
);
if ($return_parameters)
return $block_parameters;
$board = !empty($parameters['board']) ? explode('|', $parameters['board']) : null;
$limit = !empty($parameters['limit']) ? (int) $parameters['limit'] : 5;
$start = !empty($parameters['start']) ? (int) $parameters['start'] : 0;
$length = isset($parameters['length']) ? (int) $parameters['length'] : 250;
$avatars = !empty($parameters['avatar']);
$per_page = !empty($parameters['per_page']) ? (int) $parameters['per_page'] : 0;
$style = !empty($parameters['style']) ? $parameters['style'] : sportal_parse_style('explode', '', true);
$limit = max(0, $limit);
$start = max(0, $start);
loadLanguage('Stats');
$stable_icons = array('xx', 'thumbup', 'thumbdown', 'exclamation', 'question', 'lamp', 'smiley', 'angry', 'cheesy', 'grin', 'sad', 'wink', 'moved', 'recycled', 'wireless');
$icon_sources = array();
foreach ($stable_icons as $icon)
$icon_sources[$icon] = 'images_url';
$request = $smcFunc['db_query']('', '
SELECT t.id_first_msg
FROM {db_prefix}topics AS t
INNER JOIN {db_prefix}boards AS b ON (b.id_board = t.id_board)
INNER JOIN {db_prefix}messages AS m ON (m.id_msg = t.id_first_msg)
WHERE {query_see_board}
AND ' . (empty($board) ? 't.id_first_msg >= {int:min_msg_id}' : 't.id_board IN ({array_int:current_board})') . ($modSettings['postmod_active'] ? '
AND t.approved = {int:is_approved}' : '') . '
AND (t.locked != {int:locked} OR m.icon != {string:icon})
ORDER BY t.id_first_msg DESC
LIMIT {int:limit}',
array(
'current_board' => $board,
'min_msg_id' => $modSettings['maxMsgID'] - 45 * min($limit, 5),
'is_approved' => 1,
'locked' => 1,
'icon' => 'moved',
'limit' => $limit,
)
);
$posts = array();
while ($row = $smcFunc['db_fetch_assoc']($request))
$posts[] = $row['id_first_msg'];
$smcFunc['db_free_result']($request);
if (empty($posts))
{
echo '
', $txt['error_sp_no_posts_found'];
return;
}
elseif (!empty($per_page))
{
$limit = count($posts);
$start = !empty($_REQUEST['news' . $id]) ? (int) $_REQUEST['news' . $id] : 0;
$clean_url = str_replace('%', '%%', preg_replace('~news' . $id . '=[^;]+;?~', '', $_SERVER['REQUEST_URL']));
$current_url = $clean_url . (strpos($clean_url, '?') !== false ? (in_array(substr($clean_url, -1), array(';', '?')) ? '' : ';') : '?');
$page_index = constructPageIndex($current_url . 'news' . $id . '=%1$d', $start, $limit, $per_page, true);
}
$request = $smcFunc['db_query']('', '
SELECT
m.icon, m.subject, m.body, IFNULL(mem.real_name, m.poster_name) AS poster_name, m.poster_time,
t.num_replies, t.id_topic, m.id_member, m.smileys_enabled, m.id_msg, t.locked, mem.avatar,
a.id_attach, a.attachment_type, a.filename, t.num_views
FROM {db_prefix}topics AS t
INNER JOIN {db_prefix}messages AS m ON (m.id_msg = t.id_first_msg)
LEFT JOIN {db_prefix}members AS mem ON (mem.id_member = m.id_member)
LEFT JOIN {db_prefix}attachments AS a ON (a.id_member = mem.id_member)
WHERE t.id_first_msg IN ({array_int:post_list})
ORDER BY t.id_first_msg DESC
LIMIT ' . (!empty($per_page) ? '{int:start}, ' : '') . '{int:limit}',
array(
'post_list' => $posts,
'start' => $start,
'limit' => !empty($per_page) ? $per_page : $limit,
)
);
$return = array();
$colorids = array();
while ($row = $smcFunc['db_fetch_assoc']($request))
{
$limited = false;
if (($cutoff = $smcFunc['strpos']($row['body'], '[cutoff]')) !== false)
{
$row['body'] = $smcFunc['substr']($row['body'], 0, $cutoff);
$limited = true;
}
elseif (!empty($length) && $smcFunc['strlen']($row['body']) > $length)
{
$row['body'] = $smcFunc['substr']($row['body'], 0, $length);
$limited = true;
}
$row['body'] = parse_bbc($row['body'], $row['smileys_enabled'], $row['id_msg']);
// Only place an ellipsis if the body has been shortened.
if ($limited)
$row['body'] .= '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0" title="' . $row['subject'] . '">...</a>';
if ($modSettings['avatar_action_too_large'] == 'option_html_resize' || $modSettings['avatar_action_too_large'] == 'option_js_resize')
{
$avatar_width = !empty($modSettings['avatar_max_width_external']) ? ' width="' . $modSettings['avatar_max_width_external'] . '"' : '';
$avatar_height = !empty($modSettings['avatar_max_height_external']) ? ' height="' . $modSettings['avatar_max_height_external'] . '"' : '';
}
else
{
$avatar_width = '';
$avatar_height = '';
}
if (empty($modSettings['messageIconChecks_disable']) && !isset($icon_sources[$row['icon']]))
$icon_sources[$row['icon']] = file_exists($settings['theme_dir'] . '/images/post/' . $row['icon'] . '.gif') ? 'images_url' : 'default_images_url';
censorText($row['subject']);
censorText($row['body']);
if ($modSettings['sp_resize_images'])
$row['body'] = preg_replace('~class="bbc_img~i', 'class="bbc_img sp_article', $row['body']);
if (!empty($row['id_member']))
$colorids[$row['id_member']] = $row['id_member'];
$return[] = array(
'id' => $row['id_topic'],
'message_id' => $row['id_msg'],
'icon' => '<img src="' . $settings[$icon_sources[$row['icon']]] . '/post/' . $row['icon'] . '.gif" align="middle" alt="' . $row['icon'] . '" border="0" />',
'subject' => $row['subject'],
'time' => timeformat($row['poster_time']),
'views' => $row['num_views'],
'body' => $row['body'],
'href' => $scripturl . '?topic=' . $row['id_topic'] . '.0',
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">' . $txt['sp-read_more'] . '</a>',
'replies' => $row['num_replies'],
'comment_href' => !empty($row['locked']) ? '' : $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'],
'comment_link' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'new_comment' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'poster' => array(
'id' => $row['id_member'],
'name' => $row['poster_name'],
'href' => !empty($row['id_member']) ? $scripturl . '?action=profile;u=' . $row['id_member'] : '',
'link' => !empty($row['id_member']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['poster_name'] . '</a>' : $row['poster_name']
),
'locked' => !empty($row['locked']),
'is_last' => false,
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);
}
$smcFunc['db_free_result']($request);
if (empty($return))
{
echo '
', $txt['error_sp_no_posts_found'];
return;
}
$return[count($return) - 1]['is_last'] = true;
if (!empty($colorids) && sp_loadColors($colorids) !== false)
{
foreach ($return as $k => $p)
{
if (!empty($color_profile[$p['poster']['id']]['link']))
$return[$k]['poster']['link'] = $color_profile[$p['poster']['id']]['link'];
}
}
if ($context['SPortal']['core_compat'])
{
foreach ($return as $news)
{
echo '
<div class="sp_article_content">
<div class="', !empty($style['no_body']) ? '' : ' tborder', '">
<table class="sp_block">';
if (empty($style['no_title']))
{
echo '
<tr>
<td class="sp_middle ', $style['title']['class'], '"', !empty($style['title']['style']) ? ' style="' . $style['title']['style'] . '"' : '', '>', $news['icon'], '</td>
<td class="sp_middle sp_regular_padding sp_fullwidth ', $style['title']['class'], '"', !empty($style['title']['style']) ? ' style="' . $style['title']['style'] . '"' : '', '><a href="', $news['href'], '">', $news['subject'], '</a></td>
</tr>';
}
echo '
<tr>
<td class="sp_block_padding', empty($style['body']['class']) ? '' : ' ' . $style['body']['class'], '"', !empty($style['body']['style']) ? ' style="' . $style['body']['style'] . '"' : '', ' colspan="2">';
if ($avatars && $news['avatar']['name'] !== null && !empty($news['avatar']['href']))
echo '
<a href="', $scripturl, '?action=profile;u=', $news['poster']['id'], '"><img src="', $news['avatar']['href'], '" alt="', $news['poster']['name'], '" width="30" style="float: right;" /></a>
<div class="middletext">', $news['time'], ' ', $txt['by'], ' ', $news['poster']['link'], '<br />', $txt['sp-articlesViews'], ': ', $news['views'], ' | ', $txt['sp-articlesComments'], ': ', $news['replies'], '</div>';
else
echo '
<div class="middletext">', $news['time'], ' ', $txt['by'], ' ', $news['poster']['link'], ' | ', $txt['sp-articlesViews'], ': ', $news['views'], ' | ', $txt['sp-articlesComments'], ': ', $news['replies'], '</div>';
echo '
<div class="post"><hr />', $news['body'], '<br /><br /></div>
<div class="sp_right ">', $news['link'], ' ', $news['new_comment'], '</div>
</td>
</tr>
</table>
</div>
</div>';
}
}
else
{
foreach ($return as $key => $news)
{
if ($key % 2 == 0)
echo '
<div>
<div class="sp_article_content" style="display: inline !important;width: ' . $width . ';float: left;padding-right: 1em;">';
else
echo '
<div class="sp_article_content" style="display: inline !important;width: ' . $width . ';float: right;padding-left: 1em;">';
if (empty($style['no_title']))
{
echo '
<div class="', in_array($style['title']['class'], array('titlebg', 'titlebg2')) ? 'title_bar' : 'cat_bar', '"', !empty($style['title']['style']) ? ' style="' . $style['title']['style'] . '"' : '', '>
<h3 class="', $style['title']['class'], '">
<span class="sp_float_left sp_article_icon">', $news['icon'], '</span><a href="', $news['href'], '" >', $news['subject'], '</a>
</h3>
</div>';
}
if (strpos($style['body']['class'], 'roundframe') !== false)
{
echo '
<span class="upperframe"><span></span></span>';
}
echo '
<div', empty($style['body']['class']) ? '' : ' class="' . $style['body']['class'] . '"', '>';
if (empty($style['no_body']))
{
echo '
<span class="topslice"><span></span></span>';
}
echo '
<div class="sp_content_padding"', !empty($style['body']['style']) ? ' style="' . $style['body']['style'] . '"' : '', '>';
if ($avatars && $news['avatar']['name'] !== null && !empty($news['avatar']['href']))
echo '
<a href="', $scripturl, '?action=profile;u=', $news['poster']['id'], '"><img src="', $news['avatar']['href'], '" alt="', $news['poster']['name'], '" width="30" class="sp_float_right" /></a>
<div class="middletext">', $news['time'], ' ', $txt['by'], ' ', $news['poster']['link'], '<br />', $txt['sp-articlesViews'], ': ', $news['views'], ' | ', $txt['sp-articlesComments'], ': ', $news['replies'], '</div>';
else
echo '
<div class="middletext">', $news['time'], ' ', $txt['by'], ' ', $news['poster']['link'], ' | ', $txt['sp-articlesViews'], ': ', $news['views'], ' | ', $txt['sp-articlesComments'], ': ', $news['replies'], '</div>';
echo '
<div class="post"><hr />', $news['body'], '</div>
<div class="sp_right">', $news['link'], ' ', $news['new_comment'], '</div>
</div>';
if (empty($style['no_body']))
{
echo '
<span class="botslice"><span></span></span>';
}
echo '
</div>';
if (strpos($style['body']['class'], 'roundframe') !== false)
{
echo '
<span class="lowerframe"><span></span></span>';
}
echo '
</div>';
if ($key % 2 == 0)
echo '
</div>';
}
}
echo !empty($return) && count($return) % 2 == 0 ? '
</div>' : '';
if (!empty($per_page))
echo '
<div class="sp_page_index">', $txt['sp-articlesPages'], ': ', $page_index, '</div>';
}
You can change the $width variable at the onset of the function to ie. 49.5% if you want them a bit closer together.
Quote from: Chen Zhen on October 25, 2020, 09:32:45 PM
Use notepad++ ( not ms notepad ) or another file editor that handles unix line endings properly.
file: ../Sources/PortalBlocks.php
only replace the one function I am including below inside that file.
function to replace: sp_boardNews()Code Select
function sp_boardNews($parameters, $id, $return_parameters = false)
{
global $scripturl, $txt, $settings, $modSettings, $context, $smcFunc, $color_profile;
$width = '49%';
$block_parameters = array(
'board' => 'boards',
'limit' => 'int',
'start' => 'int',
'length' => 'int',
'avatar' => 'check',
'per_page' => 'int',
);
if ($return_parameters)
return $block_parameters;
$board = !empty($parameters['board']) ? explode('|', $parameters['board']) : null;
$limit = !empty($parameters['limit']) ? (int) $parameters['limit'] : 5;
$start = !empty($parameters['start']) ? (int) $parameters['start'] : 0;
$length = isset($parameters['length']) ? (int) $parameters['length'] : 250;
$avatars = !empty($parameters['avatar']);
$per_page = !empty($parameters['per_page']) ? (int) $parameters['per_page'] : 0;
$style = !empty($parameters['style']) ? $parameters['style'] : sportal_parse_style('explode', '', true);
$limit = max(0, $limit);
$start = max(0, $start);
loadLanguage('Stats');
$stable_icons = array('xx', 'thumbup', 'thumbdown', 'exclamation', 'question', 'lamp', 'smiley', 'angry', 'cheesy', 'grin', 'sad', 'wink', 'moved', 'recycled', 'wireless');
$icon_sources = array();
foreach ($stable_icons as $icon)
$icon_sources[$icon] = 'images_url';
$request = $smcFunc['db_query']('', '
SELECT t.id_first_msg
FROM {db_prefix}topics AS t
INNER JOIN {db_prefix}boards AS b ON (b.id_board = t.id_board)
INNER JOIN {db_prefix}messages AS m ON (m.id_msg = t.id_first_msg)
WHERE {query_see_board}
AND ' . (empty($board) ? 't.id_first_msg >= {int:min_msg_id}' : 't.id_board IN ({array_int:current_board})') . ($modSettings['postmod_active'] ? '
AND t.approved = {int:is_approved}' : '') . '
AND (t.locked != {int:locked} OR m.icon != {string:icon})
ORDER BY t.id_first_msg DESC
LIMIT {int:limit}',
array(
'current_board' => $board,
'min_msg_id' => $modSettings['maxMsgID'] - 45 * min($limit, 5),
'is_approved' => 1,
'locked' => 1,
'icon' => 'moved',
'limit' => $limit,
)
);
$posts = array();
while ($row = $smcFunc['db_fetch_assoc']($request))
$posts[] = $row['id_first_msg'];
$smcFunc['db_free_result']($request);
if (empty($posts))
{
echo '
', $txt['error_sp_no_posts_found'];
return;
}
elseif (!empty($per_page))
{
$limit = count($posts);
$start = !empty($_REQUEST['news' . $id]) ? (int) $_REQUEST['news' . $id] : 0;
$clean_url = str_replace('%', '%%', preg_replace('~news' . $id . '=[^;]+;?~', '', $_SERVER['REQUEST_URL']));
$current_url = $clean_url . (strpos($clean_url, '?') !== false ? (in_array(substr($clean_url, -1), array(';', '?')) ? '' : ';') : '?');
$page_index = constructPageIndex($current_url . 'news' . $id . '=%1$d', $start, $limit, $per_page, true);
}
$request = $smcFunc['db_query']('', '
SELECT
m.icon, m.subject, m.body, IFNULL(mem.real_name, m.poster_name) AS poster_name, m.poster_time,
t.num_replies, t.id_topic, m.id_member, m.smileys_enabled, m.id_msg, t.locked, mem.avatar,
a.id_attach, a.attachment_type, a.filename, t.num_views
FROM {db_prefix}topics AS t
INNER JOIN {db_prefix}messages AS m ON (m.id_msg = t.id_first_msg)
LEFT JOIN {db_prefix}members AS mem ON (mem.id_member = m.id_member)
LEFT JOIN {db_prefix}attachments AS a ON (a.id_member = mem.id_member)
WHERE t.id_first_msg IN ({array_int:post_list})
ORDER BY t.id_first_msg DESC
LIMIT ' . (!empty($per_page) ? '{int:start}, ' : '') . '{int:limit}',
array(
'post_list' => $posts,
'start' => $start,
'limit' => !empty($per_page) ? $per_page : $limit,
)
);
$return = array();
$colorids = array();
while ($row = $smcFunc['db_fetch_assoc']($request))
{
$limited = false;
if (($cutoff = $smcFunc['strpos']($row['body'], '[cutoff]')) !== false)
{
$row['body'] = $smcFunc['substr']($row['body'], 0, $cutoff);
$limited = true;
}
elseif (!empty($length) && $smcFunc['strlen']($row['body']) > $length)
{
$row['body'] = $smcFunc['substr']($row['body'], 0, $length);
$limited = true;
}
$row['body'] = parse_bbc($row['body'], $row['smileys_enabled'], $row['id_msg']);
// Only place an ellipsis if the body has been shortened.
if ($limited)
$row['body'] .= '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0" title="' . $row['subject'] . '">...</a>';
if ($modSettings['avatar_action_too_large'] == 'option_html_resize' || $modSettings['avatar_action_too_large'] == 'option_js_resize')
{
$avatar_width = !empty($modSettings['avatar_max_width_external']) ? ' width="' . $modSettings['avatar_max_width_external'] . '"' : '';
$avatar_height = !empty($modSettings['avatar_max_height_external']) ? ' height="' . $modSettings['avatar_max_height_external'] . '"' : '';
}
else
{
$avatar_width = '';
$avatar_height = '';
}
if (empty($modSettings['messageIconChecks_disable']) && !isset($icon_sources[$row['icon']]))
$icon_sources[$row['icon']] = file_exists($settings['theme_dir'] . '/images/post/' . $row['icon'] . '.gif') ? 'images_url' : 'default_images_url';
censorText($row['subject']);
censorText($row['body']);
if ($modSettings['sp_resize_images'])
$row['body'] = preg_replace('~class="bbc_img~i', 'class="bbc_img sp_article', $row['body']);
if (!empty($row['id_member']))
$colorids[$row['id_member']] = $row['id_member'];
$return[] = array(
'id' => $row['id_topic'],
'message_id' => $row['id_msg'],
'icon' => '<img src="' . $settings[$icon_sources[$row['icon']]] . '/post/' . $row['icon'] . '.gif" align="middle" alt="' . $row['icon'] . '" border="0" />',
'subject' => $row['subject'],
'time' => timeformat($row['poster_time']),
'views' => $row['num_views'],
'body' => $row['body'],
'href' => $scripturl . '?topic=' . $row['id_topic'] . '.0',
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">' . $txt['sp-read_more'] . '</a>',
'replies' => $row['num_replies'],
'comment_href' => !empty($row['locked']) ? '' : $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'],
'comment_link' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'new_comment' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'poster' => array(
'id' => $row['id_member'],
'name' => $row['poster_name'],
'href' => !empty($row['id_member']) ? $scripturl . '?action=profile;u=' . $row['id_member'] : '',
'link' => !empty($row['id_member']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['poster_name'] . '</a>' : $row['poster_name']
),
'locked' => !empty($row['locked']),
'is_last' => false,
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);
}
$smcFunc['db_free_result']($request);
if (empty($return))
{
echo '
', $txt['error_sp_no_posts_found'];
return;
}
$return[count($return) - 1]['is_last'] = true;
if (!empty($colorids) && sp_loadColors($colorids) !== false)
{
foreach ($return as $k => $p)
{
if (!empty($color_profile[$p['poster']['id']]['link']))
$return[$k]['poster']['link'] = $color_profile[$p['poster']['id']]['link'];
}
}
if ($context['SPortal']['core_compat'])
{
foreach ($return as $news)
{
echo '
<div class="sp_article_content">
<div class="', !empty($style['no_body']) ? '' : ' tborder', '">
<table class="sp_block">';
if (empty($style['no_title']))
{
echo '
<tr>
<td class="sp_middle ', $style['title']['class'], '"', !empty($style['title']['style']) ? ' style="' . $style['title']['style'] . '"' : '', '>', $news['icon'], '</td>
<td class="sp_middle sp_regular_padding sp_fullwidth ', $style['title']['class'], '"', !empty($style['title']['style']) ? ' style="' . $style['title']['style'] . '"' : '', '><a href="', $news['href'], '">', $news['subject'], '</a></td>
</tr>';
}
echo '
<tr>
<td class="sp_block_padding', empty($style['body']['class']) ? '' : ' ' . $style['body']['class'], '"', !empty($style['body']['style']) ? ' style="' . $style['body']['style'] . '"' : '', ' colspan="2">';
if ($avatars && $news['avatar']['name'] !== null && !empty($news['avatar']['href']))
echo '
<a href="', $scripturl, '?action=profile;u=', $news['poster']['id'], '"><img src="', $news['avatar']['href'], '" alt="', $news['poster']['name'], '" width="30" style="float: right;" /></a>
<div class="middletext">', $news['time'], ' ', $txt['by'], ' ', $news['poster']['link'], '<br />', $txt['sp-articlesViews'], ': ', $news['views'], ' | ', $txt['sp-articlesComments'], ': ', $news['replies'], '</div>';
else
echo '
<div class="middletext">', $news['time'], ' ', $txt['by'], ' ', $news['poster']['link'], ' | ', $txt['sp-articlesViews'], ': ', $news['views'], ' | ', $txt['sp-articlesComments'], ': ', $news['replies'], '</div>';
echo '
<div class="post"><hr />', $news['body'], '<br /><br /></div>
<div class="sp_right ">', $news['link'], ' ', $news['new_comment'], '</div>
</td>
</tr>
</table>
</div>
</div>';
}
}
else
{
foreach ($return as $key => $news)
{
if ($key % 2 == 0)
echo '
<div>
<div class="sp_article_content" style="display: inline !important;width: ' . $width . ';float: left;padding-right: 1em;">';
else
echo '
<div class="sp_article_content" style="display: inline !important;width: ' . $width . ';float: right;padding-left: 1em;">';
if (empty($style['no_title']))
{
echo '
<div class="', in_array($style['title']['class'], array('titlebg', 'titlebg2')) ? 'title_bar' : 'cat_bar', '"', !empty($style['title']['style']) ? ' style="' . $style['title']['style'] . '"' : '', '>
<h3 class="', $style['title']['class'], '">
<span class="sp_float_left sp_article_icon">', $news['icon'], '</span><a href="', $news['href'], '" >', $news['subject'], '</a>
</h3>
</div>';
}
if (strpos($style['body']['class'], 'roundframe') !== false)
{
echo '
<span class="upperframe"><span></span></span>';
}
echo '
<div', empty($style['body']['class']) ? '' : ' class="' . $style['body']['class'] . '"', '>';
if (empty($style['no_body']))
{
echo '
<span class="topslice"><span></span></span>';
}
echo '
<div class="sp_content_padding"', !empty($style['body']['style']) ? ' style="' . $style['body']['style'] . '"' : '', '>';
if ($avatars && $news['avatar']['name'] !== null && !empty($news['avatar']['href']))
echo '
<a href="', $scripturl, '?action=profile;u=', $news['poster']['id'], '"><img src="', $news['avatar']['href'], '" alt="', $news['poster']['name'], '" width="30" class="sp_float_right" /></a>
<div class="middletext">', $news['time'], ' ', $txt['by'], ' ', $news['poster']['link'], '<br />', $txt['sp-articlesViews'], ': ', $news['views'], ' | ', $txt['sp-articlesComments'], ': ', $news['replies'], '</div>';
else
echo '
<div class="middletext">', $news['time'], ' ', $txt['by'], ' ', $news['poster']['link'], ' | ', $txt['sp-articlesViews'], ': ', $news['views'], ' | ', $txt['sp-articlesComments'], ': ', $news['replies'], '</div>';
echo '
<div class="post"><hr />', $news['body'], '</div>
<div class="sp_right">', $news['link'], ' ', $news['new_comment'], '</div>
</div>';
if (empty($style['no_body']))
{
echo '
<span class="botslice"><span></span></span>';
}
echo '
</div>';
if (strpos($style['body']['class'], 'roundframe') !== false)
{
echo '
<span class="lowerframe"><span></span></span>';
}
echo '
</div>';
if ($key % 2 == 0)
echo '
</div>';
}
}
echo !empty($return) && count($return) % 2 == 0 ? '
</div>' : '';
if (!empty($per_page))
echo '
<div class="sp_page_index">', $txt['sp-articlesPages'], ': ', $page_index, '</div>';
}
You can change the $width variable at the onset of the function to ie. 49.5% if you want them a bit closer together.
function sp_boardNews($parameters, $id, $return_parameters = false)
{
global $scripturl, $txt, $settings, $modSettings, $context, $smcFunc, $color_profile;
$width = '48%';
$block_parameters = array(
'board' => 'boards',
'limit' => 'int',
'start' => 'int',
'length' => 'int',
'avatar' => 'check',
'per_page' => 'int',
);
if ($return_parameters)
return $block_parameters;
$board = !empty($parameters['board']) ? explode('|', $parameters['board']) : null;
$limit = !empty($parameters['limit']) ? (int) $parameters['limit'] : 5;
$start = !empty($parameters['start']) ? (int) $parameters['start'] : 0;
$length = isset($parameters['length']) ? (int) $parameters['length'] : 250;
$avatars = !empty($parameters['avatar']);
$per_page = !empty($parameters['per_page']) ? (int) $parameters['per_page'] : 0;
$style = !empty($parameters['style']) ? $parameters['style'] : sportal_parse_style('explode', '', true);
$limit = max(0, $limit);
$start = max(0, $start);
loadLanguage('Stats');
$stable_icons = array('xx', 'thumbup', 'thumbdown', 'exclamation', 'question', 'lamp', 'smiley', 'angry', 'cheesy', 'grin', 'sad', 'wink', 'moved', 'recycled', 'wireless');
$icon_sources = array();
foreach ($stable_icons as $icon)
$icon_sources[$icon] = 'images_url';
$request = $smcFunc['db_query']('', '
SELECT t.id_first_msg
FROM {db_prefix}topics AS t
INNER JOIN {db_prefix}boards AS b ON (b.id_board = t.id_board)
INNER JOIN {db_prefix}messages AS m ON (m.id_msg = t.id_first_msg)
WHERE {query_see_board}
AND ' . (empty($board) ? 't.id_first_msg >= {int:min_msg_id}' : 't.id_board IN ({array_int:current_board})') . ($modSettings['postmod_active'] ? '
AND t.approved = {int:is_approved}' : '') . '
AND (t.locked != {int:locked} OR m.icon != {string:icon})
ORDER BY t.id_first_msg DESC
LIMIT {int:limit}',
array(
'current_board' => $board,
'min_msg_id' => $modSettings['maxMsgID'] - 45 * min($limit, 5),
'is_approved' => 1,
'locked' => 1,
'icon' => 'moved',
'limit' => $limit,
)
);
$posts = array();
while ($row = $smcFunc['db_fetch_assoc']($request))
$posts[] = $row['id_first_msg'];
$smcFunc['db_free_result']($request);
if (empty($posts))
{
echo '
', $txt['error_sp_no_posts_found'];
return;
}
elseif (!empty($per_page))
{
$limit = count($posts);
$start = !empty($_REQUEST['news' . $id]) ? (int) $_REQUEST['news' . $id] : 0;
$clean_url = str_replace('%', '%%', preg_replace('~news' . $id . '=[^;]+;?~', '', $_SERVER['REQUEST_URL']));
$current_url = $clean_url . (strpos($clean_url, '?') !== false ? (in_array(substr($clean_url, -1), array(';', '?')) ? '' : ';') : '?');
$page_index = constructPageIndex($current_url . 'news' . $id . '=%1$d', $start, $limit, $per_page, true);
}
$request = $smcFunc['db_query']('', '
SELECT
m.icon, m.subject, m.body, IFNULL(mem.real_name, m.poster_name) AS poster_name, m.poster_time,
t.num_replies, t.id_topic, m.id_member, m.smileys_enabled, m.id_msg, t.locked, mem.avatar,
a.id_attach, a.attachment_type, a.filename, t.num_views
FROM {db_prefix}topics AS t
INNER JOIN {db_prefix}messages AS m ON (m.id_msg = t.id_first_msg)
LEFT JOIN {db_prefix}members AS mem ON (mem.id_member = m.id_member)
LEFT JOIN {db_prefix}attachments AS a ON (a.id_member = mem.id_member)
WHERE t.id_first_msg IN ({array_int:post_list})
ORDER BY t.id_first_msg DESC
LIMIT ' . (!empty($per_page) ? '{int:start}, ' : '') . '{int:limit}',
array(
'post_list' => $posts,
'start' => $start,
'limit' => !empty($per_page) ? $per_page : $limit,
)
);
$return = array();
$colorids = array();
while ($row = $smcFunc['db_fetch_assoc']($request))
{
$limited = false;
if (($cutoff = $smcFunc['strpos']($row['body'], '[cutoff]')) !== false)
{
$row['body'] = $smcFunc['substr']($row['body'], 0, $cutoff);
$limited = true;
}
elseif (!empty($length) && $smcFunc['strlen']($row['body']) > $length)
{
$row['body'] = $smcFunc['substr']($row['body'], 0, $length);
$limited = true;
}
$row['body'] = parse_bbc($row['body'], $row['smileys_enabled'], $row['id_msg']);
// Only place an ellipsis if the body has been shortened.
if ($limited)
$row['body'] .= '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0" title="' . $row['subject'] . '">...</a>';
if ($modSettings['avatar_action_too_large'] == 'option_html_resize' || $modSettings['avatar_action_too_large'] == 'option_js_resize')
{
$avatar_width = !empty($modSettings['avatar_max_width_external']) ? ' width="' . $modSettings['avatar_max_width_external'] . '"' : '';
$avatar_height = !empty($modSettings['avatar_max_height_external']) ? ' height="' . $modSettings['avatar_max_height_external'] . '"' : '';
}
else
{
$avatar_width = '';
$avatar_height = '';
}
if (empty($modSettings['messageIconChecks_disable']) && !isset($icon_sources[$row['icon']]))
$icon_sources[$row['icon']] = file_exists($settings['theme_dir'] . '/images/post/' . $row['icon'] . '.gif') ? 'images_url' : 'default_images_url';
censorText($row['subject']);
censorText($row['body']);
if ($modSettings['sp_resize_images'])
$row['body'] = preg_replace('~class="bbc_img~i', 'class="bbc_img sp_article', $row['body']);
if (!empty($row['id_member']))
$colorids[$row['id_member']] = $row['id_member'];
$return[] = array(
'id' => $row['id_topic'],
'message_id' => $row['id_msg'],
'icon' => '<img src="' . $settings[$icon_sources[$row['icon']]] . '/post/' . $row['icon'] . '.gif" align="middle" alt="' . $row['icon'] . '" border="0" />',
'subject' => $row['subject'],
'time' => timeformat($row['poster_time']),
'views' => $row['num_views'],
'body' => $row['body'],
'href' => $scripturl . '?topic=' . $row['id_topic'] . '.0',
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">' . $txt['sp-read_more'] . '</a>',
'replies' => $row['num_replies'],
'comment_href' => !empty($row['locked']) ? '' : $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'],
'comment_link' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'new_comment' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'poster' => array(
'id' => $row['id_member'],
'name' => $row['poster_name'],
'href' => !empty($row['id_member']) ? $scripturl . '?action=profile;u=' . $row['id_member'] : '',
'link' => !empty($row['id_member']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['poster_name'] . '</a>' : $row['poster_name']
),
'locked' => !empty($row['locked']),
'is_last' => false,
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);
}
$smcFunc['db_free_result']($request);
if (empty($return))
{
echo '
', $txt['error_sp_no_posts_found'];
return;
}
$return[count($return) - 1]['is_last'] = true;
if (!empty($colorids) && sp_loadColors($colorids) !== false)
{
foreach ($return as $k => $p)
{
if (!empty($color_profile[$p['poster']['id']]['link']))
$return[$k]['poster']['link'] = $color_profile[$p['poster']['id']]['link'];
}
}
if ($context['SPortal']['core_compat'])
{
foreach ($return as $key => $news)
{
if ($key % 2 == 0)
echo '
<div style="padding-top: 0.3em;">
<div style="display: inline !important;width: ' . $width . ';float: left;padding-right: 1em;">';
else
echo '
<div style="display: inline !important;width: ' . $width . ';float: right;padding-left: 1em;">';
echo '
<div class="sp_article_content">
<div class="', !empty($style['no_body']) ? '' : ' tborder', '">
<table class="sp_block">';
if (empty($style['no_title']))
{
echo '
<tr>
<td class="sp_middle ', $style['title']['class'], '"', !empty($style['title']['style']) ? ' style="' . $style['title']['style'] . '"' : '', '>', $news['icon'], '</td>
<td class="sp_middle sp_regular_padding sp_fullwidth ', $style['title']['class'], '"', !empty($style['title']['style']) ? ' style="' . $style['title']['style'] . '"' : '', '><a href="', $news['href'], '">', $news['subject'], '</a></td>
</tr>';
}
echo '
<tr>
<td class="sp_block_padding', empty($style['body']['class']) ? '' : ' ' . $style['body']['class'], '"', !empty($style['body']['style']) ? ' style="' . $style['body']['style'] . '"' : '', ' colspan="2">';
if ($avatars && $news['avatar']['name'] !== null && !empty($news['avatar']['href']))
echo '
<a href="', $scripturl, '?action=profile;u=', $news['poster']['id'], '"><img src="', $news['avatar']['href'], '" alt="', $news['poster']['name'], '" width="30" style="float: right;" /></a>
<div class="middletext">', $news['time'], ' ', $txt['by'], ' ', $news['poster']['link'], '<br />', $txt['sp-articlesViews'], ': ', $news['views'], ' | ', $txt['sp-articlesComments'], ': ', $news['replies'], '</div>';
else
echo '
<div class="middletext">', $news['time'], ' ', $txt['by'], ' ', $news['poster']['link'], ' | ', $txt['sp-articlesViews'], ': ', $news['views'], ' | ', $txt['sp-articlesComments'], ': ', $news['replies'], '</div>';
echo '
<div class="post"><hr />', $news['body'], '<br /><br /></div>
<div class="sp_right ">', $news['link'], ' ', $news['new_comment'], '</div>
</td>
</tr>
</table>
</div>
</div>';
if ($key % 2 == 0)
echo '
</div>
</div>';
else
echo '
</div>';
$lastBody = !empty($style['no_body']) ? '' : 'cla tborder';
}
echo !empty($return) && count($return) % 2 != 0 ? '
<div class="sp_block_section" style="display: inline !important;width: ' . $width . ';float: right;padding-left: 1em;">
<div class="sp_article_content">
<div>
<table class="sp_block">
<tr>
<td class="sp_block_padding" colspan="2">
</td>
</tr>
</table>
</div>
</div>
</div>
</div>' : '';
}
else
{
foreach ($return as $key => $news)
{
if ($key % 2 == 0)
echo '
<div style="padding-top: 0.3em;">
<div class="sp_article_content" style="display: inline !important;width: ' . $width . ';float: left;padding-right: 1em;">';
else
echo '
<div class="sp_article_content" style="display: inline !important;width: ' . $width . ';float: right;padding-left: 1em;">';
if (empty($style['no_title']))
{
echo '
<div class="', in_array($style['title']['class'], array('titlebg', 'titlebg2')) ? 'title_bar' : 'cat_bar', '"', !empty($style['title']['style']) ? ' style="' . $style['title']['style'] . '"' : '', '>
<h3 class="', $style['title']['class'], '">
<span class="sp_float_left sp_article_icon">', $news['icon'], '</span><a href="', $news['href'], '" >', $news['subject'], '</a>
</h3>
</div>';
}
if (strpos($style['body']['class'], 'roundframe') !== false)
{
echo '
<span class="upperframe"><span></span></span>';
}
echo '
<div', empty($style['body']['class']) ? '' : ' class="' . $style['body']['class'] . '"', '>';
if (empty($style['no_body']))
{
echo '
<span class="topslice"><span></span></span>';
}
echo '
<div class="sp_content_padding"', !empty($style['body']['style']) ? ' style="' . $style['body']['style'] . '"' : '', '>';
if ($avatars && $news['avatar']['name'] !== null && !empty($news['avatar']['href']))
echo '
<a href="', $scripturl, '?action=profile;u=', $news['poster']['id'], '"><img src="', $news['avatar']['href'], '" alt="', $news['poster']['name'], '" width="30" class="sp_float_right" /></a>
<div class="middletext">', $news['time'], ' ', $txt['by'], ' ', $news['poster']['link'], '<br />', $txt['sp-articlesViews'], ': ', $news['views'], ' | ', $txt['sp-articlesComments'], ': ', $news['replies'], '</div>';
else
echo '
<div class="middletext">', $news['time'], ' ', $txt['by'], ' ', $news['poster']['link'], ' | ', $txt['sp-articlesViews'], ': ', $news['views'], ' | ', $txt['sp-articlesComments'], ': ', $news['replies'], '</div>';
echo '
<div class="post"><hr />', $news['body'], '</div>
<div class="sp_right">', $news['link'], ' ', $news['new_comment'], '</div>
</div>';
if (empty($style['no_body']))
{
echo '
<span class="botslice"><span></span></span>';
}
echo '
</div>';
if (strpos($style['body']['class'], 'roundframe') !== false)
{
echo '
<span class="lowerframe"><span></span></span>';
}
echo '
</div>';
if ($key % 2 == 0)
echo '
</div>';
}
echo !empty($return) && count($return) % 2 != 0 ? '
</div>' : '';
}
if (!empty($per_page))
echo '
<div class="sp_page_index centertext">', $txt['sp-articlesPages'], ': ', $page_index, '</div>';
}
Quote from: Chen Zhen on October 26, 2020, 02:50:11 PM
Try the one here:Code Select
function sp_boardNews($parameters, $id, $return_parameters = false)
{
global $scripturl, $txt, $settings, $modSettings, $context, $smcFunc, $color_profile;
$width = '48%';
$block_parameters = array(
'board' => 'boards',
'limit' => 'int',
'start' => 'int',
'length' => 'int',
'avatar' => 'check',
'per_page' => 'int',
);
if ($return_parameters)
return $block_parameters;
$board = !empty($parameters['board']) ? explode('|', $parameters['board']) : null;
$limit = !empty($parameters['limit']) ? (int) $parameters['limit'] : 5;
$start = !empty($parameters['start']) ? (int) $parameters['start'] : 0;
$length = isset($parameters['length']) ? (int) $parameters['length'] : 250;
$avatars = !empty($parameters['avatar']);
$per_page = !empty($parameters['per_page']) ? (int) $parameters['per_page'] : 0;
$style = !empty($parameters['style']) ? $parameters['style'] : sportal_parse_style('explode', '', true);
$limit = max(0, $limit);
$start = max(0, $start);
loadLanguage('Stats');
$stable_icons = array('xx', 'thumbup', 'thumbdown', 'exclamation', 'question', 'lamp', 'smiley', 'angry', 'cheesy', 'grin', 'sad', 'wink', 'moved', 'recycled', 'wireless');
$icon_sources = array();
foreach ($stable_icons as $icon)
$icon_sources[$icon] = 'images_url';
$request = $smcFunc['db_query']('', '
SELECT t.id_first_msg
FROM {db_prefix}topics AS t
INNER JOIN {db_prefix}boards AS b ON (b.id_board = t.id_board)
INNER JOIN {db_prefix}messages AS m ON (m.id_msg = t.id_first_msg)
WHERE {query_see_board}
AND ' . (empty($board) ? 't.id_first_msg >= {int:min_msg_id}' : 't.id_board IN ({array_int:current_board})') . ($modSettings['postmod_active'] ? '
AND t.approved = {int:is_approved}' : '') . '
AND (t.locked != {int:locked} OR m.icon != {string:icon})
ORDER BY t.id_first_msg DESC
LIMIT {int:limit}',
array(
'current_board' => $board,
'min_msg_id' => $modSettings['maxMsgID'] - 45 * min($limit, 5),
'is_approved' => 1,
'locked' => 1,
'icon' => 'moved',
'limit' => $limit,
)
);
$posts = array();
while ($row = $smcFunc['db_fetch_assoc']($request))
$posts[] = $row['id_first_msg'];
$smcFunc['db_free_result']($request);
if (empty($posts))
{
echo '
', $txt['error_sp_no_posts_found'];
return;
}
elseif (!empty($per_page))
{
$limit = count($posts);
$start = !empty($_REQUEST['news' . $id]) ? (int) $_REQUEST['news' . $id] : 0;
$clean_url = str_replace('%', '%%', preg_replace('~news' . $id . '=[^;]+;?~', '', $_SERVER['REQUEST_URL']));
$current_url = $clean_url . (strpos($clean_url, '?') !== false ? (in_array(substr($clean_url, -1), array(';', '?')) ? '' : ';') : '?');
$page_index = constructPageIndex($current_url . 'news' . $id . '=%1$d', $start, $limit, $per_page, true);
}
$request = $smcFunc['db_query']('', '
SELECT
m.icon, m.subject, m.body, IFNULL(mem.real_name, m.poster_name) AS poster_name, m.poster_time,
t.num_replies, t.id_topic, m.id_member, m.smileys_enabled, m.id_msg, t.locked, mem.avatar,
a.id_attach, a.attachment_type, a.filename, t.num_views
FROM {db_prefix}topics AS t
INNER JOIN {db_prefix}messages AS m ON (m.id_msg = t.id_first_msg)
LEFT JOIN {db_prefix}members AS mem ON (mem.id_member = m.id_member)
LEFT JOIN {db_prefix}attachments AS a ON (a.id_member = mem.id_member)
WHERE t.id_first_msg IN ({array_int:post_list})
ORDER BY t.id_first_msg DESC
LIMIT ' . (!empty($per_page) ? '{int:start}, ' : '') . '{int:limit}',
array(
'post_list' => $posts,
'start' => $start,
'limit' => !empty($per_page) ? $per_page : $limit,
)
);
$return = array();
$colorids = array();
while ($row = $smcFunc['db_fetch_assoc']($request))
{
$limited = false;
if (($cutoff = $smcFunc['strpos']($row['body'], '[cutoff]')) !== false)
{
$row['body'] = $smcFunc['substr']($row['body'], 0, $cutoff);
$limited = true;
}
elseif (!empty($length) && $smcFunc['strlen']($row['body']) > $length)
{
$row['body'] = $smcFunc['substr']($row['body'], 0, $length);
$limited = true;
}
$row['body'] = parse_bbc($row['body'], $row['smileys_enabled'], $row['id_msg']);
// Only place an ellipsis if the body has been shortened.
if ($limited)
$row['body'] .= '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0" title="' . $row['subject'] . '">...</a>';
if ($modSettings['avatar_action_too_large'] == 'option_html_resize' || $modSettings['avatar_action_too_large'] == 'option_js_resize')
{
$avatar_width = !empty($modSettings['avatar_max_width_external']) ? ' width="' . $modSettings['avatar_max_width_external'] . '"' : '';
$avatar_height = !empty($modSettings['avatar_max_height_external']) ? ' height="' . $modSettings['avatar_max_height_external'] . '"' : '';
}
else
{
$avatar_width = '';
$avatar_height = '';
}
if (empty($modSettings['messageIconChecks_disable']) && !isset($icon_sources[$row['icon']]))
$icon_sources[$row['icon']] = file_exists($settings['theme_dir'] . '/images/post/' . $row['icon'] . '.gif') ? 'images_url' : 'default_images_url';
censorText($row['subject']);
censorText($row['body']);
if ($modSettings['sp_resize_images'])
$row['body'] = preg_replace('~class="bbc_img~i', 'class="bbc_img sp_article', $row['body']);
if (!empty($row['id_member']))
$colorids[$row['id_member']] = $row['id_member'];
$return[] = array(
'id' => $row['id_topic'],
'message_id' => $row['id_msg'],
'icon' => '<img src="' . $settings[$icon_sources[$row['icon']]] . '/post/' . $row['icon'] . '.gif" align="middle" alt="' . $row['icon'] . '" border="0" />',
'subject' => $row['subject'],
'time' => timeformat($row['poster_time']),
'views' => $row['num_views'],
'body' => $row['body'],
'href' => $scripturl . '?topic=' . $row['id_topic'] . '.0',
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">' . $txt['sp-read_more'] . '</a>',
'replies' => $row['num_replies'],
'comment_href' => !empty($row['locked']) ? '' : $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'],
'comment_link' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'new_comment' => !empty($row['locked']) ? '' : '| <a href="' . $scripturl . '?action=post;topic=' . $row['id_topic'] . '.' . $row['num_replies'] . '">' . $txt['ssi_write_comment'] . '</a>',
'poster' => array(
'id' => $row['id_member'],
'name' => $row['poster_name'],
'href' => !empty($row['id_member']) ? $scripturl . '?action=profile;u=' . $row['id_member'] : '',
'link' => !empty($row['id_member']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['poster_name'] . '</a>' : $row['poster_name']
),
'locked' => !empty($row['locked']),
'is_last' => false,
'avatar' => array(
'name' => $row['avatar'],
'image' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']),
'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar'])
),
);
}
$smcFunc['db_free_result']($request);
if (empty($return))
{
echo '
', $txt['error_sp_no_posts_found'];
return;
}
$return[count($return) - 1]['is_last'] = true;
if (!empty($colorids) && sp_loadColors($colorids) !== false)
{
foreach ($return as $k => $p)
{
if (!empty($color_profile[$p['poster']['id']]['link']))
$return[$k]['poster']['link'] = $color_profile[$p['poster']['id']]['link'];
}
}
if ($context['SPortal']['core_compat'])
{
foreach ($return as $key => $news)
{
if ($key % 2 == 0)
echo '
<div style="padding-top: 0.3em;">
<div style="display: inline !important;width: ' . $width . ';float: left;padding-right: 1em;">';
else
echo '
<div style="display: inline !important;width: ' . $width . ';float: right;padding-left: 1em;">';
echo '
<div class="sp_article_content">
<div class="', !empty($style['no_body']) ? '' : ' tborder', '">
<table class="sp_block">';
if (empty($style['no_title']))
{
echo '
<tr>
<td class="sp_middle ', $style['title']['class'], '"', !empty($style['title']['style']) ? ' style="' . $style['title']['style'] . '"' : '', '>', $news['icon'], '</td>
<td class="sp_middle sp_regular_padding sp_fullwidth ', $style['title']['class'], '"', !empty($style['title']['style']) ? ' style="' . $style['title']['style'] . '"' : '', '><a href="', $news['href'], '">', $news['subject'], '</a></td>
</tr>';
}
echo '
<tr>
<td class="sp_block_padding', empty($style['body']['class']) ? '' : ' ' . $style['body']['class'], '"', !empty($style['body']['style']) ? ' style="' . $style['body']['style'] . '"' : '', ' colspan="2">';
if ($avatars && $news['avatar']['name'] !== null && !empty($news['avatar']['href']))
echo '
<a href="', $scripturl, '?action=profile;u=', $news['poster']['id'], '"><img src="', $news['avatar']['href'], '" alt="', $news['poster']['name'], '" width="30" style="float: right;" /></a>
<div class="middletext">', $news['time'], ' ', $txt['by'], ' ', $news['poster']['link'], '<br />', $txt['sp-articlesViews'], ': ', $news['views'], ' | ', $txt['sp-articlesComments'], ': ', $news['replies'], '</div>';
else
echo '
<div class="middletext">', $news['time'], ' ', $txt['by'], ' ', $news['poster']['link'], ' | ', $txt['sp-articlesViews'], ': ', $news['views'], ' | ', $txt['sp-articlesComments'], ': ', $news['replies'], '</div>';
echo '
<div class="post"><hr />', $news['body'], '<br /><br /></div>
<div class="sp_right ">', $news['link'], ' ', $news['new_comment'], '</div>
</td>
</tr>
</table>
</div>
</div>';
if ($key % 2 == 0)
echo '
</div>
</div>';
else
echo '
</div>';
$lastBody = !empty($style['no_body']) ? '' : 'cla tborder';
}
echo !empty($return) && count($return) % 2 != 0 ? '
<div class="sp_block_section" style="display: inline !important;width: ' . $width . ';float: right;padding-left: 1em;">
<div class="sp_article_content">
<div>
<table class="sp_block">
<tr>
<td class="sp_block_padding" colspan="2">
</td>
</tr>
</table>
</div>
</div>
</div>
</div>' : '';
}
else
{
foreach ($return as $key => $news)
{
if ($key % 2 == 0)
echo '
<div style="padding-top: 0.3em;">
<div class="sp_article_content" style="display: inline !important;width: ' . $width . ';float: left;padding-right: 1em;">';
else
echo '
<div class="sp_article_content" style="display: inline !important;width: ' . $width . ';float: right;padding-left: 1em;">';
if (empty($style['no_title']))
{
echo '
<div class="', in_array($style['title']['class'], array('titlebg', 'titlebg2')) ? 'title_bar' : 'cat_bar', '"', !empty($style['title']['style']) ? ' style="' . $style['title']['style'] . '"' : '', '>
<h3 class="', $style['title']['class'], '">
<span class="sp_float_left sp_article_icon">', $news['icon'], '</span><a href="', $news['href'], '" >', $news['subject'], '</a>
</h3>
</div>';
}
if (strpos($style['body']['class'], 'roundframe') !== false)
{
echo '
<span class="upperframe"><span></span></span>';
}
echo '
<div', empty($style['body']['class']) ? '' : ' class="' . $style['body']['class'] . '"', '>';
if (empty($style['no_body']))
{
echo '
<span class="topslice"><span></span></span>';
}
echo '
<div class="sp_content_padding"', !empty($style['body']['style']) ? ' style="' . $style['body']['style'] . '"' : '', '>';
if ($avatars && $news['avatar']['name'] !== null && !empty($news['avatar']['href']))
echo '
<a href="', $scripturl, '?action=profile;u=', $news['poster']['id'], '"><img src="', $news['avatar']['href'], '" alt="', $news['poster']['name'], '" width="30" class="sp_float_right" /></a>
<div class="middletext">', $news['time'], ' ', $txt['by'], ' ', $news['poster']['link'], '<br />', $txt['sp-articlesViews'], ': ', $news['views'], ' | ', $txt['sp-articlesComments'], ': ', $news['replies'], '</div>';
else
echo '
<div class="middletext">', $news['time'], ' ', $txt['by'], ' ', $news['poster']['link'], ' | ', $txt['sp-articlesViews'], ': ', $news['views'], ' | ', $txt['sp-articlesComments'], ': ', $news['replies'], '</div>';
echo '
<div class="post"><hr />', $news['body'], '</div>
<div class="sp_right">', $news['link'], ' ', $news['new_comment'], '</div>
</div>';
if (empty($style['no_body']))
{
echo '
<span class="botslice"><span></span></span>';
}
echo '
</div>';
if (strpos($style['body']['class'], 'roundframe') !== false)
{
echo '
<span class="lowerframe"><span></span></span>';
}
echo '
</div>';
if ($key % 2 == 0)
echo '
</div>';
}
echo !empty($return) && count($return) % 2 != 0 ? '
</div>' : '';
}
if (!empty($per_page))
echo '
<div class="sp_page_index centertext">', $txt['sp-articlesPages'], ': ', $page_index, '</div>';
}
In your block settings it's better if you have the amount of topics set to an even number & also the block position at the top of the section list.
Quote from: PolishOd wielu lat (9 lat) używam portalu "SipmplePortal" na różnych forach i do tej pory byłem niego bardzo zadowolony.
Niestety widzę, że ostania aktualizacja, odbyła się w 2017 roku a forum pomocowe zwyczajnie umarło i mocno mnie to martwi.
Czy portal "SimplePortal" będzie jeszcze aktualizowany, czy istnieje możliwość aby ktoś spróbował zrobić go "responsywnym", tak aby wyświetlane przez portal treści, dopasować do ekranów smartphone i tabletów ?
https://web-develop.ca/index.php?action=downloads;area=stable_eh_portal
Quote from: RML on February 07, 2019, 08:06:43 AMDo you have a copy I can download? The link to download it doesn't work...
You can use EhPortal, it's the same as Simple Portal only for SMF 2.1, it works with RC1, I use it on my forum and it works fine.
https://web-develop.ca/index.php?action=downloads;area=stable_eh_portal
Quote from: Mick. on November 11, 2020, 02:12:22 PMNone of the links to web-develop work for me (been trying since yesterday)
Try this.. https://web-develop.ca/index.php?action=downloads;area=stable_eh_portal;file=2
Quote from: Shades. on November 11, 2020, 02:25:35 PMclear your web browser cache. The site works for me just fine.Quote from: Mick. on November 11, 2020, 02:12:22 PMNone of the links to web-develop work for me (been trying since yesterday)
Try this.. https://web-develop.ca/index.php?action=downloads;area=stable_eh_portal;file=2
Quote from: Bigguy on November 11, 2020, 03:26:48 PMOk i tried this and everything else I could think of and rebooted and still cant access that link! Does anybody have a copy they can PM me?
Maybe your DNS cache needs clearing.
Quote from: Shambles on November 11, 2020, 05:49:23 PMPerfect thank you! :)
See your PMs
<div style="text-align:center;margin-bottom:10px;">
<div style="
max-width:729px;
display:block;margin-left:auto;margin-right:auto;
text-align: center;">
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<ins class="adsbygoogle"
style="display:block;height:110px;"
data-ad-client="xxxxxxxxxxxxxxxx"
data-ad-slot="xxxxxxxxxxxxxxxx"
data-ad-format="horizontal"
data-full-width-responsive="true"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
</div>
<div style="max-width:90%;overflow: hidden;display:block;margin: 0 auto;text-align: center;">
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<ins class="adsbygoogle"
style="display: block;height: 110px;"
data-ad-client="xxxxxxxxxxxxxxxx"
data-ad-slot="xxxxxxxxxxxxxxxx"
data-ad-format="horizontal"
data-full-width-responsive="true"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
</div>
index.php?action=forum;c=3
~c|3, -~action|forum
~action|forum, &c|3
Quote from: Chen Zhen on December 07, 2020, 06:25:19 PM
@Sono:
I assume you mean vertically & horizontally centered?
Perhaps you have left & right blocks causing top blocks to be more narrow than the header blocks?
Maybe use a percentage for the max-width & hide the overflow.
Try this example (adjust max-width to your preference):Code Select
<div style="max-width:90%;overflow: hidden;display:block;margin: 0 auto;text-align: center;">
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<ins class="adsbygoogle"
style="display: block;height: 110px;"
data-ad-client="xxxxxxxxxxxxxxxx"
data-ad-slot="xxxxxxxxxxxxxxxx"
data-ad-format="horizontal"
data-full-width-responsive="true"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
</div>
div[class^="sp_block_"] div[class^="windowbg"] span[class^="topslice"] {
display: none;
}
div[class^="sp_block_"] div[class^="windowbg"] span[class^="botslice"] {
displaY: none;
}
div[class^="sp_block_"] div[class^="windowbg"] {
border-radius: 15px 50px;
padding: 10px;
}
Quote from: Chen Zhen on December 30, 2020, 08:57:24 PM
I'm not positive if I understand exactly what you're trying to do but here is an edit that will cause all block containers to have rounded corners.
file: ../Themes/default/css/portal.css
add this code at the very end of the file:Code Select
div[class^="sp_block_"] div[class^="windowbg"] span[class^="topslice"] {
display: none;
}
div[class^="sp_block_"] div[class^="windowbg"] span[class^="botslice"] {
displaY: none;
}
div[class^="sp_block_"] div[class^="windowbg"] {
border-radius: 15px 50px;
padding: 10px;
}
You can adjust the border-radius to make the corners appear as you wish.
The padding will likely need to be adjusted depending on your opted border-radius and/or what you prefer.
reference for border-radius:
https://www.w3schools.com/cssref/css3_pr_border-radius.asp
Quote from: Grammy on January 18, 2021, 01:32:43 PM
Could you guys help me move the SimplePortal copyright (screenshot attached) into the SMF 2.0.17 Default wrapper (index.css/div#wrapper) with all the other copyrights instead of by itself below the wrapper? It's a brand new test forum, all mods installed easily with no manual editing, no forum errors, so I'm not sure if it's meant to be outside the forum wrapper that way, or it that's a glitch?
Thanks so much. :)
/// Article related buttons...
if (!empty($modSettings['articleactive']))
{
if ($context['can_add_article'] && !$context['topic_is_article'])
$normal_buttons['add_article'] = array('text' => 'sp-add_article', 'image' => 'addarticle.gif', 'lang' => true, 'url' => $scripturl . '?action=portal;sa=addarticle;message=' . $context['topic_first_message'] . ';return=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id']);
if ($context['can_remove_article'] && $context['topic_is_article'])
$normal_buttons['remove_article'] = array('text' => 'sp-remove_article', 'image' => 'removearticle.gif', 'lang' => true, 'url' => $scripturl . '?action=portal;sa=removearticle;message=' . $context['topic_first_message'] . ';return=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id']);
}
.button_strip_add_article:before {content:"\f055"}
.button_strip_remove_article:before {content: "\f056"}
Quote from: Sir Osis of Liver on March 07, 2021, 10:37:58 PMGlad to help old friend :)
That worked, thanks Ninja.
Quote from: sirfpsycho on March 07, 2021, 10:39:20 PMI could be wrong because I haven't used it in a while, but from what I remember that was the intended use. Recent as in last 48h or so ::)
In right block I have added 8 Recent Posts/Topics. Yesterday everything was working fine. But from today only 1st and last Recent Posts/Topics is showing topics. Other Recent Posts/Topics are not showing any topics. How to fix it?
Toyota'nın
Toyota'#039nın
if (($cutoff = $smcFunc['strpos']($row['body'], '[cutoff]')) !== false)
{
$row['body'] = $smcFunc['substr']($row['body'], 0, $cutoff);
$limited = true;
}
elseif (!empty($length) && $smcFunc['strlen']($row['body']) > $length)
{
$row['body'] = $smcFunc['substr']($row['body'], 0, $length);
$limited = true;
}
if (($cutoff = $smcFunc['strpos']($row['body'], '[cutoff]')) !== false)
{
$row['body'] = substr($row['body'], 0, $cutoff);
$limited = true;
}
elseif (!empty($length) && $smcFunc['strlen']($row['body']) > $length)
{
$row['body'] = substr($row['body'], 0, $length);
$limited = true;
}
Quote from: Sir Osis of Liver on May 14, 2021, 12:44:48 PMMy best guess is the block may be using the forum's rules on HTML tags there, but don't quote me on that. It may also be set to only process HTML, and blocks out PHP code for security purposes.
Yeah, did that last night, php tags don't work in custom html block. Reason I asked is ad management mod has dropmenu to switch type on existing block, saves a few steps.
[30-Jul-2021 22:00:57 America/Santo_Domingo] PHP Parse error: syntax error, unexpected '/' in /home/mxb125/public_html/Sources/Load.php(2291) : eval()'d code on line 24
/$txt['not_a_user'] = 'The user whose profile you are trying to view does not exist.';/
8: Trying to access array offset on value of type null
Apply Filter: Only show the errors from this file
File: /*/*/public_html/Sources/PortalBlocks.php(3591) : eval()'d code
Line: 35
void sp_recent()
Database Error
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'row = row + 1
WHERE col = 4
AND row >= 1
AND row < 3' at line 2
File: ////forum/Sources/PortalAdminBlocks.php
Line: 662
Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 2.0.18, while your database is at version 2.0.4. The above error might possibly go away if you execute the latest version of upgrade.php.
Quote from: Mike66 on October 26, 2021, 08:29:08 AM@ Dave J
I like the design of your Hobby Workshop site Dave 8)
Cheers
Mike
Quote from: Chen Zhen on October 03, 2021, 07:10:37 PMYour error message actually shows line 3591 of PortalBlocks.php which is just the eval function that executes the code from your custom PHP blocks.
Line 35 is what's triggering the error from a PHP custom block.
Disable every custom PHP block, switch back to PHP 7.4 and then enable your custom PHP blocks one at a time until the error occurs. This will allow you to determine which blocks are causing the error.
Keep in mind that you may have multiple custom PHP blocks containing deprecated code.
With that possibility this process may have to be repeated.
If you copy the problem block code in a proper code editor it will give you line numbers which should allow you to find the line of code causing the error.
Quote from: Chen Zhen on October 03, 2021, 07:10:37 PMYour error message actually shows line 3591 of PortalBlocks.php which is just the eval function that executes the code from your custom PHP blocks.
Line 35 is what's triggering the error from a PHP custom block.
Disable every custom PHP block, switch back to PHP 7.4 and then enable your custom PHP blocks one at a time until the error occurs. This will allow you to determine which blocks are causing the error.
Keep in mind that you may have multiple custom PHP blocks containing deprecated code.
With that possibility this process may have to be repeated.
If you copy the problem block code in a proper code editor it will give you line numbers which should allow you to find the line of code causing the error.
Quote from: WellwisherI am trying to move a block to the 1st position. When I attempt to change it, I get the following new error:
It's never happened before, I have been running this mod for years :-\
Current version I am using is SimplePortal version 2.3.7
The rest of my forum seems to be fine.Code SelectDatabase Error
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'row = row + 1
WHERE col = 4
AND row >= 1
AND row < 3' at line 2
File: ////forum/Sources/PortalAdminBlocks.php
Line: 662
Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 2.0.18, while your database is at version 2.0.4. The above error might possibly go away if you execute the latest version of upgrade.php.
Quote from: Chen Zhen on November 30, 2021, 09:43:25 PMQuote from: WellwisherI am trying to move a block to the 1st position. When I attempt to change it, I get the following new error:
It's never happened before, I have been running this mod for years :-\
Current version I am using is SimplePortal version 2.3.7
The rest of my forum seems to be fine.Code SelectDatabase Error
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'row = row + 1
WHERE col = 4
AND row >= 1
AND row < 3' at line 2
File: ////forum/Sources/PortalAdminBlocks.php
Line: 662
Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 2.0.18, while your database is at version 2.0.4. The above error might possibly go away if you execute the latest version of upgrade.php.
I reported this to Sinan in the past: ref. https://github.com/SimplePortal/SimplePortal/issues/17
.. he used a column name in this mod that became a reserved word in MySQL.
There are only 2 ways to fix it but both involve editing the SP code..
(1) encase each instance of that column name with grave accents
or
(2) replace that column name with ie. rowx in the installer and the regular code. This will also involve editing the sp_blocks table in ie. PhpMyAdmin to change the column name.
Quote from: Chen Zhen on December 02, 2021, 06:17:23 PM@Wellwisher:
You can use this slightly updated/modified version which should fix your MySQL reserved word problem.
ref. https://simpleportal.net/index.php?action=downloads;area=stable_beta_packages;file=147
If you have any problems with it please ask for support in this thread.
Quote from: efk on February 05, 2022, 12:56:04 PMWhen tracking user IPCode Select8: Undefined index: banUpdate
?action=shoutbox;sa=get;xml;row=40
Error logCode Select8: Undefined index: banUpdate
Only show the errors from this file
File: /home/name/www/www/Sources/Subs-Shoutbox.php
Line: 93
Ok, so I just noticed that a single user is caught in this error, we have SimplePortal shoutboxes, 3-5, 1 or 2 are public, and SMFPacks Shoutbox which is public, but I don't think there are any bans visible to me.
We just moved to the new hosting. I see user last activity was from 1 hour ago, but this error keep spamming error log for single user, what could it be?
We are at 2.0.18, before upgrading to 19 I want to make sure everything works.
{
$global $txt;
$items = ssi_recentAttachments(2, array('torrent'), 'array');
if (empty($items))
{
echo '
', $txt['error_sp_no_attachments_found'];
return;
}
echo '
<ul class="sp_list">';
foreach ($items as $item)
echo '
<li style="word-wrap: break-word; max-width: 100%">', sp_embed_image('attach'), ' <a href="', $item['file']['href'], '">',$item['file']['filename'], '</a></li>
<li class="smalltext">', $txt['downloads'], ': ', $item['file']['downloads'], '</li>
<li class="smalltext">', $txt['filesize'], ': ', $item['file']['filesize'], '</li>';
echo '
</ul>';
}
<?php
{
global $smcFunc, $scripturl, $modSettings, $user_info, $txt, $context, $color_profile, $settings, $db_prefix;
$list_limit = 10;
$category_id_array_list = array(2);
$request = $smcFunc['db_query']('', '
SELECT
m.poster_time, ms.subject, m.id_topic, m.id_member, m.id_msg, b.id_board, b.id_parent, b.name AS board_name, t.num_replies, t.num_views, c.id_cat,
' . ($user_info['is_guest'] ? '1 AS is_read, 0 AS new_from' : '
IFNULL(lt.id_msg, IFNULL(lmr.id_msg, 0)) >= m.id_msg_modified AS is_read,
IFNULL(lt.id_msg, IFNULL(lmr.id_msg, -1)) + 1 AS new_from') . '
FROM {db_prefix}topics AS t
INNER JOIN {db_prefix}messages AS m ON (m.id_msg = t.id_first_msg)
INNER JOIN {db_prefix}boards AS b ON (b.id_board = t.id_board)
INNER JOIN {db_prefix}messages AS ms ON (ms.id_msg = t.id_first_msg)
LEFT JOIN {db_prefix}categories AS c ON (c.id_cat = b.id_cat)
LEFT JOIN {db_prefix}members AS mem ON (mem.id_member = m.id_member)' . (!$user_info['is_guest'] ? '
LEFT JOIN {db_prefix}log_topics AS lt ON (lt.id_topic = t.id_topic AND lt.id_member = {int:current_member})
LEFT JOIN {db_prefix}log_mark_read AS lmr ON (lmr.id_board = b.id_board AND lmr.id_member = {int:current_member})' : '') . '
WHERE t.id_board != 0 AND c.id_cat = {array_int:category_id_array}' . ($modSettings['postmod_active'] ? '
AND t.approved = {int:approved}
AND m.approved = {int:approved}' : '') . '
ORDER BY t.id_topic DESC
LIMIT {int:limit}',
array(
'approved' => 1,
'limit' => $list_limit,
'category_id_array' => $category_id_array_list,
'current_member' => $user_info['id'],
)
);
$topics = array();
while ($row = $smcFunc['db_fetch_assoc']($request))
{
censorText($row['subject']);
$topics[] = $row;
}
$smcFunc['db_free_result']($request);
if (empty($topics))
{
echo $txt['error_sp_no_posts_found'];
return;
}
else
$topics[count($topics) - 1]['is_last'] = true;
$colorids = array();
foreach ($topics as $item)
$colorids[] = $item['id_member'];
sp_loadColors($colorids);
echo '<table class="sp_fullwidth">';
foreach ($topics as $item)
{
$allOfParents = array();
$allOfParents = array_reverse(getBoardParents($item['id_parent']));
echo '
<tr>
<td class="sp_recent_icon sp_center">
', sp_embed_image('topic'), '
</td>
<td class="sp_recent_subject">
<a href="', $scripturl . '?topic=' . $item['id_topic'] . '.msg' . $item['id_msg'] . ';topicseen#new', '">', $item['subject'], '</a>
', !empty($item['is_read']) ? '' : '<a href="' . $scripturl . '?topic=' . $item['id_topic'] . '.msg' . $item['new_from'] . ';topicseen#new"><img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" alt="' . $txt['new'] . '" border="0" /></a>',
'<br />';
foreach ($allOfParents as $Parents_Data)
{
echo isset($Parents_Data['url']) ? '[<a href="' . $Parents_Data['url'] . '">' . $Parents_Data['name'] . '</a>]' : '[' . $Parents_Data['name'] . ']';
echo ' » ';
}
echo '[', '<a href="' . $scripturl . '?board=' . $item['id_board'] . '.0">' . $item['board_name'] . '</a>', ']
</td>
<td class="sp_recent_info sp_right">
', $color_profile[$item['id_member']]['link'], ' | ', $txt['sp-articlesViews'], ': ', $item['num_views'], ' | ', $txt['sp-articlesComments'], ': ', $item['num_replies'], '<br />', timeformat($item['poster_time']), '
</td>
</tr>';
}
echo '</table>';
}
?>
<?php
{
global $smcFunc, $scripturl, $modSettings, $user_info, $txt, $context, $color_profile, $settings, $db_prefix;
$list_limit = 10;
$category_id_array_list = array(2);
$request = $smcFunc['db_query']('', '
SELECT
m.poster_time, ms.subject, m.id_topic, m.id_member, m.id_msg, b.id_board, b.id_parent, b.name AS board_name, t.num_replies, t.num_views, c.id_cat,
' . ($user_info['is_guest'] ? '1 AS is_read, 0 AS new_from' : '
IFNULL(lt.id_msg, IFNULL(lmr.id_msg, 0)) >= m.id_msg_modified AS is_read,
IFNULL(lt.id_msg, IFNULL(lmr.id_msg, -1)) + 1 AS new_from') . '
FROM {db_prefix}topics AS t
INNER JOIN {db_prefix}messages AS m ON (m.id_msg = t.id_first_msg)
INNER JOIN {db_prefix}boards AS b ON (b.id_board = t.id_board)
INNER JOIN {db_prefix}messages AS ms ON (ms.id_msg = t.id_first_msg)
LEFT JOIN {db_prefix}categories AS c ON (c.id_cat = b.id_cat)
LEFT JOIN {db_prefix}members AS mem ON (mem.id_member = m.id_member)' . (!$user_info['is_guest'] ? '
LEFT JOIN {db_prefix}log_topics AS lt ON (lt.id_topic = t.id_topic AND lt.id_member = {int:current_member})
LEFT JOIN {db_prefix}log_mark_read AS lmr ON (lmr.id_board = b.id_board AND lmr.id_member = {int:current_member})' : '') . '
WHERE t.id_board != 0 AND c.id_cat = {array_int:category_id_array}' . ($modSettings['postmod_active'] ? '
AND t.approved = {int:approved}
AND m.approved = {int:approved}' : '') . '
ORDER BY t.id_topic DESC
LIMIT {int:limit}',
array(
'approved' => 1,
'limit' => $list_limit,
'category_id_array' => $category_id_array_list,
'current_member' => $user_info['id'],
)
);
$topics = array();
while ($row = $smcFunc['db_fetch_assoc']($request))
{
censorText($row['subject']);
$topics[] = $row;
}
$smcFunc['db_free_result']($request);
if (empty($topics))
{
echo $txt['error_sp_no_posts_found'];
return;
}
else
$topics[count($topics) - 1]['is_last'] = true;
$colorids = array();
foreach ($topics as $item)
$colorids[] = $item['id_member'];
sp_loadColors($colorids);
echo '<table class="sp_fullwidth">';
foreach ($topics as $item)
{
$allOfParents = array();
$allOfParents = array_reverse(getBoardParents($item['id_parent']));
echo '
<tr>
<td class="sp_recent_icon sp_center">
', sp_embed_image('topic'), '
</td>
<td class="sp_recent_subject">
<a href="', $scripturl . '?topic=' . $item['id_topic'] . '.msg' . $item['id_msg'] . ';topicseen#new', '">', $item['subject'], '</a>
', !empty($item['is_read']) ? '' : '<a href="' . $scripturl . '?topic=' . $item['id_topic'] . '.msg' . $item['new_from'] . ';topicseen#new"><img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" alt="' . $txt['new'] . '" border="0" /></a>',
'<br />';
foreach ($allOfParents as $Parents_Data)
{
echo isset($Parents_Data['url']) ? '[<a href="' . $Parents_Data['url'] . '">' . $Parents_Data['name'] . '</a>]' : '[' . $Parents_Data['name'] . ']';
echo ' » ';
}
echo '[', '<a href="' . $scripturl . '?board=' . $item['id_board'] . '.0">' . $item['board_name'] . '</a>', ']
</td>
<td class="sp_recent_info sp_right">
', $color_profile[$item['id_member']]['link'], ' | ', $txt['sp-articlesViews'], ': ', $item['num_views'], ' | ', $txt['sp-articlesComments'], ': ', $item['num_replies'], '<br />', timeformat($item['poster_time']), '
</td>
</tr>';
}
echo '</table>';
}
?>
<?php
{
global $smcFunc, $scripturl, $modSettings, $user_info, $txt, $context, $color_profile, $settings, $db_prefix;
$list_limit = 10;
$category_id_array_list = array(2);
$request = $smcFunc['db_query']('', '
SELECT
m.poster_time, ms.subject, m.id_topic, m.id_member, m.id_msg, b.id_board, b.id_parent, b.name AS board_name, t.num_replies, t.num_views, c.id_cat,
' . ($user_info['is_guest'] ? '1 AS is_read, 0 AS new_from' : '
IFNULL(lt.id_msg, IFNULL(lmr.id_msg, 0)) >= m.id_msg_modified AS is_read,
IFNULL(lt.id_msg, IFNULL(lmr.id_msg, -1)) + 1 AS new_from') . '
FROM {db_prefix}topics AS t
INNER JOIN {db_prefix}messages AS m ON (m.id_msg = t.id_first_msg)
INNER JOIN {db_prefix}boards AS b ON (b.id_board = t.id_board)
INNER JOIN {db_prefix}messages AS ms ON (ms.id_msg = t.id_first_msg)
LEFT JOIN {db_prefix}categories AS c ON (c.id_cat = b.id_cat)
LEFT JOIN {db_prefix}members AS mem ON (mem.id_member = m.id_member)' . (!$user_info['is_guest'] ? '
LEFT JOIN {db_prefix}log_topics AS lt ON (lt.id_topic = t.id_topic AND lt.id_member = {int:current_member})
LEFT JOIN {db_prefix}log_mark_read AS lmr ON (lmr.id_board = b.id_board AND lmr.id_member = {int:current_member})' : '') . '
WHERE t.id_board != 0 AND c.id_cat = {array_int:category_id_array}' . ($modSettings['postmod_active'] ? '
AND t.approved = {int:approved}
AND m.approved = {int:approved}' : '') . '
ORDER BY t.id_topic DESC
LIMIT {int:limit}',
array(
'approved' => 1,
'limit' => $list_limit,
'category_id_array' => $category_id_array_list,
'current_member' => $user_info['id'],
)
);
$topics = array();
while ($row = $smcFunc['db_fetch_assoc']($request))
{
censorText($row['subject']);
$topics[] = $row;
}
$smcFunc['db_free_result']($request);
if (empty($topics))
{
echo $txt['error_sp_no_posts_found'];
return;
}
else
$topics[count($topics) - 1]['is_last'] = true;
$colorids = array();
foreach ($topics as $item)
$colorids[] = $item['id_member'];
sp_loadColors($colorids);
echo '<table class="sp_fullwidth">';
foreach ($topics as $item)
{
$allOfParents = array();
$allOfParents = array_reverse(getBoardParents($item['id_parent']));
echo '
<tr>
<td class="sp_recent_icon sp_center">
', sp_embed_image('topic'), '
</td>
<td class="sp_recent_subject">
<a href="', $scripturl . '?topic=' . $item['id_topic'] . '.msg' . $item['id_msg'] . ';topicseen#new', '">', $item['subject'], '</a>
', !empty($item['is_read']) ? '' : '<a href="' . $scripturl . '?topic=' . $item['id_topic'] . '.msg' . $item['new_from'] . ';topicseen#new"><img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" alt="' . $txt['new'] . '" border="0" /></a>',
'<br />';
foreach ($allOfParents as $Parents_Data)
{
echo isset($Parents_Data['url']) ? '[<a href="' . $Parents_Data['url'] . '">' . $Parents_Data['name'] . '</a>]' : '[' . $Parents_Data['name'] . ']';
echo ' » ';
}
echo '[', '<a href="' . $scripturl . '?board=' . $item['id_board'] . '.0">' . $item['board_name'] . '</a>', ']
</td>
<td class="sp_recent_info sp_right">
', $color_profile[$item['id_member']]['link'], ' | ', $txt['sp-articlesViews'], ': ', $item['num_views'], ' | ', $txt['sp-articlesComments'], ': ', $item['num_replies'], '<br />', timeformat($item['poster_time']), '
</td>
</tr>';
}
echo '</table>';
}
?>
<?php
{
global $smcFunc, $scripturl, $modSettings, $user_info, $txt, $context, $color_profile, $settings, $db_prefix;
$list_limit = 10;
$category_id_array_list = array(2);
$request = $smcFunc['db_query']('', '
SELECT
m.poster_time, ms.subject, m.id_topic, m.id_member, m.id_msg, b.id_board, b.id_parent, b.name AS board_name, t.num_replies, t.num_views, c.id_cat,
' . ($user_info['is_guest'] ? '1 AS is_read, 0 AS new_from' : '
IFNULL(lt.id_msg, IFNULL(lmr.id_msg, 0)) >= m.id_msg_modified AS is_read,
IFNULL(lt.id_msg, IFNULL(lmr.id_msg, -1)) + 1 AS new_from') . '
FROM {db_prefix}topics AS t
INNER JOIN {db_prefix}messages AS m ON (m.id_msg = t.id_first_msg)
INNER JOIN {db_prefix}boards AS b ON (b.id_board = t.id_board)
INNER JOIN {db_prefix}messages AS ms ON (ms.id_msg = t.id_first_msg)
LEFT JOIN {db_prefix}categories AS c ON (c.id_cat = b.id_cat)
LEFT JOIN {db_prefix}members AS mem ON (mem.id_member = m.id_member)' . (!$user_info['is_guest'] ? '
LEFT JOIN {db_prefix}log_topics AS lt ON (lt.id_topic = t.id_topic AND lt.id_member = {int:current_member})
LEFT JOIN {db_prefix}log_mark_read AS lmr ON (lmr.id_board = b.id_board AND lmr.id_member = {int:current_member})' : '') . '
WHERE t.id_board != 0 AND c.id_cat = {array_int:category_id_array}' . ($modSettings['postmod_active'] ? '
AND t.approved = {int:approved}
AND m.approved = {int:approved}' : '') . '
ORDER BY t.id_topic DESC
LIMIT {int:limit}',
array(
'approved' => 1,
'limit' => $list_limit,
'category_id_array' => $category_id_array_list,
'current_member' => $user_info['id'],
)
);
$topics = array();
while ($row = $smcFunc['db_fetch_assoc']($request))
{
censorText($row['subject']);
$topics[] = $row;
}
$smcFunc['db_free_result']($request);
if (empty($topics))
{
echo $txt['error_sp_no_posts_found'];
return;
}
else
$topics[count($topics) - 1]['is_last'] = true;
$colorids = array();
foreach ($topics as $item)
$colorids[] = $item['id_member'];
sp_loadColors($colorids);
echo '<table class="sp_fullwidth">';
foreach ($topics as $item)
{
$allOfParents = array();
$allOfParents = array_reverse(getBoardParents($item['id_parent']));
echo '
<tr>
<td class="sp_recent_icon sp_center">
', sp_embed_image('topic'), '
</td>
<td class="sp_recent_subject">
<a href="', $scripturl . '?topic=' . $item['id_topic'] . '.msg' . $item['id_msg'] . ';topicseen#new', '">', $item['subject'], '</a>
', !empty($item['is_read']) ? '' : '<a href="' . $scripturl . '?topic=' . $item['id_topic'] . '.msg' . $item['new_from'] . ';topicseen#new"><img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" alt="' . $txt['new'] . '" border="0" /></a>',
'<br />';
foreach ($allOfParents as $Parents_Data)
{
echo isset($Parents_Data['url']) ? '[<a href="' . $Parents_Data['url'] . '">' . $Parents_Data['name'] . '</a>]' : '[' . $Parents_Data['name'] . ']';
echo ' » ';
}
echo '[', '<a href="' . $scripturl . '?board=' . $item['id_board'] . '.0">' . $item['board_name'] . '</a>', ']
</td>
<td class="sp_recent_info sp_right">
', $color_profile[$item['id_member']]['link'], ' | ', $txt['sp-articlesViews'], ': ', $item['num_views'], ' | ', $txt['sp-articlesComments'], ': ', $item['num_replies'], '<br />', timeformat($item['poster_time']), '
</td>
</tr>';
}
echo '</table>';
}
?>
if (!isset($_POST['block_name']) || $smcFunc['htmltrim']($smcFunc['htmlspecialchars']($_POST['block_name']), ENT_QUOTES) === '')
$content = trim(un_htmlspecialchars($content));
$content = trim(un_htmlspecialchars($content));
Replace:$content = trim(htmlspecialchars_decode($content, ENT_QUOTES));
Quote from: greddy on September 10, 2022, 02:03:42 PMHello,
can anyone tell me if SimplePortal 2.3.7 works with PHP 8.1 ?
Greets, Peter
Quotehttps://web-develop.ca/index.php?action=downloads;area=stable_eh_portal
Quote from: Dave J on September 11, 2022, 03:04:13 AMThis portal has now been superceded by EHPortal which works with SMF2.1, the latest version can be found hereQuotehttps://web-develop.ca/index.php?action=downloads;area=stable_eh_portal
Quote from: dodos26 on April 03, 2022, 07:43:44 AMFix the problem with custom blocks:
Found:Code ("/Soucres/PortalBlocks.php (3587)") Select$content = trim(un_htmlspecialchars($content));
Replace:Code Select$content = trim(htmlspecialchars_decode($content, ENT_QUOTES));
$content = trim(un_htmlspecialchars($content));
$content = sp_decode(trim(un_htmlspecialchars($content)));
Quote from: dodos26 on November 14, 2022, 03:07:45 PMU use Simpleportal 2.3.7 or Beta Simple Portal 2.3.8?Thank you dodos26. You are correct that I am using Beta Simple Portal 2.3.8.
sp_decode I find in beta 2.3.8.
Install 2.3.7 and make the changes I wrote about.
$content = sp_decode(trim(un_htmlspecialchars($content)));
to$content = trim(htmlspecialchars_decode($content, ENT_QUOTES));
.sp_user_info_name
{
display: flex;
flex-direction: column;
margin-bottom: 3%;
}
.sp_user_info_padding
{
padding-bottom: 1%;
}
.sp_user_info_password
{
display: flex;
flex-direction: column;
margin-bottom: 8%;
}
.sp_user_info_submit
{
display: flex;
justify-content: space-evenly;
flex-direction: row;
flex-wrap: nowrap;
align-items: baseline;
margin-bottom: 4%;
scale: 98%;
}
#2 Faster open Sources/PortalBlocks.php find function function sp_userInfo($parameters, $id, $return_parameters = false) and replace to:function sp_userInfo($parameters, $id, $return_parameters = false)
{
global $context, $txt, $scripturl, $memberContext, $modSettings, $user_info, $color_profile, $settings;
$block_parameters = array();
if ($return_parameters)
return $block_parameters;
echo '
<div class="sp_center sp_fullwidth">';
if ($context['user']['is_guest'])
{
echo '
<script type="text/javascript" src="' . $settings['default_theme_url'] . '/scripts/sha1.js"></script>
<form action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', ' >
<div>
<div class="sp_user_info_name">
<label for="sp_user" class="sp_user_info_padding">', $txt['username'], ':</label>
<input type="text" id="sp_user" name="user" size="9" value="', !empty($user_info['username']) ? $user_info['username'] : '', '" />
</div><div class="sp_user_info_password">
<label for="sp_passwrd" class="sp_user_info_padding">', $txt['password'], ':</label>
<input type="password" name="passwrd" id="sp_passwrd" size="9" />
</div><div class="sp_user_info_submit">
<select name="cookielength">
<option value="60">', $txt['one_hour'], '</option>
<option value="1440">', $txt['one_day'], '</option>
<option value="10080">', $txt['one_week'], '</option>
<option value="43200">', $txt['one_month'], '</option>
<option value="-1" selected="selected">', $txt['forever'], '</option>
</select>
<input type="submit" value="', $txt['login'], '" class="button_submit" />
</div>
</div>
<input type="hidden" name="hash_passwrd" value="" />
<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
</form>', sprintf($txt['welcome_guest'], $txt['guest_title']);
}
else
{
loadMemberData($user_info['id']);
loadMemberContext($user_info['id'], true);
$member_info = $memberContext[$user_info['id']];
if (sp_loadColors($member_info['id']) !== false)
$member_info['colored_name'] = $color_profile[$member_info['id']]['colored_name'];
$member_info['karma']['total'] = $member_info['karma']['good'] - $member_info['karma']['bad'];
echo '
', strtolower($member_info['name']) === 'okarin' ? 'Okae-Rin, ' : $txt['hello_member'], ' <strong>', !empty($member_info['colored_name']) ? $member_info['colored_name'] : $member_info['name'], '</strong>
<br /><br />';
if (!empty($member_info['avatar']['image']))
echo '
<a href="', $scripturl, '?action=profile;u=', $member_info['id'], '">', $member_info['avatar']['image'], '</a><br /><br />';
if (!empty($member_info['group']))
echo '
', $member_info['group'], '<br />';
else
echo '
', $member_info['post_group'], '<br />';
echo '
', $member_info['group_stars'], '<br />';
echo '
<br />
<ul class="sp_list">';
echo '
<li>', sp_embed_image('dot'), ' <strong>', $txt['posts'], ':</strong> ', $member_info['posts'], '</li>';
if (!empty($modSettings['karmaMode']))
{
echo '
<li>', sp_embed_image('dot'), ' <strong>', $modSettings['karmaLabel'], '</strong> ';
if ($modSettings['karmaMode'] == 1)
echo $member_info['karma']['total'];
elseif ($modSettings['karmaMode'] == 2)
echo '+', $member_info['karma']['good'], '/-', $member_info['karma']['bad'];
echo '</li>';
}
if (allowedTo('pm_read'))
{
echo '
<li>', sp_embed_image('dot'), ' <strong>', $txt['sp-usertmessage'], ':</strong> <a href="', $scripturl, '?action=pm">', $context['user']['messages'], '</a></li>
<li>', sp_embed_image('dot'), ' <strong>', $txt['sp-usernmessage'], ':</strong> ', $context['user']['unread_messages'], '</li>';
}
echo '
<li>', sp_embed_image('dot'), ' <a href="', $scripturl, '?action=unread">', $txt['unread_topics_visit'], '</a></li>
<li>', sp_embed_image('dot'), ' <a href="', $scripturl, '?action=unreadreplies">', $txt['unread_replies'], '</a></li>';
echo '
</ul>
<br />';
echo '
', sp_embed_image('arrow'), ' <a href="', $scripturl, '?action=profile">', $txt['profile'], '</a> ', sp_embed_image('arrow'), ' <a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '">', $txt['logout'], '</a>';
}
echo '
</div>';
}
Quote from: Oldiesmann on April 23, 2023, 10:03:13 PMWhat does that feature do again?
Quote from: Sir Osis of Liver on April 24, 2023, 01:34:19 PMQuote from: Oldiesmann on April 23, 2023, 10:03:13 PMWhat does that feature do again?
Board posts are sent to portal block as articles. It's a main feature of homepage, so we'll have to stay with 2.0.
Quote from: dodos26 on April 25, 2023, 06:03:04 PMA man wants to use simpleportal and you tell him to use something else. Why?If you bothered to read the topic, you'd know we're in need of a 2.1 portal that has the add to frontpage feature. SP does not support 2.1, and it's unlikely it will be upgraded.
Quote from: dodos26 on April 25, 2023, 06:03:04 PMA man wants to use simpleportal and you tell him to use something else. Why?Because, there's no SimplePortal version for SMF 2.1.x
Quote from: dodos26 on April 25, 2023, 06:03:04 PMA man wants to use simpleportal and you tell him to use something else. Why?
Quote from: Sir Osis of Liver on April 25, 2023, 06:14:33 PMI've installed TP on 2.1 clone, have asked owner to see if it meets his requirements. Thanks.Quote from: dodos26 on April 25, 2023, 06:03:04 PMA man wants to use simpleportal and you tell him to use something else. Why?If you bothered to read the topic, you'd know we're in need of a 2.1 portal that has the add to frontpage feature. SP does not support 2.1, and it's unlikely it will be upgraded.
Quote from: dodos26 on April 26, 2023, 09:46:59 AMI went to as much trouble as the developers reading that I don't want 2.1.
$request = $smcFunc['db_query']('','
SELECT row
FROM {db_prefix}sp_blocks
WHERE col = {int:col}' . (!empty($_REQUEST['block_id']) ? '
AND id_block != {int:current_id}' : '' ) . '
ORDER BY row DESC
LIMIT 1',
array(
'col' => $_POST['block_column'],
'current_id' => $_REQUEST['block_id'],
)
);
$request = $smcFunc['db_query']('','
SELECT `row`
FROM {db_prefix}sp_blocks
WHERE col = {int:col}' . (!empty($_REQUEST['block_id']) ? '
AND id_block != {int:current_id}' : '' ) . '
ORDER BY `row` DESC
LIMIT 1',
array(
'col' => $_POST['block_column'],
'current_id' => $_REQUEST['block_id'],
)
);
global $smcFunc, $context, $sourcedir;
and replace: global $smcFunc, $context, $sourcedir, $modSettings;
Next find: if (!isset($_REQUEST['sa']) || !isset($actions[$_REQUEST['sa']]))
$_REQUEST['sa'] = 'articles';
if (!empty($actions[$_REQUEST['sa']][0]))
require_once($sourcedir . '/' . $actions[$_REQUEST['sa']][0]);
$actions[$_REQUEST['sa']][1]();
And replace: if (!empty($modSettings['articleactive']))
{
if (!isset($_REQUEST['sa']) || !isset($actions[$_REQUEST['sa']]))
$_REQUEST['sa'] = 'articles';
if (!empty($actions[$_REQUEST['sa']][0]))
require_once($sourcedir . '/' . $actions[$_REQUEST['sa']][0]);
$actions[$_REQUEST['sa']][1]();
} else redirectexit();
// Function to get a block's display/show information.
function getShowInfo($block_id = null, $display = null, $custom = null)
Quote// Will hopefully get larger in the future.Clearly this part of the code is unfinished.
// Will hopefully get larger in the future.
$portal_actions = array(
'articles' => true,
'start' => true,
'theme' => true,
'PHPSESSID' => true,
'wwwRedirect' => true,
'www' => true,
'variant' => true,
'language' => true,
'action' => array('portal'),
);
// Set some action exceptions.
$exceptions = array(
'post' => array('announce', 'editpoll', 'emailuser', 'post2', 'sendtopic'),
'register' => array('activate', 'coppa'),
'forum' => array('collapse'),
'admin' => array('credits', 'theme', 'viewquery', 'viewsmfile'),
'moderate' => array('groups'),
'login' => array('reminder'),
'profile' => array('trackip', 'viewprofile'),
);
// Still, we might not be in portal!
if (!empty($_GET) && empty($context['standalone']))
foreach ($_GET as $key => $value)
{
if (preg_match('~^news\d+$~', $key))
continue;
if (!isset($portal_actions[$key]))
$portal = false;
elseif (is_array($portal_actions[$key]) && !in_array($value, $portal_actions[$key]))
$portal = false;
}
$portal_actions = array(
'articles' => true,
'start' => true,
'theme' => true,
'PHPSESSID' => true,
'wwwRedirect' => true,
'www' => true,
'variant' => true,
'language' => true,
'action' => array('portal'),
);
Example insert for fbclid: $portal_actions = array(
'articles' => true,
'start' => true,
'theme' => true,
'PHPSESSID' => true,
'wwwRedirect' => true,
'www' => true,
'variant' => true,
'language' => true,
'action' => array('portal'),
'fbclid' => true,
);
removed as requested.org
FYI - Usually people who remove all copyright links to SMF & its mods on their forum(s) have the ability to code so they aren't asking for support. Quote from: Chen Zhen on May 08, 2023, 07:10:56 PMFYI - Usually people who remove all copyright links to SMF & its mods on their forum(s) have the ability to code so they aren't asking for support.
Quote from: Aleksi "Lex" Kilpinen on May 09, 2023, 11:33:43 PMdoing so means you have chosen not to seek support from us, you may not be allowed at all to remove copyrights from mods depending on their licensing.
global $txt, $scripturl, $settings, $context, $color_profile;
$boards = null;
$limit = 49;
$type = 'ssi_recentTopics';
$items = $type($limit, null, $boards, 'array');
if (empty($items))
{
echo '
', $txt['error_sp_no_posts_found'];
return;
}
else
$items[count($items) - 1]['is_last'] = true;
$colorids = array();
foreach ($items as $item)
$colorids[] = $item['poster']['id'];
if (!empty($colorids) && sp_loadColors($colorids) !== false)
{
foreach ($items as $k => $p)
{
if (!empty($color_profile[$p['poster']['id']]['link']))
$items[$k]['poster']['link'] = $color_profile[$p['poster']['id']]['link'];
}
}
echo '
<table class="sp_fullwidth">';
foreach ($items as $item)
echo '
<tr>
<td class="sp_recent_icon sp_center">
', $item['new'] ? sp_embed_image('topic') : '<a href="' . $scripturl . '?topic=' . $item['topic'] . '.msg' . $item['new_from'] . ';topicseen#new"><img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" alt="' . $txt['new'] . '" border="0" /></a>',
'</td>
<td class="sp_recent_subject">
<a href="', $item['href'], '">', $item['subject'], '</a><br />[', $item['board']['link'], ']
</td>
<td class="sp_recent_info sp_right">
', $item['poster']['link'], '<br />', $item['time'], '
</td>
</tr>';
echo '
</table>';
Database Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'row = row + 1
WHERE col = 1
AND row >= 5' at line 2
Apply Filter: Only show the errors from this file
File: /home/wpsvetsc/public_html/Sources/PortalAdminBlocks.php
Line: 662
$smcFunc['db_query']('', '
UPDATE {db_prefix}sp_blocks
SET row = row + 1
WHERE col = {int:col}
AND row >= {int:start}' . (!empty($current_row) ? '
AND row < {int:end}' : ''),
array(
'col' => (int) $_POST['block_column'],
'start' => $row,
'end' => !empty($current_row) ? $current_row : 0,
)
);
Fatal error: Uncaught Error: Call to undefined function create_function() in /home/wpsvetsc/public_html/Sources/PortalBlocks.php:2029 Stack trace: #0 /home/wpsvetsc/public_html/Sources/Load.php(1652) : eval()'d code(234): sp_rssFeed() #1 /home/wpsvetsc/public_html/Sources/Load.php(1652) : eval()'d code(148): template_block_curve() #2 /home/wpsvetsc/public_html/Sources/Load.php(1652) : eval()'d code(56): template_block() #3 /home/wpsvetsc/public_html/Sources/Load.php(1439): template_portal_above() #4 /home/wpsvetsc/public_html/Sources/Subs.php(3450): loadSubTemplate() #5 /home/wpsvetsc/public_html/Sources/Subs.php(2895): template_header() #6 /home/wpsvetsc/public_html/Sources/Errors.php(337): obExit() #7 /home/wpsvetsc/public_html/Sources/Errors.php(161): setup_fatal_error_context() #8 /home/wpsvetsc/public_html/index.php(131): fatal_error() #9 [internal function]: {closure}() #10 {main} thrown in /home/wpsvetsc/public_html/Sources/PortalBlocks.php on line 2029
Quote from: Chen Zhen on August 31, 2023, 12:26:57 AMSP 2.3.8 should work for PHP 8.3
$smcFunc['db_query']('', '
UPDATE {db_prefix}sp_blocks
SET row = row + 1
WHERE col = {int:col}
AND row >= {int:start}' . (!empty($current_row) ? '
AND row < {int:end}' : ''),
array(
'col' => (int) $_POST['block_column'],
'start' => $row,
'end' => !empty($current_row) ? $current_row : 0,
)
);
Error
Type of error
Undefined_vars
Error message
2: Undefined array key "show_last_login"
File
/usr/local/www/nginx/Themes/default/Profile.template.php
Line
429
URL of page causing the error
http://192.168.0.5/index.php?action=profile;u=2
Backtrace information
#0: smf_error_handler()
Called from /usr/local/www/nginx/Themes/default/Profile.template.php on line 429
#1: template_summary()
Called from /usr/local/www/nginx/Sources/Load.php on line 2778
#2: loadSubTemplate()
Called from /usr/local/www/nginx/Sources/Subs.php on line 4214
#3: obExit()
Called from /usr/local/www/nginx/index.php on line 187
Error
Type of error
Undefined_vars
Error message
2: Undefined array key "today_is_birthday"
File
/usr/local/www/nginx/Themes/default/Profile.template.php
Line
323
URL of page causing the error
http://192.168.0.5/index.php?action=profile;u=2
Backtrace information
#0: smf_error_handler()
Called from /usr/local/www/nginx/Themes/default/Profile.template.php on line 323
#1: template_summary()
Called from /usr/local/www/nginx/Sources/Load.php on line 2778
#2: loadSubTemplate()
Called from /usr/local/www/nginx/Sources/Subs.php on line 4214
#3: obExit()
Called from /usr/local/www/nginx/index.php on line 187
Error
Type of error
Undefined_vars
Error message
2: Undefined array key "age"
File
/usr/local/www/nginx/Themes/default/Profile.template.php
Line
323
URL of page causing the error
http://192.168.0.5/index.php?action=profile;u=2
Backtrace information
#0: smf_error_handler()
Called from /usr/local/www/nginx/Themes/default/Profile.template.php on line 323
#1: template_summary()
Called from /usr/local/www/nginx/Sources/Load.php on line 2778
#2: loadSubTemplate()
Called from /usr/local/www/nginx/Sources/Subs.php on line 4214
#3: obExit()
Called from /usr/local/www/nginx/index.php on line 187
Error
Type of error
Undefined_vars
Error message
2: Undefined array key "posts_per_day"
File
/usr/local/www/nginx/Themes/default/Profile.template.php
Line
304
URL of page causing the error
http://192.168.0.5/index.php?action=profile;u=2
Backtrace information
#0: smf_error_handler()
Called from /usr/local/www/nginx/Themes/default/Profile.template.php on line 304
#1: template_summary()
Called from /usr/local/www/nginx/Sources/Load.php on line 2778
#2: loadSubTemplate()
Called from /usr/local/www/nginx/Sources/Subs.php on line 4214
#3: obExit()
Called from /usr/local/www/nginx/index.php on line 187
QuoteAn Error Has Occurred!
syntax error, unexpected ')'