SimplePortal

Started by SimplePortal Team, March 10, 2008, 11:16:07 PM

Previous topic - Next topic

[SiNaN]

Yeah, 2.2.1 install and upgrade scripts fixes the issues related to charset too.
Former SMF Core Developer | My Mods | SimplePortal

Neverhurry

hello,

can anybody tell me where is the file "SPortal.php", i need to do some changes there but can not find this file. Thank you very much.
I am using SMF 2.0.1, curve themes.

[SiNaN]

It's in Sources directory and depending on your version it should be SPortal1-1.php or SPortal2.php.
Former SMF Core Developer | My Mods | SimplePortal

Neverhurry

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.

thank you! i found SPortal1-1.php. i uses simple portal 2.2.1.
I am using SMF 2.0.1, curve themes.

Neverhurry

About the attachment image block, i asked these questions at simpleportal.net some days ago:

1. where can i edit "posted by" to simply "by"?
2. where can i change the width of the images to "150px"?
3. right now both the name of the images and the images link to the real size images, would be better, or can you make an option to let the image link to the posts?
...

i got answers from SiNaN:

Quote
1. You can edit that going to your SPortal.php

Code (find) Select
', $txt['posted_by'], '

Code (replace to) Select
by

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

...




I tried today so hard, but i can not find anywhere "', $txt['posted_by'], '",

I can not find the "ssi_recentattachments" either,

maybe i am too stupid, but can anyone give me a hint?
I am using SMF 2.0.1, curve themes.

ディン1031

Normal we use the tumbs which are created by smf , so i think it will not change the size.


For the other thing with the link:
$sourcdir/SPortal1-1.php

'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>',

could be changed to

'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>',

Now it will go to the post instead of the image ;).



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 avaible anymore ;).
Support only via MOD Thread! NO PM Support!
My Forum: ayu][kult Forum
My Mods: My Small Mod Collection
My Parser: DIN1031's ModParser
Current Info: More away the next days, because i've to much work to do :x

Neverhurry

DIN, you are so friendly, thank you very much. Will try it asap.
I am using SMF 2.0.1, curve themes.

Neverhurry

DIN, works like charm! Thank you!

do you know where can i edit the text "posted by" to simply "by"?  THANK YOU!!!
I am using SMF 2.0.1, curve themes.

ディン1031

#2148
Quote from: neverhurry on May 12, 2009, 09:01:53 AM
DIN, works like charm! Thank you!

do you know where can i edit the text "posted by" to simply "by"?  THANK YOU!!!

Normal this will change it to by :X

Quote
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
Okay i forgot the file SPortal1-1.php ;).

But if you like than you can change the $txt['sp-downloadsPoster'] in the SPortal.english.php.

Bye
DIN1031
Support only via MOD Thread! NO PM Support!
My Forum: ayu][kult Forum
My Mods: My Small Mod Collection
My Parser: DIN1031's ModParser
Current Info: More away the next days, because i've to much work to do :x

Neverhurry

DIN, my fault, I didn't read your post carefully. Now i understand. Thank you!!!
I am using SMF 2.0.1, curve themes.

c5Quad

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

dry3210

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 Explorer
Quote
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?

ディン1031

#2152
Quote from: c5Quad on May 12, 2009, 04:26:26 PM
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
Don't know ;). We will see it when it avaible.

Quote from: dry3210 on May 12, 2009, 04:52:36 PM
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 Explorer
Quote
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?
Which SMF version and Portal Version are you useing?

Bye
DIN1031
Support only via MOD Thread! NO PM Support!
My Forum: ayu][kult Forum
My Mods: My Small Mod Collection
My Parser: DIN1031's ModParser
Current Info: More away the next days, because i've to much work to do :x

dry3210

Quote from: dry3210 on May 12, 2009, 04:52:36 PM
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 Explorer
Quote
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?
Which SMF version and Portal Version are you useing?
[/quote]

SMF 1.1.8
Portal 2.2.1

ディン1031

Okay a possible Fix (it's untested) ;).
Change in sp_pngfix.js (it's normal in you default theme dir)

if (is_ie5up && !is_ie7up && document.body.filters)


Replace with


// 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
Support only via MOD Thread! NO PM Support!
My Forum: ayu][kult Forum
My Mods: My Small Mod Collection
My Parser: DIN1031's ModParser
Current Info: More away the next days, because i've to much work to do :x

DarkSynopsis

#2155
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

alex_sercan

Hi, is it working properly on Windows hosting ?

Thanks.
Never say goodbye.

Neverhurry

#2157
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,



block content:

<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>
I am using SMF 2.0.1, curve themes.

[SiNaN]

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

./Themes/default/portal.css

Code (Find) Select
td.sp_recent_icon
{
vertical-align: middle;
width: 5%;
}
td.sp_recent_subject
{
width: 60%;
}


Change the widths there. You can make it:

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.

Yes, it does.

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,

You can't use HTML codes inside a textarea tag, you should use entities instead. Try this code:

<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">&lt;a href=&quot;http://www.veryeurope.com&quot;&gt;自豪的《非常欧洲》论坛会员&lt;/a&gt;</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">&lt;a href=&quot;http://www.veryeurope.com&quot; title=&quot;《非常欧洲》&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://www.veryeurope.com/images/ouwang.gif&quot; /&gt;&lt;/a&gt;</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>
Former SMF Core Developer | My Mods | SimplePortal

Neverhurry

Hi Blue Dream,

thank you very much, but the code you provide didn't work either. then I delete every blocks in Bottom blocks and tried just one block (recent topics), surprisingly it has the same problem. In this case should i reinstall the Simple Portal (but when i tried to uninstall it says: ./SSI.php     test failed)?

i use simple portal 2.2.1 and in Integration mode.

please have a look at the attachments.
I am using SMF 2.0.1, curve themes.

Advertisement: