Posts: 6
Threads: 1
Joined: Mar 2011
Hello everybody, I am a student from China, like GS!
Now, I want to use GS my personal studio to create a home page. Functions required homepage, project display, solutions, on the.
Projects in the production and solution pages, encounter problems!
As follows:
1, page function is to demonstrate the products produced by my studio, is there something similar?
2, GS Home News Manager provides extended I really like, what can support multiple directories?
3, whether by modifying an extension to support multiple installations?
My English is poor, this is Google machine translation, to bring you trouble, please forgive me!
Posts: 1,204
Threads: 30
Joined: Jun 2010
1. try simple image gallery (squareit) plugin
2. why do you need multiple directories for a news manager ?
You mean you want to provide more than one news column ?
3. you need multiple installaions of GS ?
Installation takes up to 30 seconds, and you're ready to manage.
There's no simpler way even using a plugin.
But some hosting companies offer GS as a one click installation application.
ps. if you have any problems with english, just ask your friends to translate between chineese, and english for you
Addons: blue business theme, Online Visitors, Notepad
Posts: 6
Threads: 1
Joined: Mar 2011
是的,我的目的是用GS创建一个4月é¢的个人网站,需è¦Â2个页é¢åš新闻列表。
Yes, my aim is to create a 4 months with GS the personal website, need 2 page and make news list.
类似News Manager这样的扩展,我需è¦Â安装2个到GSï¼Â
Similar News Manager such extension, I need to install 2 to GS!
up:Chinese
down:English
Posts: 1,204
Threads: 30
Joined: Jun 2010
If you need 2 different themes, then create 2 theme files in your own theme directory, and then you can set one of your created themes in page's options.
As it goes about multiple newses, try dominion's IT blog plugin
http://get-simple.info/extend/plugin/dom...ognews/45/
But I cannot guarantee it will be working flawlessly with newly released GS3.0.
Addons: blue business theme, Online Visitors, Notepad
Posts: 6
Threads: 1
Joined: Mar 2011
Posts: 6
Threads: 1
Joined: Mar 2011
A new problem:
dominion's IT blog plug-in is not supported on my server (% blog: baby%) is called. <? PHP xxxxxx;?> means there is no problem.
Server provider replied:
As (%%) are ASP syntax, due to security reasons, the server banned the use of ASP syntax.
How should I solve this problem?
Posts: 2,928
Threads: 195
Joined: Feb 2011
this comes out as a general problem for all plugins which produce output in the content as the (% are used as "marker" for this output
I am not sure what to do, as this is a very rare case..
I think GetSimple cannot change that, can't you talk with your hoster's support?
Posts: 6
Threads: 1
Joined: Mar 2011
Connie Wrote:this comes out as a general problem for all plugins which produce output in the content as the (% are used as "marker" for this output
I am not sure what to do, as this is a very rare case..
I think GetSimple cannot change that, can't you talk with your hoster's support? Oh!My God!
Posts: 290
Threads: 26
Joined: Oct 2010
h-sen Wrote:Connie Wrote:this comes out as a general problem for all plugins which produce output in the content as the (% are used as "marker" for this output
I am not sure what to do, as this is a very rare case..
I think GetSimple cannot change that, can't you talk with your hoster's support? Oh!My God!
You can just edit the plugins to use a different pattern match syntax. Search for the (% .... %) and replace them with something else, say (== .... ==)
-Rob A>
Posts: 2,928
Threads: 195
Joined: Feb 2011
2011-04-05, 02:25:27
(This post was last modified: 2011-04-05, 02:29:53 by Tuliptani.)
RobA Wrote:You can just edit the plugins to use a different pattern match syntax. Search for the (% .... %) and replace them with something else, say (== .... ==)
-Rob A>
That is a good tip, but you will have to do this with every update of every plugin .. there is no general setting for that, and:
Code: $tmpContent = preg_replace('/\(%(.*)googlemap(.*)%\)/i',$div,$tmpContent);
as you see, it is (%, but the closing tag is: %\) (I checked googlemaps- and extendedMP3-plugin)
I would never suggest to edit regular-expressions.... who will guarantee that it will work?
Posts: 290
Threads: 26
Joined: Oct 2010
2011-04-05, 08:36:01
(This post was last modified: 2011-04-05, 08:36:38 by Chastin3.)
Connie Wrote:as you see, it is (%, but the closing tag is: %\) (I checked googlemaps- and extendedMP3-plugin)
I'm not a regexp guru but I think the "\" is just escaping the ")" in the regexp, so it really is searching for "%)"
It would be nice if these could be specified in a GSCONFIG setting...a GSPLUGINTAGSTART and GSPLUGINTAGEND tag that could just be set once in gsconfig.php and then used by plugin authors.
Though regexping wold be a bit tricker as it would require preg_quote.... so your example from a plugin could be:
Code: $tmpContent = preg_replace('/'.preg_quote(GSPLUGINTAGSTART).'(.*)googlemap(.*)'.preg_quote(GSPLUGINTAGEND ).'/i',$div,$tmpContent);
-Rob A>
Posts: 2,094
Threads: 54
Joined: Jan 2011
RobA Wrote:Though regexping wold be a bit tricker as it would require preg_quote.... so your example from a plugin could be:
Code: $tmpContent = preg_replace('/'.preg_quote(GSPLUGINTAGSTART).'(.*)googlemap(.*)'.preg_quote(GSPLUGINTAGEND ).'/i',$div,$tmpContent);
-Rob A>
Not only that - the end tag might be legally embedded within the tag, thus it is nearly impossible to make the tags configurable e.g.
Code: (% myplugin percentindicator="(%)" %)
BTW: the googlemap regular expression shown above is really bad and should rather be something like:
Code: '/\(%(\s*)googlemap(.*?)\s*%\)/i'
otherwise it can not coexist with other similar plugins and match the following texts, too:
Code: (% mybettergooglemap %)
Code: (% googlemap %) some text (% searchform %) (% searchresults %)
Posts: 6
Threads: 1
Joined: Mar 2011
How should I solve my problem? You say I have not read! Thank you
Posts: 2,094
Threads: 54
Joined: Jan 2011
h-sen Wrote:How should I solve my problem? You say I have not read! Thank you
Can you confirm that your provider filters the (% %) when you save the page (submitting the form)?
If this is the case, you can add the following lines to /admin/changedata.php (before the comment in line 104):
Code: $content = str_replace('(=', '(%', $content);
$content = str_replace('=)', '%)', $content);
Then use (= =) in your page and save. Does it work?
|